diff options
author | Holger Berndt <berndth@gmx.de> | 2009-06-11 17:35:37 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2009-12-10 18:06:36 +0100 |
commit | 689fd8e7ac943f1bed48dc0f6aad4b0e418e1005 (patch) | |
tree | a26c842b5296112da9c943994cca3a1fab991415 /src/nautilus-zoom-control.c | |
parent | 531ff030ef016b118f174252b1ac9aee0e385c63 (diff) | |
download | nautilus-689fd8e7ac943f1bed48dc0f6aad4b0e418e1005.tar.gz |
Make location bar more reactive: path bar, toggle button and zoom control
The buttons in the directory button bar are made inactive when the
corresponding pane is inactive. This means that the buttons have an
insensitive appearance, but are in fact clickable. Clicking on them
will make the corresponding pane active while changing into the
respective directory.
This required the pathbar to export the button widget, done with the
new function nautilus_path_bar_get_button_from_button_list_entry().
Diffstat (limited to 'src/nautilus-zoom-control.c')
-rw-r--r-- | src/nautilus-zoom-control.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nautilus-zoom-control.c b/src/nautilus-zoom-control.c index e2f504014..e0b7a9711 100644 --- a/src/nautilus-zoom-control.c +++ b/src/nautilus-zoom-control.c @@ -945,3 +945,11 @@ nautilus_zoom_control_accessible_get_type (void) return type; } + +void +nautilus_zoom_control_set_active_appearance (NautilusZoomControl *zoom_control, gboolean is_active) +{ + gtk_widget_set_sensitive (gtk_bin_get_child (GTK_BIN (zoom_control->details->zoom_in)), is_active); + gtk_widget_set_sensitive (gtk_bin_get_child (GTK_BIN (zoom_control->details->zoom_out)), is_active); + gtk_widget_set_sensitive (zoom_control->details->zoom_label, is_active); +} |