mirror of https://github.com/GNOME/gimp.git
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:
parent
7517811665
commit
a4ff76a5ac
|
@ -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
|
||||
|
|
|
@ -1408,7 +1408,7 @@ gimp_dialog_factories_hide_foreach (gconstpointer key,
|
|||
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 @@ gimp_dialog_factories_hide_foreach (gconstpointer key,
|
|||
{
|
||||
visibility = GIMP_DIALOG_VISIBILITY_VISIBLE;
|
||||
|
||||
gtk_widget_hide (GTK_WIDGET (widget));
|
||||
gtk_widget_hide (widget);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1441,7 +1441,7 @@ gimp_dialog_factories_show_foreach (gconstpointer key,
|
|||
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 @@ 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue