[nautilus-actions] gtk_widget_set_visible(): use GTK_CHECK_VERSION macro



commit 2468c63a89e2f2c33d3c3ae10e1314c84e83f734
Author: Pierre Wieser <pwieser trychlos org>
Date:   Sun Jan 2 15:05:12 2011 +0100

    gtk_widget_set_visible(): use GTK_CHECK_VERSION macro

 ChangeLog                    |    3 ++-
 src/nact/nact-schemes-list.c |    4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index e04ca15..ad082a5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -14,7 +14,8 @@
 	* src/nact/nact-gtk-utils.c:
 	* src/nact/nact-iaction-tab.c:
 	* src/nact/nact-main-statusbar.c:
-	* src/nact/nact-main-menubar.c: Use GTK_CHECK_VERSION macro.
+	* src/nact/nact-main-menubar.c:
+	* src/nact/nact-schemes-list.c: Use GTK_CHECK_VERSION macro.
 
 	* configure.ac:
 	* m4/na-check-for-gtk.m4:
diff --git a/src/nact/nact-schemes-list.c b/src/nact/nact-schemes-list.c
index 07b12f5..e6fe73e 100644
--- a/src/nact/nact-schemes-list.c
+++ b/src/nact/nact-schemes-list.c
@@ -394,7 +394,7 @@ nact_schemes_list_show_all( BaseWindow *window )
 	data = get_schemes_list_data( listview );
 
 	button = get_add_button( window );
-#if(( GTK_MAJOR_VERSION > 2 ) || ( GTK_MAJOR_VERSION == 2 && GTK_MINOR_VERSION >= 18 ))
+#if GTK_CHECK_VERSION( 2, 18, 0 )
 	gtk_widget_set_visible( GTK_WIDGET( button ), data->mode == SCHEMES_LIST_FOR_PREFERENCES );
 #else
 	if( data->mode == SCHEMES_LIST_FOR_PREFERENCES ){
@@ -406,7 +406,7 @@ nact_schemes_list_show_all( BaseWindow *window )
 	gtk_widget_set_sensitive( GTK_WIDGET( button ), data->mode == SCHEMES_LIST_FOR_PREFERENCES );
 
 	button = get_remove_button( window );
-#if(( GTK_MAJOR_VERSION > 2 ) || ( GTK_MAJOR_VERSION == 2 && GTK_MINOR_VERSION >= 18 ))
+#if GTK_CHECK_VERSION( 2, 18, 0 )
 	gtk_widget_set_visible( GTK_WIDGET( button ), data->mode == SCHEMES_LIST_FOR_PREFERENCES );
 #else
 	if( data->mode == SCHEMES_LIST_FOR_PREFERENCES ){



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