diff options
author | monsta <[email protected]> | 2016-11-23 15:45:42 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-11-23 15:47:07 +0300 |
commit | aaa14762862f114786293d156dc6bf28c4de14ee (patch) | |
tree | ad9f8083bd5f17f6f525c2fbe96b07ea1bc86c3b /share | |
parent | 36145dee668768c58fad6530582b4d374a9017f0 (diff) | |
download | caja-extensions-aaa14762862f114786293d156dc6bf28c4de14ee.tar.bz2 caja-extensions-aaa14762862f114786293d156dc6bf28c4de14ee.tar.xz |
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
Diffstat (limited to 'share')
-rw-r--r-- | share/caja-share.c | 16 |
1 files changed, 0 insertions, 16 deletions
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), ""); } |