[nautilus-actions] NactICommandTab: dynamically converts GtkTable to GtkGrid
- From: Pierre Wieser <pwieser src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-actions] NactICommandTab: dynamically converts GtkTable to GtkGrid
- Date: Mon, 6 Feb 2012 20:08:45 +0000 (UTC)
commit 85244e76352dd4e0e652b4bf9b24972a0bc84fd9
Author: Pierre Wieser <pwieser trychlos org>
Date: Sat Feb 4 19:01:30 2012 +0100
NactICommandTab: dynamically converts GtkTable to GtkGrid
ChangeLog | 3 +++
src/nact/nact-icommand-tab.c | 19 +++++++++++++++++--
2 files changed, 20 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index fe6fbed..726fd6b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2012-02-04 Pierre Wieser <pwieser trychlos org>
+ * src/nact/nact-icommand-tab.c (on_base_initialize_gtk):
+ Dynamically converts GtkTable to GtkGrid.
+
* src/nact/base-gtk-utils.c:
* src/nact/base-gtk-utils.h (base_gtk_utils_table_to_grid): New function.
diff --git a/src/nact/nact-icommand-tab.c b/src/nact/nact-icommand-tab.c
index d6cd419..c6d570c 100644
--- a/src/nact/nact-icommand-tab.c
+++ b/src/nact/nact-icommand-tab.c
@@ -75,6 +75,7 @@ static GType register_type( void );
static void interface_base_init( NactICommandTabInterface *klass );
static void interface_base_finalize( NactICommandTabInterface *klass );
+static void on_base_initialize_gtk( NactICommandTab *instance, GtkWindow *toplevel, gpointer user_data );
static void on_base_initialize_window( NactICommandTab *instance, gpointer user_data );
static void on_tree_view_content_changed( NactICommandTab *instance, NAObject *object, gpointer user_data );
@@ -193,6 +194,12 @@ nact_icommand_tab_init( NactICommandTab *instance )
base_window_signal_connect(
BASE_WINDOW( instance ),
G_OBJECT( instance ),
+ BASE_SIGNAL_INITIALIZE_GTK,
+ G_CALLBACK( on_base_initialize_gtk ));
+
+ base_window_signal_connect(
+ BASE_WINDOW( instance ),
+ G_OBJECT( instance ),
BASE_SIGNAL_INITIALIZE_WINDOW,
G_CALLBACK( on_base_initialize_window ));
@@ -205,8 +212,16 @@ nact_icommand_tab_init( NactICommandTab *instance )
g_object_weak_ref( G_OBJECT( instance ), ( GWeakNotify ) on_instance_finalized, NULL );
}
-/**
- * nact_icommand_tab_runtime_init:
+static void
+on_base_initialize_gtk( NactICommandTab *instance, GtkWindow *toplevel, gpointer user_data )
+{
+#if GTK_CHECK_VERSION( 3,0,0 )
+ base_gtk_utils_table_to_grid( BASE_WINDOW( instance ), "table220" );
+#endif
+}
+
+/*
+ * on_base_initialize_window:
* @window: this #NactICommandTab instance.
*
* Initializes the tab widget at each time the widget will be displayed.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]