[gimp] app: Update appearance after adding dock
- From: Martin Nordholts <martinn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: Update appearance after adding dock
- Date: Mon, 6 Jun 2011 14:05:49 +0000 (UTC)
commit bb39703c7a1decb1abedf4df4381bb24c8da55c1
Author: Martin Nordholts <martinn src gnome org>
Date: Mon Jun 6 15:50:32 2011 +0200
app: Update appearance after adding dock
Since gimp_display_shell_appearance_update() depends on docks being
present, call it in gimp_image_window_add_dock(). Otherwise the resize
handle will be present when starting in single-window mode.
app/display/gimpimagewindow.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/app/display/gimpimagewindow.c b/app/display/gimpimagewindow.c
index becc79a..8f9c2a5 100644
--- a/app/display/gimpimagewindow.c
+++ b/app/display/gimpimagewindow.c
@@ -732,11 +732,14 @@ gimp_image_window_add_dock (GimpDockContainer *dock_container,
GimpDock *dock,
GimpSessionInfoDock *dock_info)
{
+ GimpImageWindow *window;
+ GimpDisplayShell *active_shell;
GimpImageWindowPrivate *private;
g_return_if_fail (GIMP_IS_IMAGE_WINDOW (dock_container));
- private = GIMP_IMAGE_WINDOW_GET_PRIVATE (dock_container);
+ window = GIMP_IMAGE_WINDOW (dock_container);
+ private = GIMP_IMAGE_WINDOW_GET_PRIVATE (window);
if (dock_info->side == GIMP_ALIGN_LEFT)
{
@@ -750,6 +753,10 @@ gimp_image_window_add_dock (GimpDockContainer *dock_container,
dock,
-1 /*index*/);
}
+
+ active_shell = gimp_image_window_get_active_shell (window);
+ if (active_shell)
+ gimp_display_shell_appearance_update (active_shell);
}
static GimpAlignmentType
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]