From 4999f10a06432c500ea7680434509befd02d9e8a Mon Sep 17 00:00:00 2001 From: Monsta Date: Wed, 29 Apr 2015 13:50:38 +0300 Subject: color select dialog: drop CSD/headerbar usage maybe it was relevant with GTK+ 3.12 where the developers forced CSD on all dialogs, but now it isn't. in GTK+ 3.14 they apparently realized they were wrong and stopped forcing CSD on dialogs: http://blogs.gnome.org/mclasen/2014/07/28/a-talk-in-9-images/ --- libmate-desktop/mate-colorseldialog.c | 18 ------------------ libmate-desktop/mate-colorseldialog.h | 3 --- 2 files changed, 21 deletions(-) (limited to 'libmate-desktop') diff --git a/libmate-desktop/mate-colorseldialog.c b/libmate-desktop/mate-colorseldialog.c index 43ff42f..d35f129 100644 --- a/libmate-desktop/mate-colorseldialog.c +++ b/libmate-desktop/mate-colorseldialog.c @@ -185,24 +185,6 @@ mate_color_selection_dialog_new (const gchar *title) return GTK_WIDGET (colorseldiag); } -// since 1.9.1 -#if GTK_CHECK_VERSION (3, 12, 0) -GtkWidget* -mate_color_selection_dialog_new_with_header_bar (const gchar *title) -{ - MateColorSelectionDialog *colorseldiag; - - colorseldiag = g_object_new (MATE_TYPE_COLOR_SELECTION_DIALOG, "use-header-bar", TRUE, NULL); - - if (title) - gtk_window_set_title (GTK_WINDOW (colorseldiag), title); - - gtk_window_set_resizable (GTK_WINDOW (colorseldiag), FALSE); - - return GTK_WIDGET (colorseldiag); -} -#endif - /** * mate_color_selection_dialog_get_color_selection: * @colorsel: a #MateColorSelectionDialog diff --git a/libmate-desktop/mate-colorseldialog.h b/libmate-desktop/mate-colorseldialog.h index 5270352..103195f 100644 --- a/libmate-desktop/mate-colorseldialog.h +++ b/libmate-desktop/mate-colorseldialog.h @@ -69,9 +69,6 @@ struct _MateColorSelectionDialogClass /* ColorSelectionDialog */ GType mate_color_selection_dialog_get_type (void) G_GNUC_CONST; GtkWidget* mate_color_selection_dialog_new (const gchar *title); -#if GTK_CHECK_VERSION (3, 12, 0) -GtkWidget* mate_color_selection_dialog_new_with_header_bar (const gchar *title); -#endif GtkWidget* mate_color_selection_dialog_get_color_selection (MateColorSelectionDialog *colorsel); -- cgit v1.2.1