summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mate-panel/panel-run-dialog.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/mate-panel/panel-run-dialog.c b/mate-panel/panel-run-dialog.c
index 51a6be7c..7e2f17ec 100644
--- a/mate-panel/panel-run-dialog.c
+++ b/mate-panel/panel-run-dialog.c
@@ -1821,9 +1821,14 @@ pixmap_drag_data_get (GtkWidget *run_dialog,
}
static void
+#if GTK_CHECK_VERSION (3, 0, 0)
+panel_run_dialog_style_updated (GtkWidget *widget,
+ PanelRunDialog *dialog)
+#else
panel_run_dialog_style_set (GtkWidget *widget,
GtkStyle *prev_style,
PanelRunDialog *dialog)
+#endif
{
if (dialog->icon) {
GIcon *icon;
@@ -1854,9 +1859,15 @@ panel_run_dialog_setup_pixmap (PanelRunDialog *dialog,
{
dialog->pixmap = PANEL_GTK_BUILDER_GET (gui, "icon_pixmap");
+#if GTK_CHECK_VERSION (3, 0, 0)
+ g_signal_connect (dialog->pixmap, "style-updated",
+ G_CALLBACK (panel_run_dialog_style_updated),
+ dialog);
+#else
g_signal_connect (dialog->pixmap, "style-set",
G_CALLBACK (panel_run_dialog_style_set),
dialog);
+#endif
g_signal_connect (dialog->pixmap, "screen-changed",
G_CALLBACK (panel_run_dialog_screen_changed),
dialog);
@@ -1917,9 +1928,15 @@ panel_run_dialog_new (GdkScreen *screen,
static void
panel_run_dialog_disconnect_pixmap (PanelRunDialog *dialog)
{
+#if GTK_CHECK_VERSION (3, 0, 0)
+ g_signal_handlers_disconnect_by_func (dialog->pixmap,
+ G_CALLBACK (panel_run_dialog_style_updated),
+ dialog);
+#else
g_signal_handlers_disconnect_by_func (dialog->pixmap,
G_CALLBACK (panel_run_dialog_style_set),
dialog);
+#endif
g_signal_handlers_disconnect_by_func (dialog->pixmap,
G_CALLBACK (panel_run_dialog_screen_changed),
dialog);