summaryrefslogtreecommitdiff
path: root/libnautilus-extensions/nautilus-metadata.h
diff options
context:
space:
mode:
authorJohn Sullivan <sullivan@src.gnome.org>2001-01-09 01:14:16 +0000
committerJohn Sullivan <sullivan@src.gnome.org>2001-01-09 01:14:16 +0000
commit50d32c9943efba93d381291e354f6eb779a1cec1 (patch)
tree43f2524427db07c293379d5b6cb67389cc620d95 /libnautilus-extensions/nautilus-metadata.h
parent5fc1cd7c22bd3747cf0172bf8d186169b2ba2ca7 (diff)
downloadnautilus-50d32c9943efba93d381291e354f6eb779a1cec1.tar.gz
reviewed by: Darin Adler <darin@eazel.com>
Some infrastructure for bug 2068 and related bugs. No actual user-visible changes yet. * libnautilus-extensions/nautilus-scrolled-window.h: * libnautilus-extensions/nautilus-scrolled-window.c: New files, implement a subclass of GtkScrolledWindow that sends a signal when the scroll position changes. This was tragically left out of GtkScrolledWindow. (nautilus_scrolled_window_initialize_class), (nautilus_scrolled_window_initialize): The usual stuff. (get_hadjustment), (get_vadjustment): Little helper functions to avoid repeating some casting. (adjustment_changed_callback): Callback that emits the scroll_changed signal when the scroll changes. (connect_adjustment): Helper function that disconnects old signals and sets up new ones when the adjustment objects change. (real_set_arg): virtual function overridden to connect up adjustment_changed_callback. (nautilus_scrolled_window_set_vadjustment), (nautilus_scrolled_window_set_hadjustment): New functions that call through to gtk_scrolled_window_xxx and connect up adjustment_changed_callback. * libnautilus-extensions/Makefile.am: Add the new files to the build. * libnautilus-extensions/nautilus-metadata.h: #define NAUTILUS_METADATA_KEY_ICON_VIEW_SCROLL_ORIGIN * src/file-manager/fm-directory-view.h: * src/file-manager/fm-directory-view.c: (fm_directory_view_initialize): Make FMDirectoryView inherit from NautilusScrolledWindow instead of GtkScrolledWindow so it can hook into the scroll_changed signal.
Diffstat (limited to 'libnautilus-extensions/nautilus-metadata.h')
-rw-r--r--libnautilus-extensions/nautilus-metadata.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libnautilus-extensions/nautilus-metadata.h b/libnautilus-extensions/nautilus-metadata.h
index 3de64b564..39f72a05f 100644
--- a/libnautilus-extensions/nautilus-metadata.h
+++ b/libnautilus-extensions/nautilus-metadata.h
@@ -49,6 +49,7 @@
#define NAUTILUS_METADATA_KEY_LOCATION_BACKGROUND_IMAGE "BACKGROUND_TILE_IMAGE"
#define NAUTILUS_METADATA_KEY_ICON_VIEW_ZOOM_LEVEL "ICONS_ZOOM_LEVEL"
+#define NAUTILUS_METADATA_KEY_ICON_VIEW_SCROLL_ORIGIN "ICONS_SCROLL_ORIGIN"
#define NAUTILUS_METADATA_KEY_ICON_VIEW_AUTO_LAYOUT "ICONS_AUTO_LAYOUT"
#define NAUTILUS_METADATA_KEY_ICON_VIEW_TIGHTER_LAYOUT "ICONS_TIGHTER_LAYOUT"
#define NAUTILUS_METADATA_KEY_ICON_VIEW_SORT_BY "ICONS_SORT_BY"