diff options
author | Gene Z. Ragan <gzr@eazel.com> | 2000-06-13 21:12:31 +0000 |
---|---|---|
committer | Gene Ragan <gzr@src.gnome.org> | 2000-06-13 21:12:31 +0000 |
commit | e94b24a5c26d5ab68d400f6a2833521a76135618 (patch) | |
tree | 5c2b4f87598dbe71b9d9904621113f54d9dff530 /src/nautilus-view-frame.c | |
parent | 638ab5ad3488b94afd8d69d7d36da9847c9fcec9 (diff) | |
download | nautilus-e94b24a5c26d5ab68d400f6a2833521a76135618.tar.gz |
Fixed bug #306, right click menu in zoom control doesn't work. The menu
2000-06-13 Gene Z. Ragan <gzr@eazel.com>
Fixed bug #306, right click menu in zoom control doesn't work.
The menu now works.
* libnautilus/nautilus-view-component.idl:
Added zoom_to_level interface.
* libnautilus/nautilus-zoomable.c:
(impl_Nautilus_Zoomable_zoom_to_level):
(nautilus_zoomable_initialize_class):
Implimentation of zoom_to_level interface
* src/file-manager/fm-directory-view.c:
* src/file-manager/fm-directory-view.h:
(fm_directory_view_initialize_class),
(fm_directory_view_initialize), (zoomable_zoom_to_level_callback),
(fm_directory_view_zoom_to_level):
Added signal handling and callback for new ZOOM_TO_LEVEL signal.
* src/file-manager/fm-icon-view.c:
(fm_icon_view_zoom_to_level),
(fm_icon_view_initialize_class):
ZOOM_TO_LEVEL handling.
* src/file-manager/fm-list-view.c: (fm_list_view_initialize_class),
(fm_list_view_zoom_to_level),
(fm_list_view_restore_default_zoom_level):
ZOOM_TO_LEVEL handling.
* src/nautilus-view-frame.c:
* src/nautilus-view-frame.h:
(nautilus_view_frame_zoom_to_level):
New public function for zoom to level.
* src/nautilus-window.c:
(zoom_to_level_callback):
Yes, a zoom to level callback.
* src/nautilus-zoom-control.c:
* src/nautilus-zoom-control.h:
(nautilus_zoom_control_class_initialize), (zoom_menu_callback),
(create_zoom_menu), (set_zoom_level):
Enabled context zoom menu functionality.
Diffstat (limited to 'src/nautilus-view-frame.c')
-rw-r--r-- | src/nautilus-view-frame.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/nautilus-view-frame.c b/src/nautilus-view-frame.c index 39d781d62..6232cf775 100644 --- a/src/nautilus-view-frame.c +++ b/src/nautilus-view-frame.c @@ -563,6 +563,24 @@ nautilus_view_frame_zoom_out (NautilusViewFrame *view) CORBA_exception_free (&ev); } +void +nautilus_view_frame_zoom_to_level (NautilusViewFrame *view, gint zoom_level) +{ + CORBA_Environment ev; + + g_return_if_fail (NAUTILUS_IS_VIEW_FRAME (view)); + + CORBA_exception_init (&ev); + + if (!CORBA_Object_is_nil (view->zoomable, &ev)) { + Nautilus_Zoomable_zoom_to_level (view->zoomable, zoom_level, &ev); + } else { + /* do nothing */ + } + + CORBA_exception_free (&ev); +} + void nautilus_view_frame_zoom_default (NautilusViewFrame *view) |