summaryrefslogtreecommitdiffstats
path: root/SidebarToolbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'SidebarToolbox.cpp')
-rw-r--r--SidebarToolbox.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/SidebarToolbox.cpp b/SidebarToolbox.cpp
index 8c8511d..a26417b 100644
--- a/SidebarToolbox.cpp
+++ b/SidebarToolbox.cpp
@@ -25,14 +25,12 @@ void SidebarToolbox::updateRows(bool changed) {
this->cols = cols;
this->rows = rows;
- gtk_widget_set_size_request(widget, -1, rows*requisition.height);
-
for(std::map<Tool*, GtkWidget*>::iterator button = buttons.begin(); button != buttons.end(); button++) {
if(gtk_widget_get_parent(button->second))
gtk_container_remove(GTK_CONTAINER(widget), button->second);
}
- gtk_table_resize(GTK_TABLE(widget), MAX(1, cols), MAX(1, rows));
+ gtk_table_resize(GTK_TABLE(widget), MAX(1, rows), MAX(1, cols));
int iCol = 0, iRow = 0;
for(std::list<Tool*>::iterator tool = tools.begin(); tool != tools.end(); tool++) {