gimp r27075 - in trunk: . app/widgets



Author: mitch
Date: Mon Sep 29 11:08:42 2008
New Revision: 27075
URL: http://svn.gnome.org/viewvc/gimp?rev=27075&view=rev

Log:
2008-09-29  Michael Natterer  <mitch gimp org>

	* app/widgets/gimpdialogfactory.c
	(gimp_dialog_factories_show_foreach)
	(gimp_dialog_factories_hide_foreach): remove some casts that were
	always useless and are even more useless now after the recent
	readability improvement.



Modified:
   trunk/ChangeLog
   trunk/app/widgets/gimpdialogfactory.c

Modified: trunk/app/widgets/gimpdialogfactory.c
==============================================================================
--- trunk/app/widgets/gimpdialogfactory.c	(original)
+++ trunk/app/widgets/gimpdialogfactory.c	Mon Sep 29 11:08:42 2008
@@ -1408,7 +1408,7 @@
   for (list = factory->open_dialogs; list; list = g_list_next (list))
     {
       GtkWidget *widget = list->data;
-      
+
       if (GTK_IS_WIDGET (widget) && GTK_WIDGET_TOPLEVEL (widget))
         {
           GimpDialogVisibilityState visibility = GIMP_DIALOG_VISIBILITY_UNKNOWN;
@@ -1417,7 +1417,7 @@
             {
               visibility = GIMP_DIALOG_VISIBILITY_VISIBLE;
 
-              gtk_widget_hide (GTK_WIDGET (widget));
+              gtk_widget_hide (widget);
             }
           else
             {
@@ -1441,7 +1441,7 @@
   for (list = factory->open_dialogs; list; list = g_list_next (list))
     {
       GtkWidget *widget = list->data;
-      
+
       if (GTK_IS_WIDGET (widget) && GTK_WIDGET_TOPLEVEL (widget))
         {
           GimpDialogVisibilityState visibility;
@@ -1453,15 +1453,13 @@
           if (! GTK_WIDGET_VISIBLE (widget) &&
               visibility == GIMP_DIALOG_VISIBILITY_VISIBLE)
             {
-              GtkWindow *window = GTK_WINDOW (widget);
-
               /* Don't use gtk_window_present() here, we don't want the
                * keyboard focus to move.
                */
-              gtk_widget_show (GTK_WIDGET (window));
+              gtk_widget_show (widget);
 
-              if (GTK_WIDGET_VISIBLE (window))
-                gdk_window_raise (GTK_WIDGET (window)->window);
+              if (GTK_WIDGET_VISIBLE (widget))
+                gdk_window_raise (widget->window);
             }
         }
     }



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