diff options
author | TingPing <tingping@tingping.se> | 2013-10-08 18:40:11 -0400 |
---|---|---|
committer | TingPing <tingping@tingping.se> | 2013-10-08 18:40:11 -0400 |
commit | b393d2f62f84782c32a4fdddd7e0310efc10a189 (patch) | |
tree | 9b22bf96fe68859eb2f395d0e33e5b9d807634a8 /src | |
parent | 0c3220c4697598badbf222b7b6209326ec863942 (diff) |
Fix scroll buttons when using tabs
Diffstat (limited to 'src')
-rw-r--r-- | src/fe-gtk/chanview-tabs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/fe-gtk/chanview-tabs.c b/src/fe-gtk/chanview-tabs.c index dd1d16b7..17461da7 100644 --- a/src/fe-gtk/chanview-tabs.c +++ b/src/fe-gtk/chanview-tabs.c @@ -67,15 +67,16 @@ cv_tabs_sizealloc (GtkWidget *widget, GtkAllocation *allocation, chanview *cv) gint viewport_size; inner = ((tabview *)cv)->inner; + GdkWindow *parent_win = gtk_widget_get_window (gtk_widget_get_parent (inner)); if (cv->vertical) { adj = gtk_viewport_get_vadjustment (GTK_VIEWPORT (gtk_widget_get_parent (inner))); - gdk_window_get_geometry (gtk_widget_get_parent_window (inner), 0, 0, 0, &viewport_size, 0); + gdk_window_get_geometry (parent_win, 0, 0, 0, &viewport_size, 0); } else { adj = gtk_viewport_get_hadjustment (GTK_VIEWPORT (gtk_widget_get_parent (inner))); - gdk_window_get_geometry (gtk_widget_get_parent_window (inner), 0, 0, &viewport_size, 0, 0); + gdk_window_get_geometry (parent_win, 0, 0, &viewport_size, 0, 0); } if (gtk_adjustment_get_upper (adj) <= viewport_size) |