[balsa/gtk3] We no longer use GtkTable



commit 499696e61f3303c5a6c3fe0fb4294110cb846f75
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Thu Apr 11 22:11:31 2013 -0400

    We no longer use GtkTable
    
        * libbalsa/misc.c (lb_create_size_group_func): we no longer use
        GtkTable.

 ChangeLog       |    5 +++++
 libbalsa/misc.c |   12 +-----------
 2 files changed, 6 insertions(+), 11 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 758332f..69e4daa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-04-11  Peter Bloomfield  <peter w500 bellsouth net>
+
+       * libbalsa/misc.c (lb_create_size_group_func): we no longer use
+       GtkTable.
+
 2013-04-11  Peter Bloomfield
 
        * src/balsa-message.c (bm_on_set_style),
diff --git a/libbalsa/misc.c b/libbalsa/misc.c
index 16438c6..9d43c6b 100644
--- a/libbalsa/misc.c
+++ b/libbalsa/misc.c
@@ -1174,22 +1174,12 @@ libbalsa_create_grid_entry(GtkWidget * grid, GCallback changed_func,
 static void
 lb_create_size_group_func(GtkWidget * widget, gpointer data)
 {
-#if GTK_CHECK_VERSION(3, 4, 0)
     if (GTK_IS_LABEL(widget) &&
-         GTK_IS_GRID(gtk_widget_get_parent(widget)))
+        GTK_IS_GRID(gtk_widget_get_parent(widget)))
         gtk_size_group_add_widget(GTK_SIZE_GROUP(data), widget);
     else if (GTK_IS_CONTAINER(widget))
         gtk_container_foreach(GTK_CONTAINER(widget),
                               lb_create_size_group_func, data);
-#else                           /* GTK_CHECK_VERSION(3, 4, 0) */
-    if (GTK_IS_LABEL(widget) &&
-        (GTK_IS_TABLE(gtk_widget_get_parent(widget)) ||
-         GTK_IS_GRID(gtk_widget_get_parent(widget))))
-        gtk_size_group_add_widget(GTK_SIZE_GROUP(data), widget);
-    else if (GTK_IS_CONTAINER(widget))
-        gtk_container_foreach(GTK_CONTAINER(widget),
-                              lb_create_size_group_func, data);
-#endif                          /* GTK_CHECK_VERSION(3, 4, 0) */
 }
 
 GtkSizeGroup *


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