summaryrefslogtreecommitdiffstats
path: root/src/widgets
diff options
context:
space:
mode:
authorShlomi Fish <shlomif@shlomifish.org>2016-10-02 09:35:51 +0000
committerShlomi Fish <shlomif@shlomifish.org>2016-10-02 09:35:51 +0000
commit55145e1d2c1ce12fda60879c577bb97d10e90c81 (patch)
treedc50bed81752bca6bf9d3fcd493bc9751b20fcf3 /src/widgets
parentExtract a method instead of assigning a temp bool var. (diff)
parentAdjust dock size to minimum width during canvas table size allocation signal. (diff)
downloadinkscape-55145e1d2c1ce12fda60879c577bb97d10e90c81.tar.gz
inkscape-55145e1d2c1ce12fda60879c577bb97d10e90c81.zip
Merged.
(bzr r15100.1.28)
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/desktop-widget.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/widgets/desktop-widget.cpp b/src/widgets/desktop-widget.cpp
index bd72560c6..55dc82dc0 100644
--- a/src/widgets/desktop-widget.cpp
+++ b/src/widgets/desktop-widget.cpp
@@ -307,12 +307,19 @@ sp_desktop_widget_class_init (SPDesktopWidgetClass *klass)
* This adjusts the range of the rulers when the dock container is adjusted
* (fixes lp:950552)
*/
-static void canvas_tbl_size_allocate(GtkWidget * /*widget*/,
+static void canvas_tbl_size_allocate(GtkWidget * widget,
GdkRectangle * /*allocation*/,
gpointer data)
{
SPDesktopWidget *dtw = SP_DESKTOP_WIDGET(data);
sp_desktop_widget_update_rulers(dtw);
+
+ GtkWidget* parent = gtk_widget_get_parent(widget);
+ if(GTK_IS_PANED(parent)) {
+ GtkPaned *paned = GTK_PANED(parent);
+ // Could use gtk paned property 'max-position' here
+ gtk_paned_set_position(paned, 10000);
+ }
}
/**
@@ -527,8 +534,8 @@ void SPDesktopWidget::init( SPDesktopWidget *dtw )
paned_class->cycle_handle_focus = NULL;
}
- gtk_widget_set_hexpand(GTK_WIDGET(paned->gobj()), TRUE);
- gtk_widget_set_vexpand(GTK_WIDGET(paned->gobj()), TRUE);
+ paned->set_hexpand(true);
+ paned->set_vexpand(true);
gtk_grid_attach(GTK_GRID(tbl_wrapper), GTK_WIDGET (paned->gobj()), 1, 1, 1, 1);
} else {
gtk_widget_set_hexpand(GTK_WIDGET(dtw->canvas_tbl), TRUE);