[Freeciv-Dev] (PR#2680) [PATCH] Cities window: hide/raise instead of des
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: |
undisclosed-recipients:; |
Subject: |
[Freeciv-Dev] (PR#2680) [PATCH] Cities window: hide/raise instead of destroy/create |
From: |
"Stepan Roh via RT" <rt@xxxxxxxxxxxxxx> |
Date: |
Mon, 30 Dec 2002 10:00:53 -0800 |
Reply-to: |
rt@xxxxxxxxxxxxxx |
Implemented:
- cities (F1) window should not be reset to default if closed and then
opened and already opened window should be moved to top if F1 is pressed
Patch is against latest CVS HEAD and it is a unified diff against
client/gui-gtk/cityrep.c.
Tested with window manager from KDE 3.
Have a nice day.
Stepan Roh
--- cityrep.c.orig 2002-12-21 15:19:05.000000000 +0100
+++ cityrep.c 2002-12-30 18:50:48.000000000 +0100
@@ -180,6 +180,8 @@
gtk_set_relative_position(toplevel, city_dialog_shell, 10, 10);
gtk_widget_show(city_dialog_shell);
+ } else {
+ gdk_window_show(city_dialog_shell->window);
}
}
@@ -192,8 +194,7 @@
if (city_dialog_shell_is_modal) {
gtk_widget_set_sensitive(top_vbox, TRUE);
}
- gtk_widget_destroy(city_dialog_shell);
- city_dialog_shell = NULL;
+ gdk_window_hide(city_dialog_shell->window);
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freeciv-Dev] (PR#2680) [PATCH] Cities window: hide/raise instead of destroy/create,
Stepan Roh via RT <=
|
|