mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-08-25 02:36:07 +00:00
libnautilus-extension: remove the ability to add toolbar items
We want to fully control our toolbar now.
This commit is contained in:
parent
417bb5c317
commit
d3cee086e7
|
@ -14,7 +14,7 @@ m4_define(exempi_minver, 1.99.5)
|
|||
dnl 1. If the library code has changed at all since last release, then increment revision.
|
||||
dnl 2. If any interfaces have been added, then increment current and set revision to 0.
|
||||
dnl Interface break is not allowed.
|
||||
m4_define(nautilus_extension_current, 4)
|
||||
m4_define(nautilus_extension_current, 5)
|
||||
m4_define(nautilus_extension_revision, 0)
|
||||
|
||||
AC_INIT(nautilus, 2.91.9, http://bugzilla.gnome.org/enter_bug.cgi?product=nautilus)
|
||||
|
|
|
@ -105,22 +105,6 @@ nautilus_menu_provider_get_background_items (NautilusMenuProvider *provider,
|
|||
}
|
||||
}
|
||||
|
||||
GList *
|
||||
nautilus_menu_provider_get_toolbar_items (NautilusMenuProvider *provider,
|
||||
GtkWidget *window,
|
||||
NautilusFileInfo *current_folder)
|
||||
{
|
||||
g_return_val_if_fail (NAUTILUS_IS_MENU_PROVIDER (provider), NULL);
|
||||
g_return_val_if_fail (NAUTILUS_IS_FILE_INFO (current_folder), NULL);
|
||||
|
||||
if (NAUTILUS_MENU_PROVIDER_GET_IFACE (provider)->get_toolbar_items) {
|
||||
return NAUTILUS_MENU_PROVIDER_GET_IFACE (provider)->get_toolbar_items
|
||||
(provider, window, current_folder);
|
||||
} else {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
/* This function emit a signal to inform nautilus that its item list has changed */
|
||||
void
|
||||
nautilus_menu_provider_emit_items_updated_signal (NautilusMenuProvider* provider)
|
||||
|
|
|
@ -55,9 +55,6 @@ struct _NautilusMenuProviderIface {
|
|||
GList *(*get_background_items) (NautilusMenuProvider *provider,
|
||||
GtkWidget *window,
|
||||
NautilusFileInfo *current_folder);
|
||||
GList *(*get_toolbar_items) (NautilusMenuProvider *provider,
|
||||
GtkWidget *window,
|
||||
NautilusFileInfo *current_folder);
|
||||
};
|
||||
|
||||
/* Interface Functions */
|
||||
|
@ -68,9 +65,6 @@ GList *nautilus_menu_provider_get_file_items (NautilusMen
|
|||
GList *nautilus_menu_provider_get_background_items (NautilusMenuProvider *provider,
|
||||
GtkWidget *window,
|
||||
NautilusFileInfo *current_folder);
|
||||
GList *nautilus_menu_provider_get_toolbar_items (NautilusMenuProvider *provider,
|
||||
GtkWidget *window,
|
||||
NautilusFileInfo *current_folder);
|
||||
|
||||
/* This function emit a signal to inform nautilus that its item list has changed. */
|
||||
void nautilus_menu_provider_emit_items_updated_signal (NautilusMenuProvider *provider);
|
||||
|
|
Loading…
Reference in a new issue