[gthumb] fixed the size of the toolbar in fullscreen mode
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] fixed the size of the toolbar in fullscreen mode
- Date: Sun, 30 Jun 2013 08:41:34 +0000 (UTC)
commit cdccd1f6a632ed4b385022e232c190f7eb9371e1
Author: Paolo Bacchilega <paobac src gnome org>
Date: Fri Jun 28 17:46:23 2013 +0200
fixed the size of the toolbar in fullscreen mode
gthumb/gth-browser.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gthumb/gth-browser.c b/gthumb/gth-browser.c
index f1c8e6d..56dee0f 100644
--- a/gthumb/gth-browser.c
+++ b/gthumb/gth-browser.c
@@ -6435,6 +6435,7 @@ _gth_browser_move_fullscreen_toolbar (GthBrowser *browser)
GdkScreen *screen;
int n_monitor;
GdkRectangle work_area;
+ int preferred_height;
gtk_widget_realize (browser->priv->fullscreen_toolbar);
@@ -6443,9 +6444,10 @@ _gth_browser_move_fullscreen_toolbar (GthBrowser *browser)
gdk_screen_get_monitor_geometry (screen, n_monitor, &work_area);
gtk_window_set_screen (GTK_WINDOW (browser->priv->fullscreen_toolbar), screen);
+ gtk_widget_get_preferred_height (browser->priv->fullscreen_toolbar, &preferred_height, NULL);
gtk_window_resize (GTK_WINDOW (browser->priv->fullscreen_toolbar),
work_area.width,
- gtk_widget_get_allocated_height (browser->priv->fullscreen_toolbar));
+ preferred_height);
gtk_window_move (GTK_WINDOW (browser->priv->fullscreen_toolbar), work_area.x, work_area.y);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]