]> git.eshelyaron.com Git - emacs.git/commitdiff
Revert "GTK+: Stop querying for background colors."
authorPhilipp Stephani <phst@google.com>
Fri, 29 Sep 2017 20:43:19 +0000 (22:43 +0200)
committerPhilipp Stephani <phst@google.com>
Fri, 29 Sep 2017 20:43:19 +0000 (22:43 +0200)
This reverts commit f6818e761eaafe095e07249180dc8f9a329f1473.

src/gtkutil.c

index b98b0d08e7a88c260fdec06c10620491befd9506..f3e89c82c66beec42e73b594f6675dcf5246dd6e 100644 (file)
@@ -566,14 +566,6 @@ xg_check_special_colors (struct frame *f,
   if (! FRAME_GTK_WIDGET (f) || ! (get_bg || get_fg))
     return success_p;
 
-#if GTK_CHECK_VERSION (3, 16, 0)
-  if (get_bg)
-    /* gtk_style_context_get_background_color is deprecated in
-       GTK+ 3.16.  New versions of GTK+ don't use the concept of a
-       single background color any more, so we can't query for it.  */
-    return false;
-#endif
-
   block_input ();
   {
 #ifdef HAVE_GTK3
@@ -585,12 +577,7 @@ xg_check_special_colors (struct frame *f,
     if (get_fg)
       gtk_style_context_get_color (gsty, state, &col);
     else
-#if GTK_CHECK_VERSION (3, 16, 0)
-      /* We can't get here.  */
-      emacs_abort ();
-#else
       gtk_style_context_get_background_color (gsty, state, &col);
-#endif
 
     unsigned short
       r = col.red * 65535,