diff options
author | Gene Z. Ragan <gzr@eazel.com> | 2000-06-13 17:35:32 +0000 |
---|---|---|
committer | Gene Ragan <gzr@src.gnome.org> | 2000-06-13 17:35:32 +0000 |
commit | 9bcb90f331e12c9350d4ad3ae7a7483e8a15116b (patch) | |
tree | a34692b4bc6056d89d4b034f50d966bb65b99ede /libnautilus-private/nautilus-undo-signal-handlers.c | |
parent | 14aba5ce07d6b0149949b05a75b7a87d0e84a759 (diff) | |
download | nautilus-9bcb90f331e12c9350d4ad3ae7a7483e8a15116b.tar.gz |
Fixed bug #305. CLicking in center of zoom control does not change zoom
2000-06-13 Gene Z. Ragan <gzr@eazel.com>
Fixed bug #305. CLicking in center of zoom control
does not change zoom level.
Clicking in the center of the zoom control emits a ZOOM_DEFAULT
signal. It is up to each view that connects to this signal
to determine what is the default zoom setting. Right now, all
views are using NAUTILUS_ZOOM_LEVEL_STANDARD. This could be
changed to a zoom level better suited for the view.
* libnautilus/nautilus-view-component.idl:
Added zoom_default interface.
* libnautilus/nautilus-zoomable.c:
* libnautilus/nautilus-zoomable.h:
(impl_Nautilus_Zoomable_zoom_default)
Implimetation function of zoom_default interface
(nautilus_zoomable_initialize_class):
Set up new ZOOM_DEFAULT signal.
* src/file-manager/fm-directory-view.c:
* src/file-manager/fm-directory-view.h:
(fm_directory_view_initialize_class),
(fm_directory_view_initialize), (zoom_out_callback),
(zoom_default_callback), (zoomable_zoom_default_callback),
(fm_directory_view_restore_default_zoom_level):
New functions to enable zoom to default.
* src/file-manager/fm-icon-view.c:
(fm_icon_view_initialize_class):
Override zoom_default method.
(fm_icon_view_restore_default_zoom_level),
New function to enable zoom to default.
* src/file-manager/fm-list-view.c:
(fm_list_view_initialize_class):
Override zoom_default method.
(fm_list_view_restore_default_zoom_level):
New function to enable zoom to default.
* src/file-manager/fm-properties-window.c: (create_basic_page):
* src/nautilus-view-frame.c:
* src/nautilus-view-frame.h:
(nautilus_view_frame_zoom_default):
New signal handling callback
* src/nautilus-window.c:
(zoom_default_callback):
New signal handling callback
* src/nautilus-zoom-control.c:
* src/nautilus-zoom-control.h:
(nautilus_zoom_control_class_initialize),
(nautilus_zoom_control_button_press_event):
Work in progress on bug #971
* src/file-manager/fm-directory-view.c:
(open_one_properties_window),
* libnautilus-extensions/nautilus-undo-signal-handlers.c:
(nautilus_entry_user_changed_callback),
(editable_register_edit_undo),
(restore_editable_from_undo_snapshot_callback):
Diffstat (limited to 'libnautilus-private/nautilus-undo-signal-handlers.c')
-rw-r--r-- | libnautilus-private/nautilus-undo-signal-handlers.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libnautilus-private/nautilus-undo-signal-handlers.c b/libnautilus-private/nautilus-undo-signal-handlers.c index 0d028d896..352a556bb 100644 --- a/libnautilus-private/nautilus-undo-signal-handlers.c +++ b/libnautilus-private/nautilus-undo-signal-handlers.c @@ -60,7 +60,7 @@ static void free_editable_object_data (gpointer data); static void nautilus_entry_user_changed_callback (NautilusEntry *entry) -{ +{ /* Register undo transaction */ editable_register_edit_undo (GTK_EDITABLE (entry)); } @@ -151,6 +151,7 @@ editable_register_edit_undo (GtkEditable *editable) /* Check our undo registered flag */ data = gtk_object_get_data (GTK_OBJECT (editable), "undo_registered"); if (data == NULL) { + g_warning ("Undo data is NULL"); return; } @@ -164,7 +165,7 @@ editable_register_edit_undo (GtkEditable *editable) undo_data->position = gtk_editable_get_position (editable); undo_data->selection_start = editable->selection_start_pos; undo_data->selection_end = editable->selection_end_pos; - + nautilus_undo_register (GTK_OBJECT (editable), restore_editable_from_undo_snapshot_callback, @@ -243,6 +244,7 @@ restore_editable_from_undo_snapshot_callback (GtkObject *target, gpointer callba /* Check our undo registered flag */ data = gtk_object_get_data (target, "undo_registered"); if (data == NULL) { + g_warning ("Undo regisetred flag not found"); return; } |