remove some casts that were always useless and are even more useless now

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.


svn path=/trunk/; revision=27075
This commit is contained in:
Michael Natterer 2008-09-29 11:08:42 +00:00 committed by Michael Natterer
parent 7517811665
commit a4ff76a5ac
2 changed files with 14 additions and 8 deletions

View File

@ -1,3 +1,11 @@
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.
2008-09-29 Sven Neumann <sven@gimp.org>
* app/display/gimpdisplayshell.c (gimp_display_shell_new): reduced

View File

@ -1417,7 +1417,7 @@ gimp_dialog_factories_hide_foreach (gconstpointer key,
{
visibility = GIMP_DIALOG_VISIBILITY_VISIBLE;
gtk_widget_hide (GTK_WIDGET (widget));
gtk_widget_hide (widget);
}
else
{
@ -1453,15 +1453,13 @@ gimp_dialog_factories_show_foreach (gconstpointer key,
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);
}
}
}