/* This function emit a signal to inform nautilus that its item list has changed */ void nautilus_menu_provider_emit_items_updated_signal (NautilusMenuProvider* provider) { g_return_if_fail (NAUTILUS_IS_MENU_PROVIDER (provider)); g_signal_emit_by_name (provider, "items_updated"); }
void nautilus_menu_provider_emit_items_updated_signal (NautilusMenuProvider *provider) { g_return_if_fail (NAUTILUS_IS_MENU_PROVIDER (provider)); g_signal_emit (provider, ITEMS_UPDATED, 0); }
GList * nautilus_menu_provider_get_file_items (NautilusMenuProvider *provider, GtkWidget *window, GList *files) { g_return_val_if_fail (NAUTILUS_IS_MENU_PROVIDER (provider), NULL); if (NAUTILUS_MENU_PROVIDER_GET_IFACE (provider)->get_file_items) { return NAUTILUS_MENU_PROVIDER_GET_IFACE (provider)->get_file_items (provider, window, files); } else { return NULL; } }
GList * nautilus_menu_provider_get_background_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_background_items) { return NAUTILUS_MENU_PROVIDER_GET_IFACE (provider)->get_background_items (provider, window, current_folder); } else { return NULL; } }
GList * nautilus_menu_provider_get_file_items (NautilusMenuProvider *provider, GtkWidget *window, GList *files) { NautilusMenuProviderInterface *iface; iface = NAUTILUS_MENU_PROVIDER_GET_IFACE (provider); g_return_val_if_fail (NAUTILUS_IS_MENU_PROVIDER (provider), NULL); g_return_val_if_fail (GTK_IS_WIDGET (window), NULL); if (iface->get_file_items != NULL) { return iface->get_file_items (provider, window, files); } return NULL; }
GList * nautilus_menu_provider_get_background_items (NautilusMenuProvider *provider, GtkWidget *window, NautilusFileInfo *current_folder) { NautilusMenuProviderInterface *iface; iface = NAUTILUS_MENU_PROVIDER_GET_IFACE (provider); g_return_val_if_fail (NAUTILUS_IS_MENU_PROVIDER (provider), NULL); g_return_val_if_fail (GTK_IS_WIDGET (window), NULL); g_return_val_if_fail (NAUTILUS_IS_FILE_INFO (current_folder), NULL); if (iface->get_background_items != NULL) { return iface->get_background_items (provider, window, current_folder); } return NULL; }