Merged revision(s) 63732 #c5dd93a0e4, 64473 #bef5ada271 from trunk:

LCL-GTK2: Apply DisplaySettings properties of TCalendar also during runtime. Issue #37450, patch from Cyrax.
........
LCL-GTK2: Prevent a warning caused by a popup menu code. Issue #38402, patch from Petr-K.
........

git-svn-id: branches/fixes_2_0@64615 -
This commit is contained in:
martin 2021-02-18 01:37:06 +00:00
parent 240db20a1d
commit 8ae7b2bb45

View File

@ -1818,8 +1818,9 @@ begin
g_signal_connect_after(AMenu, 'selection-done', G_CALLBACK(@GtkPopupHideCB), AWidgetInfo);
end;
g_signal_connect_after(PGtkObject(GTK_BIN(ComboWidget)^.child), 'populate-popup',
gtk_signal_func(@gtkDefaultPopupMenuCloseFix), AWidgetInfo);
if TCustomComboBox(AWinControl).Style.HasEditBox then
g_signal_connect_after(PGtkObject(GTK_BIN(ComboWidget)^.child), 'populate-popup',
gtk_signal_func(@gtkDefaultPopupMenuCloseFix), AWidgetInfo);
if (gtk_major_version >= 2) and (gtk_minor_version >= 10) then
g_signal_connect(ComboWidget, 'notify', TGCallback(@GtkNotifyCB), AWidgetInfo);