Kaydet (Commit) 6af7bd87 authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: tdf#123650 explicitly grab focus after modification

of the widget after gaining focus, otherwise gtk loses track
of where the focus should be

Change-Id: I90d9f36acf807aec8687c7f563449ef16d5eb574
Reviewed-on: https://gerrit.libreoffice.org/69355
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst ed4a0eed
......@@ -826,6 +826,9 @@ IMPL_LINK_NOARG(SvxPageDescPage, PaperBinHdl_Impl, weld::Widget&, void)
}
m_xPaperTrayBox->set_active_text(aOldName);
m_xPaperTrayBox->thaw();
// tdf#123650 explicitly grab-focus after the modification otherwise gtk loses track
// of there the focus should be
m_xPaperTrayBox->grab_focus();
}
IMPL_LINK_NOARG(SvxPageDescPage, PaperSizeSelect_Impl, weld::ComboBox&, void)
......
......@@ -1255,11 +1255,12 @@ protected:
GtkWidget* m_pWidget;
GtkInstanceBuilder* m_pBuilder;
static void signalFocusIn(GtkWidget*, GdkEvent*, gpointer widget)
static gboolean signalFocusIn(GtkWidget*, GdkEvent*, gpointer widget)
{
GtkInstanceWidget* pThis = static_cast<GtkInstanceWidget*>(widget);
SolarMutexGuard aGuard;
pThis->signal_focus_in();
return false;
}
void signal_focus_in()
......@@ -1267,11 +1268,12 @@ protected:
m_aFocusInHdl.Call(*this);
}
static void signalFocusOut(GtkWidget*, GdkEvent*, gpointer widget)
static gboolean signalFocusOut(GtkWidget*, GdkEvent*, gpointer widget)
{
GtkInstanceWidget* pThis = static_cast<GtkInstanceWidget*>(widget);
SolarMutexGuard aGuard;
pThis->signal_focus_out();
return false;
}
void signal_focus_out()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment