[nautilus-actions] Obsoletes GtkTable starting with Gtk 3.4



commit 0f73b579c59a79a80e6a58bd4236fe7ebfe6aa3e
Author: Pierre Wieser <pwieser trychlos org>
Date:   Mon Sep 9 22:52:51 2013 +0200

    Obsoletes GtkTable starting with Gtk 3.4
    
    GtkGrid row and column spacing are temporarily fixed. This has to be improved.

 ChangeLog                 |    3 +++
 src/nact/base-gtk-utils.c |    5 +++++
 2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 1e04cc4..0a3d493 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2013-09-07 Pierre Wieser <pwieser trychlos org>
 
+       * src/nact/base-gtk-utils.c (base_gtk_utils_table_to_grid):
+       Obsoletes GtkTable starting with Gtk 3.4.
+
        * src/nact/egg-sm-client-xsmp.c: Obsoletes gdk_threads_enter(), 
        gdk_threads_leave() starting with gdk 3.6.
 
diff --git a/src/nact/base-gtk-utils.c b/src/nact/base-gtk-utils.c
index 543925b..e373ba5 100644
--- a/src/nact/base-gtk-utils.c
+++ b/src/nact/base-gtk-utils.c
@@ -552,9 +552,14 @@ base_gtk_utils_table_to_grid( BaseWindow *window, const gchar *table_name )
        na_gtk_utils_dump_children( GTK_CONTAINER( parent ));
 #endif
 
+#if !GTK_CHECK_VERSION( 3,4,0 )
        gtk_table_get_size( GTK_TABLE( ttg.table ), &ttg.rows, &ttg.columns );
        col_spacing = gtk_table_get_default_col_spacing( GTK_TABLE( ttg.table ));
        row_spacing = gtk_table_get_default_row_spacing( GTK_TABLE( ttg.table ));
+#else
+       col_spacing = 6;
+       row_spacing = 6;
+#endif
 
        ttg.grid = gtk_grid_new();
        gtk_grid_set_column_spacing( GTK_GRID( ttg.grid ), col_spacing );


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