diff options
author | Andy Hertzfeld <andy@src.gnome.org> | 2000-10-07 16:17:20 +0000 |
---|---|---|
committer | Andy Hertzfeld <andy@src.gnome.org> | 2000-10-07 16:17:20 +0000 |
commit | 16305347d311c919be5c9aba9ee241922b096d2e (patch) | |
tree | d216fbe541f063e19dced233539951a2d09fab65 /src/nautilus-window-toolbars.c | |
parent | 97e964704df85a95105ac7043e365f2f5041ea85 (diff) | |
download | nautilus-16305347d311c919be5c9aba9ee241922b096d2e.tar.gz |
made themed toolbar buttons work properly with new UI handler; you must
made themed toolbar buttons work properly with new UI handler;
you must get a new Bonobo for it to work. Also, made the
"Search Web" button get the right image, and other clean-ups.
made toolbar button separators work properly. Also, removed
"Service" button from xml file since it can't be conditionally
added from there.
Diffstat (limited to 'src/nautilus-window-toolbars.c')
-rw-r--r-- | src/nautilus-window-toolbars.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/nautilus-window-toolbars.c b/src/nautilus-window-toolbars.c index e19d0b750..fdbe029b5 100644 --- a/src/nautilus-window-toolbars.c +++ b/src/nautilus-window-toolbars.c @@ -182,9 +182,9 @@ set_up_button (NautilusWindow *window, const char *item_name, const char* icon_n bonobo_path = g_strdup_printf ("/Tool Bar/%s", item_name); /* set up the toolbar component with the new image */ - - /* disabled for now until bonobo is debugged... - + + bonobo_ui_component_freeze (window->details->shell_ui, NULL); + bonobo_ui_component_set_prop (window->details->shell_ui, bonobo_path, "pixtype", @@ -196,7 +196,9 @@ set_up_button (NautilusWindow *window, const char *item_name, const char* icon_n "pixname", full_name == NULL ? icon_name : full_name, NULL); - */ + + bonobo_ui_component_thaw (window->details->shell_ui, NULL); + g_free (bonobo_path); g_free (full_name); } @@ -211,7 +213,7 @@ set_up_toolbar_images (NautilusWindow *window) set_up_button (window, "Home", "Home"); set_up_button (window, "Reload", "Refresh"); set_up_button (window, "Toggle Find Mode", "Search"); - set_up_button (window, "Go to Web Search", "WebSearch"); + set_up_button (window, "Go to Web Search", "SearchWeb"); set_up_button (window, "Stop", "Stop"); } @@ -239,7 +241,7 @@ set_up_throbber_frame_type (NautilusWindow *window) g_free (frame_type); gtk_frame_set_shadow_type (GTK_FRAME (frame), shadow_type); - + return frame; } |