/** * athena_window_initialize_bookmarks_menu * * Fill in bookmarks menu with stored bookmarks, and wire up signals * so we'll be notified when bookmark list changes. */ void athena_window_initialize_bookmarks_menu (AthenaWindow *window) { g_assert (ATHENA_IS_WINDOW (window)); refresh_bookmarks_menu (window); /* Recreate dynamic part of menu if bookmark list changes */ g_signal_connect_object (window->details->bookmark_list, "changed", G_CALLBACK (refresh_bookmarks_menu), window, G_CONNECT_SWAPPED); }
/** * nautilus_window_initialize_bookmarks_menu * * Fill in bookmarks menu with stored bookmarks, and wire up signals * so we'll be notified when bookmark list changes. */ void nautilus_window_initialize_bookmarks_menu (NautilusWindow *window) { g_assert (NAUTILUS_IS_WINDOW (window)); refresh_bookmarks_menu (window); /* Recreate dynamic part of menu if bookmark list changes */ g_signal_connect_object (window->details->bookmark_list, "contents_changed", G_CALLBACK (refresh_bookmarks_menu), window, G_CONNECT_SWAPPED); }