From aaa14762862f114786293d156dc6bf28c4de14ee Mon Sep 17 00:00:00 2001 From: monsta Date: Wed, 23 Nov 2016 15:45:42 +0300 Subject: move to GTK+3 (>= 3.14), drop GTK+2 code and --with-gtk build option and require caja >= 1.17.1 and libmate-desktop >= 1.17.0 --- share/caja-share.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'share') diff --git a/share/caja-share.c b/share/caja-share.c index 3c183bb..71d640b 100644 --- a/share/caja-share.c +++ b/share/caja-share.c @@ -441,18 +441,12 @@ get_fullpath_from_fileinfo(CajaFileInfo *fileinfo) static void property_page_set_warning (PropertyPage *page) { -#if GTK_CHECK_VERSION (3, 0, 0) GtkStyleContext *context = gtk_widget_get_style_context (GTK_WIDGET (page->entry_share_name)); if (gtk_style_context_has_class (context, GTK_STYLE_CLASS_ERROR)) { gtk_style_context_remove_class (context, GTK_STYLE_CLASS_ERROR); } gtk_style_context_add_class (context, GTK_STYLE_CLASS_WARNING); -#else - GdkColor colorYellow; - gdk_color_parse ("#ECDF62", &colorYellow); - gtk_widget_modify_base (page->entry_share_name, GTK_STATE_NORMAL, &colorYellow); -#endif gtk_label_set_text (GTK_LABEL (page->label_status), _("Share name is too long")); } @@ -460,18 +454,12 @@ property_page_set_warning (PropertyPage *page) static void property_page_set_error (PropertyPage *page, const char *message) { -#if GTK_CHECK_VERSION (3, 0, 0) GtkStyleContext *context = gtk_widget_get_style_context (GTK_WIDGET (page->entry_share_name)); if (gtk_style_context_has_class (context, GTK_STYLE_CLASS_WARNING)) { gtk_style_context_remove_class (context, GTK_STYLE_CLASS_WARNING); } gtk_style_context_add_class (context, GTK_STYLE_CLASS_ERROR); -#else - GdkColor colorRed; - gdk_color_parse ("#C1665A", &colorRed); - gtk_widget_modify_base (page->entry_share_name, GTK_STATE_NORMAL, &colorRed); -#endif gtk_label_set_text (GTK_LABEL (page->label_status), message); } @@ -479,7 +467,6 @@ property_page_set_error (PropertyPage *page, const char *message) static void property_page_set_normal (PropertyPage *page) { -#if GTK_CHECK_VERSION (3, 0, 0) GtkStyleContext *context = gtk_widget_get_style_context (GTK_WIDGET (page->entry_share_name)); if (gtk_style_context_has_class (context, GTK_STYLE_CLASS_WARNING)) { @@ -490,9 +477,6 @@ property_page_set_normal (PropertyPage *page) { gtk_style_context_remove_class (context, GTK_STYLE_CLASS_ERROR); } -#else - gtk_widget_modify_base (page->entry_share_name, GTK_STATE_NORMAL, NULL); -#endif gtk_label_set_text (GTK_LABEL (page->label_status), ""); } -- cgit v1.2.1