summaryrefslogtreecommitdiff
path: root/libnautilus-extensions/nautilus-bookmark.h
diff options
context:
space:
mode:
authorJohn Sullivan <sullivan@src.gnome.org>2000-06-16 02:41:15 +0000
committerJohn Sullivan <sullivan@src.gnome.org>2000-06-16 02:41:15 +0000
commit4e90eb7b77e623bea4cfe1c8c0539ad95849fedf (patch)
tree502cf9a98b049b505929b8a26428b8387887b1a4 /libnautilus-extensions/nautilus-bookmark.h
parent22c0f773a8faaa08a0dc3f3e9d2dcb840cbf6700 (diff)
downloadnautilus-4e90eb7b77e623bea4cfe1c8c0539ad95849fedf.tar.gz
Modernized some NautilusBookmark code that had been written
in the dark ages (by me). * libnautilus-extensions/nautilus-bookmark.c: (nautilus_bookmark_compare_with), (nautilus_bookmark_copy), (nautilus_bookmark_get_name), (nautilus_bookmark_get_pixmap_and_mask), (nautilus_bookmark_get_pixbuf), (nautilus_bookmark_get_icon), (nautilus_bookmark_get_uri), (create_pixmap_widget_for_bookmark), (nautilus_bookmark_menu_item_new): Eliminated the use of const NautilusBookmark *; made _get_name and _get_uri return copies instead of the original text; tweaked a little formatting. * components/history/nautilus-history-view.c: (install_icon), (hyperbola_navigation_history_load_location), (hyperbola_navigation_history_select_row): * libnautilus-extensions/nautilus-bookmark.h: * src/nautilus-bookmark-list.c: (append_bookmark_node), (nautilus_bookmark_list_append), (nautilus_bookmark_list_contains), (nautilus_bookmark_list_delete_items_with_uri), (nautilus_bookmark_list_insert_item): * src/nautilus-bookmark-list.h: * src/nautilus-bookmarks-window.c: (install_bookmark_icon), (on_select_row), (repopulate): * src/nautilus-window-manage-views.c: (nautilus_window_reset_title_internal), (handle_go_back), (handle_go_forward), (handle_go_elsewhere): * src/nautilus-window-menus.c: (bookmark_holder_new), (show_bogus_bookmark_window), (activate_bookmark_in_menu_item), (append_bookmark_to_menu), (nautilus_window_add_bookmark_for_current_location): * src/nautilus-window.c: (nautilus_window_back_or_forward): Eliminated the use of const NautilusBookmark *; changed all callers of nautilus_bookmark_get_name and _get_uri to free the results.
Diffstat (limited to 'libnautilus-extensions/nautilus-bookmark.h')
-rw-r--r--libnautilus-extensions/nautilus-bookmark.h42
1 files changed, 21 insertions, 21 deletions
diff --git a/libnautilus-extensions/nautilus-bookmark.h b/libnautilus-extensions/nautilus-bookmark.h
index 3aa170ff5..fff22e0e8 100644
--- a/libnautilus-extensions/nautilus-bookmark.h
+++ b/libnautilus-extensions/nautilus-bookmark.h
@@ -59,29 +59,29 @@ typedef struct NautilusBookmarkClass NautilusBookmarkClass;
-GtkType nautilus_bookmark_get_type (void);
-NautilusBookmark *nautilus_bookmark_new (const char *uri,
- const char *name);
-NautilusBookmark *nautilus_bookmark_new_with_icon (const char *uri,
- const char *name,
- NautilusScalableIcon *icon);
-NautilusBookmark *nautilus_bookmark_copy (const NautilusBookmark *bookmark);
-const char * nautilus_bookmark_get_name (const NautilusBookmark *bookmark);
-const char * nautilus_bookmark_get_uri (const NautilusBookmark *bookmark);
-NautilusScalableIcon *nautilus_bookmark_get_icon (const NautilusBookmark *bookmark);
-void nautilus_bookmark_set_name (NautilusBookmark *bookmark,
- const char *new_name);
-int nautilus_bookmark_compare_with (gconstpointer a,
- gconstpointer b);
+GtkType nautilus_bookmark_get_type (void);
+NautilusBookmark * nautilus_bookmark_new (const char *uri,
+ const char *name);
+NautilusBookmark * nautilus_bookmark_new_with_icon (const char *uri,
+ const char *name,
+ NautilusScalableIcon *icon);
+NautilusBookmark * nautilus_bookmark_copy (NautilusBookmark *bookmark);
+char * nautilus_bookmark_get_name (NautilusBookmark *bookmark);
+char * nautilus_bookmark_get_uri (NautilusBookmark *bookmark);
+NautilusScalableIcon *nautilus_bookmark_get_icon (NautilusBookmark *bookmark);
+void nautilus_bookmark_set_name (NautilusBookmark *bookmark,
+ const char *new_name);
+int nautilus_bookmark_compare_with (gconstpointer a,
+ gconstpointer b);
/* Helper functions for displaying bookmarks */
-gboolean nautilus_bookmark_get_pixmap_and_mask (const NautilusBookmark *bookmark,
- guint icon_size,
- GdkPixmap **pixmap_return,
- GdkBitmap **mask_return);
-GdkPixbuf * nautilus_bookmark_get_pixbuf (const NautilusBookmark *bookmark,
- guint icon_size);
-GtkWidget * nautilus_bookmark_menu_item_new (const NautilusBookmark *bookmark);
+gboolean nautilus_bookmark_get_pixmap_and_mask (NautilusBookmark *bookmark,
+ guint icon_size,
+ GdkPixmap **pixmap_return,
+ GdkBitmap **mask_return);
+GdkPixbuf * nautilus_bookmark_get_pixbuf (NautilusBookmark *bookmark,
+ guint icon_size);
+GtkWidget * nautilus_bookmark_menu_item_new (NautilusBookmark *bookmark);
#endif /* NAUTILUS_BOOKMARK_H */