set-focus doesn't exist in GtkEventBox, only GtkWindow
Change-Id: I7e8ba4891a34fa585831e11fd4e2fcbbfe7b859d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88595 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
@@ -898,7 +898,8 @@ void GtkSalFrame::InitCommon()
|
||||
|
||||
g_signal_connect_after( G_OBJECT(m_pWindow), "focus-in-event", G_CALLBACK(signalFocus), this );
|
||||
g_signal_connect_after( G_OBJECT(m_pWindow), "focus-out-event", G_CALLBACK(signalFocus), this );
|
||||
g_signal_connect( G_OBJECT(m_pWindow), "set-focus", G_CALLBACK(signalSetFocus), this );
|
||||
if (GTK_IS_WINDOW(m_pWindow)) // i.e. not if its a GtkEventBox which doesn't have the signal
|
||||
g_signal_connect( G_OBJECT(m_pWindow), "set-focus", G_CALLBACK(signalSetFocus), this );
|
||||
g_signal_connect( G_OBJECT(m_pWindow), "map-event", G_CALLBACK(signalMap), this );
|
||||
g_signal_connect( G_OBJECT(m_pWindow), "unmap-event", G_CALLBACK(signalUnmap), this );
|
||||
g_signal_connect( G_OBJECT(m_pWindow), "configure-event", G_CALLBACK(signalConfigure), this );
|
||||
|
Reference in New Issue
Block a user