diff options
author | John Sullivan <sullivan@src.gnome.org> | 2000-06-05 20:49:11 +0000 |
---|---|---|
committer | John Sullivan <sullivan@src.gnome.org> | 2000-06-05 20:49:11 +0000 |
commit | 715b2e718683aef953bc3ec755a5f62a3ced3aa2 (patch) | |
tree | 169b019e89371ec0d702425ba8fbbf3d3d5eb652 /libnautilus-extensions/nautilus-gtk-extensions.h | |
parent | c3c4ef55aff01bfeb55d15a31a7153371950464f (diff) | |
download | nautilus-715b2e718683aef953bc3ec755a5f62a3ced3aa2.tar.gz |
Cleaned up the directory view code that launches applications
or switches to viewers so that when bugs 1053 and 1072 are
fixed it will be trivial to finish this code.
* libnautilus-extensions/nautilus-gtk-extensions.h,
* libnautilus-extensions/nautilus-gtk-extensions.c:
(nautilus_gtk_signal_connect_free_data_custom): New function
to specify a GtkDestroyNotify function when connecting to a
signal, without having to specify everything else in
gtk_signal_connect_full.
(nautilus_gtk_signal_connect_free_data): Changed to call
nautilus_gtk_signal_connect_free_data_custom.
* libnautilus-extensions/nautilus-view-identifier.c:
(nautilus_view_identifier_copy): Made it handle NULL parameter.
* src/file-manager/fm-directory-view.c:
(application_launch_parameters_new),
(application_launch_parameters_free),
(viewer_launch_parameters_new),
(viewer_launch_parameters_free): New helper functions for
dealing with the structs needed to launch an app or viewer.
(fm_directory_view_launch_application): New wrapper for
nautilus_launch_application that will let us handle
errors in a single place.
(switch_location_and_view): New bottleneck function or going
to a particular location with a particular viewer. This
doesn't work yet (bug 1053) and it currently puts up a
message box telling the user so.
(fm_directory_view_chose_application_callback),
(fm_directory_view_chose_component_callback), (choose_program),
(choose_application), (choose_component),
(launch_application_from_menu_item), (view_uri_from_menu_item),
(add_application_to_gtk_menu), (add_component_to_gtk_menu),
(create_open_with_gtk_menu), (bonobo_launch_application_callback),
(add_application_to_bonobo_menu),
(bonobo_open_location_with_viewer_callback),
(add_component_to_bonobo_menu):
Reworked to pass around launch_parameters structs instead of other
bits and pieces of info. Darin will be happy to know that info
needed for menu item callbacks is now bundled up and passed as
the callback data instead of sneaking in as gtk_object_data.
Diffstat (limited to 'libnautilus-extensions/nautilus-gtk-extensions.h')
-rw-r--r-- | libnautilus-extensions/nautilus-gtk-extensions.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libnautilus-extensions/nautilus-gtk-extensions.h b/libnautilus-extensions/nautilus-gtk-extensions.h index ba092deae..9f7cf2418 100644 --- a/libnautilus-extensions/nautilus-gtk-extensions.h +++ b/libnautilus-extensions/nautilus-gtk-extensions.h @@ -43,6 +43,12 @@ guint nautilus_gtk_signal_connect_free_data (GtkObject GtkSignalFunc func, gpointer data); +guint nautilus_gtk_signal_connect_free_data_custom (GtkObject *object, + const gchar *name, + GtkSignalFunc func, + gpointer data, + GtkDestroyNotify destroy_func); + /* list of GtkObject */ GList * nautilus_gtk_object_list_ref (GList *list); void nautilus_gtk_object_list_unref (GList *list); |