[gnome-color-manager] trivial: don't try to hide widgets that no longer exist



commit 9722f1d491050a6160e58a50d1209b093a88548c
Author: Richard Hughes <richard hughsie com>
Date:   Fri Mar 25 12:27:42 2011 +0000

    trivial: don't try to hide widgets that no longer exist

 src/gcm-viewer.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/src/gcm-viewer.c b/src/gcm-viewer.c
index 87e009b..90f3ea5 100644
--- a/src/gcm-viewer.c
+++ b/src/gcm-viewer.c
@@ -1088,10 +1088,6 @@ gcm_viewer_startup_cb (GApplication *application, GcmViewerPrivate *viewer)
 	if (xid != 0) {
 		g_debug ("Setting xid %i", xid);
 		gcm_window_set_parent_xid (GTK_WINDOW (main_window), xid);
-
-		/* hide the preferences button */
-		widget = GTK_WIDGET (gtk_builder_get_object (viewer->builder, "button_preferences"));
-		gtk_widget_hide (widget);
 	}
 
 	/* do all this after the window has been set up */



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