diff options
author | Dennis Smit <ds@nerds-incorporated.org> | 2004-06-09 16:23:11 +0000 |
---|---|---|
committer | Dennis Smit <dsmit@src.gnome.org> | 2004-06-09 16:23:11 +0000 |
commit | 45dd1fe15e124fd553a68ca9abe28feadbf7f1e5 (patch) | |
tree | be85fa2ad1920250dd85f8132f2f381c2a65a4c0 /geyes | |
parent | 8061f6a94fac7a4f3e50d160acf159e15758bd00 (diff) |
Put the treeview in a scrolled window and make the dialog a tad bigger so
2004-06-09 Dennis Smit <ds@nerds-incorporated.org>
* themes.c (properties_cb): Put the treeview
in a scrolled window and make the dialog a tad
bigger so everything fits better in it.
Diffstat (limited to 'geyes')
-rw-r--r-- | geyes/ChangeLog | 6 | ||||
-rw-r--r-- | geyes/themes.c | 18 |
2 files changed, 21 insertions, 3 deletions
diff --git a/geyes/ChangeLog b/geyes/ChangeLog index a6e88100a..fbcb43279 100644 --- a/geyes/ChangeLog +++ b/geyes/ChangeLog @@ -1,3 +1,9 @@ +2004-06-09 Dennis Smit <ds@nerds-incorporated.org> + + * themes.c (properties_cb): Put the treeview + in a scrolled window and make the dialog a tad + bigger so everything fits better in it. + 2004-03-17 Glynn Foster <glynn.foster@sun.com> * docs/ja/*: Put back ja docs since the original diff --git a/geyes/themes.c b/geyes/themes.c index 95391c71a..436db2115 100644 --- a/geyes/themes.c +++ b/geyes/themes.c @@ -267,6 +267,7 @@ properties_cb (BonoboUIComponent *uic, GtkWidget *categories_vbox; GtkWidget *category_vbox, *control_vbox; GtkWidget *tree; + GtkWidget *scrolled; GtkWidget *label; GtkListStore *model; GtkTreeViewColumn *column; @@ -296,9 +297,12 @@ properties_cb (BonoboUIComponent *uic, GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE, GTK_STOCK_HELP, GTK_RESPONSE_HELP, NULL); + gtk_window_set_screen (GTK_WINDOW (pbox), gtk_widget_get_screen (GTK_WIDGET (eyes_applet->applet))); - gtk_window_set_resizable (GTK_WINDOW (pbox), FALSE); + + gtk_widget_set_size_request (GTK_WIDGET (pbox), 300, 200); + gtk_window_set_resizable (GTK_WINDOW (pbox), FALSE); gtk_dialog_set_default_response(GTK_DIALOG (pbox), GTK_RESPONSE_CLOSE); gtk_dialog_set_has_separator (GTK_DIALOG (pbox), FALSE); gtk_container_set_border_width (GTK_CONTAINER (pbox), 5); @@ -347,12 +351,20 @@ properties_cb (BonoboUIComponent *uic, label = gtk_label_new_with_mnemonic (_("_Select a theme:")); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); gtk_box_pack_start (GTK_BOX (control_vbox), label, FALSE, FALSE, 0); - + + scrolled = gtk_scrolled_window_new (NULL, NULL); + gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled), GTK_SHADOW_IN); + gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled), + GTK_POLICY_AUTOMATIC, + GTK_POLICY_AUTOMATIC); + model = gtk_list_store_new (1, G_TYPE_STRING); tree = gtk_tree_view_new_with_model (GTK_TREE_MODEL (model)); gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (tree), FALSE); gtk_label_set_mnemonic_widget (GTK_LABEL (label), tree); g_object_unref (model); + + gtk_container_add (GTK_CONTAINER (scrolled), tree); cell = gtk_cell_renderer_text_new (); column = gtk_tree_view_column_new_with_attributes ("not used", cell, @@ -407,7 +419,7 @@ properties_cb (BonoboUIComponent *uic, g_free (filename); #endif - gtk_box_pack_start (GTK_BOX (control_vbox), tree, TRUE, TRUE, 0); + gtk_box_pack_start (GTK_BOX (control_vbox), scrolled, TRUE, TRUE, 0); gtk_widget_show_all (pbox); |