[gimp] app: Don't show toolbox when last image is closed
- From: Martin Nordholts <martinn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: Don't show toolbox when last image is closed
- Date: Sat, 20 Feb 2010 13:28:30 +0000 (UTC)
commit f0ba888c061e97b27d9ee73d911da644e52f5ef1
Author: Martin Nordholts <martinn src gnome org>
Date: Sat Feb 20 14:28:08 2010 +0100
app: Don't show toolbox when last image is closed
Don't show toolbox when last image is closed. We don't need to do that
any longer after the introduction of the empty image window.
app/gui/gui.c | 16 ----------------
1 files changed, 0 insertions(+), 16 deletions(-)
---
diff --git a/app/gui/gui.c b/app/gui/gui.c
index ed120ce..a872bc1 100644
--- a/app/gui/gui.c
+++ b/app/gui/gui.c
@@ -134,7 +134,6 @@ static void gui_menu_hide_tooltip (GimpUIManager *manager,
static void gui_display_changed (GimpContext *context,
GimpDisplay *display,
Gimp *gimp);
-static void gui_display_remove (GimpContainer *displays);
/* private variables */
@@ -387,9 +386,6 @@ gui_restore_callback (Gimp *gimp,
g_signal_connect (gimp_get_user_context (gimp), "display-changed",
G_CALLBACK (gui_display_changed),
gimp);
- g_signal_connect (gimp->displays, "remove",
- G_CALLBACK (gui_display_remove),
- NULL);
/* make sure the monitor resolution is valid */
if (display_config->monitor_res_from_gdk ||
@@ -598,9 +594,6 @@ gui_exit_callback (Gimp *gimp,
if (TRUE /* gui_config->save_controllers */)
gimp_controllers_save (gimp);
- g_signal_handlers_disconnect_by_func (gimp->displays,
- gui_display_remove,
- NULL);
g_signal_handlers_disconnect_by_func (gimp_get_user_context (gimp),
gui_display_changed,
gimp);
@@ -794,12 +787,3 @@ gui_display_changed (GimpContext *context,
gimp_ui_manager_update (image_ui_manager, display);
}
-
-static void
-gui_display_remove (GimpContainer *displays)
-{
- /* show the toolbox when the last image window is closed */
-
- if (gimp_container_is_empty (displays))
- windows_show_toolbox ();
-}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]