summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndy Hertzfeld <andy@src.gnome.org>2001-01-23 22:31:49 +0000
committerAndy Hertzfeld <andy@src.gnome.org>2001-01-23 22:31:49 +0000
commit7af31ebecdaed9bf95f88ff4066f620e56e90540 (patch)
treec8e69b75bff04dec532a6c826e1a7e6e9c79ab1b /src
parent3e3deab1d3ca376c6f5ded2a6c10c92aef9a77e1 (diff)
downloadnautilus-7af31ebecdaed9bf95f88ff4066f620e56e90540.tar.gz
fixed bug 5587, hard-coded button geometry in the property browser, fixed
* src/nautilus-property-browser.c: (nautilus_property_browser_initialize), (make_category_link): fixed bug 5587, hard-coded button geometry in the property browser, fixed by removing the set_usizes and allowing gtk to adaptively size them and replacing the table that was holding them with a box so they will be centered properly.
Diffstat (limited to 'src')
-rw-r--r--src/nautilus-property-browser.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/nautilus-property-browser.c b/src/nautilus-property-browser.c
index fb892a165..1ae1423fe 100644
--- a/src/nautilus-property-browser.c
+++ b/src/nautilus-property-browser.c
@@ -96,7 +96,7 @@ struct NautilusPropertyBrowserDetails {
GtkWidget *content_table;
GtkWidget *category_container;
- GtkWidget *category_table;
+ GtkWidget *category_box;
GtkWidget *selected_button;
GtkWidget *title_box;
@@ -273,7 +273,7 @@ nautilus_property_browser_initialize (GtkObject *object)
viewport = gtk_viewport_new(NULL, NULL);
gtk_widget_show (viewport);
gtk_viewport_set_shadow_type(GTK_VIEWPORT(viewport), GTK_SHADOW_NONE);
- gtk_widget_set_usize (viewport, 76, -1);
+ /* gtk_widget_set_usize (viewport, 76, -1); */
gtk_box_pack_start (GTK_BOX (property_browser->details->container),
property_browser->details->category_container, FALSE, FALSE, 0);
@@ -282,10 +282,11 @@ nautilus_property_browser_initialize (GtkObject *object)
GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
/* allocate a table to hold the category selector */
- property_browser->details->category_table = gtk_table_new (1, 4, FALSE);
- gtk_container_add(GTK_CONTAINER(viewport), property_browser->details->category_table);
+ property_browser->details->category_box = gtk_vbox_new (FALSE, 0);
+ gtk_container_set_border_width ( GTK_CONTAINER (property_browser->details->category_box), 4);
+ gtk_container_add(GTK_CONTAINER(viewport), property_browser->details->category_box);
gtk_container_add (GTK_CONTAINER (property_browser->details->category_container), viewport);
- gtk_widget_show (GTK_WIDGET (property_browser->details->category_table));
+ gtk_widget_show (GTK_WIDGET (property_browser->details->category_box));
/* make the content container vbox */
property_browser->details->content_container = gtk_vbox_new (FALSE, 0);
@@ -1922,7 +1923,7 @@ make_category_link (NautilusPropertyBrowser *property_browser, char* name, char
*/
button = gtk_toggle_button_new();
gtk_widget_show(button);
- gtk_widget_set_usize(button, 80, 60);
+ /* gtk_widget_set_usize (button, 80, 60); */
/* if the button represents the current category, highlight it */
@@ -1942,10 +1943,8 @@ make_category_link (NautilusPropertyBrowser *property_browser, char* name, char
gtk_box_pack_start (GTK_BOX (temp_box), label, FALSE, FALSE, 0);
gtk_widget_show (label);
- gtk_table_attach (GTK_TABLE (property_browser->details->category_table),
- temp_vbox, 0, 1,
- property_browser->details->category_position, property_browser->details->category_position + 1,
- GTK_FILL, GTK_FILL, 4, 4);
+ gtk_box_pack_start (GTK_BOX (property_browser->details->category_box),
+ temp_vbox, FALSE, FALSE, 8);
property_browser->details->category_position += 1;