[vinagre] Fixed an error in previous commit



commit be95b0e7941c76f43cbd4bcb3f09bb21a668e4b9
Author: Jonh Wendell <jwendell gnome org>
Date:   Sat Jun 26 10:17:40 2010 -0300

    Fixed an error in previous commit

 vinagre/vinagre-utils.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/vinagre/vinagre-utils.c b/vinagre/vinagre-utils.c
index 9326427..daaaf2a 100644
--- a/vinagre/vinagre-utils.c
+++ b/vinagre/vinagre-utils.c
@@ -112,7 +112,10 @@ vinagre_utils_show_many_errors (const gchar *title, GSList *items, GtkWindow *pa
 void
 vinagre_utils_toggle_widget_visible (GtkWidget *widget)
 {
-  gtk_widget_set_visible (widget, !gtk_widget_get_visible (widget));
+  if (gtk_widget_get_visible (widget))
+    gtk_widget_hide (widget);
+  else
+    gtk_widget_show_all (widget);
 }
 
 const gchar *



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