diff options
author | neoraider <devnull@localhost> | 2007-12-05 20:35:03 +0100 |
---|---|---|
committer | neoraider <devnull@localhost> | 2007-12-05 20:35:03 +0100 |
commit | f3b6f4c9ee40ffe2acaa5cc1e92105634aeed678 (patch) | |
tree | 8eb92cc2dc94e1e5c0b8373a3bffc172c1309c34 /SidebarToolbox.cpp | |
parent | 19690f030457dadf4976f7403c315b3bbb4a39b8 (diff) | |
download | zoomedit-f3b6f4c9ee40ffe2acaa5cc1e92105634aeed678.tar zoomedit-f3b6f4c9ee40ffe2acaa5cc1e92105634aeed678.zip |
zoomedit: Fixed sidebar layout.
Diffstat (limited to 'SidebarToolbox.cpp')
-rw-r--r-- | SidebarToolbox.cpp | 4 |
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++) { |