[balsa/gtk3] Deprecation cleanup



commit 8b84a8b662e951e43fc62dedf757bcfc628f7e58
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Tue Feb 10 18:39:53 2015 -0500

    Deprecation cleanup
    
        * src/balsa-message.c (balsa_message_init):
        gtk_style_context_get_background_color and
        gtk_widget_override_background_color are deprecated; when we
        replace the GtkNotebook with a GtkStack, we should get
        consistent backgrounds again.

 ChangeLog           |   10 ++++++++++
 src/balsa-message.c |    4 ++++
 2 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index bfa1974..373fcb8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,16 @@
 
        Deprecation cleanup
 
+       * src/balsa-message.c (balsa_message_init):
+       gtk_style_context_get_background_color and
+       gtk_widget_override_background_color are deprecated; when we
+       replace the GtkNotebook with a GtkStack, we should get
+       consistent backgrounds again.
+
+2015-02-10  Peter Bloomfield  <pbloomfield bellsouth net>
+
+       Deprecation cleanup
+
        * libbalsa/source-viewer.c (libbalsa_show_message_source):
        gtk_widget_override_font is deprecated, use CSS instead.
 
diff --git a/src/balsa-message.c b/src/balsa-message.c
index bad8237..c6487ec 100644
--- a/src/balsa-message.c
+++ b/src/balsa-message.c
@@ -310,6 +310,7 @@ bm_header_tl_buttons(BalsaMessage * bm)
 }
 
 
+#if !GTK_CHECK_VERSION(3, 15, 0)
 /* Callback for the "style-updated" signal; set the message background to
  * match the base color of the content in the tree-view. */
 static void
@@ -325,6 +326,7 @@ bm_on_set_style(GtkWidget * widget,
     gtk_widget_override_background_color(bm->scroll,
                                          GTK_STATE_FLAG_NORMAL, &rgba);
 }
+#endif
 
 static void
 on_content_size_alloc(GtkWidget * widget, GtkAllocation * allocation,
@@ -701,8 +703,10 @@ balsa_message_init(BalsaMessage * bm)
     g_signal_connect(scroll, "key_press_event",
                     G_CALLBACK(balsa_mime_widget_key_press_event), bm);
     gtk_box_pack_start(GTK_BOX(vbox), scroll, TRUE, TRUE, 0);
+#if !GTK_CHECK_VERSION(3, 15, 0)
     g_signal_connect_after(bm, "style-updated",
                           G_CALLBACK(bm_on_set_style), bm);
+#endif
     g_signal_connect(bm->scroll, "size-allocate",
                     G_CALLBACK(on_content_size_alloc), NULL);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]