summaryrefslogtreecommitdiff
path: root/libnautilus-private/nautilus-program-choosing.c
diff options
context:
space:
mode:
authorJohn Sullivan <sullivan@src.gnome.org>2000-05-24 00:14:21 +0000
committerJohn Sullivan <sullivan@src.gnome.org>2000-05-24 00:14:21 +0000
commite4d87678ec89e87966b4f807d109ccf8583a7b46 (patch)
tree739ae072a4e1761526373878ac79956494338173 /libnautilus-private/nautilus-program-choosing.c
parent04bcb0220e1219023cf3e77263f6c2390b90501c (diff)
downloadnautilus-e4d87678ec89e87966b4f807d109ccf8583a7b46.tar.gz
A few cleanup tweaks inspired by debugging session
with Darin. * libnautilus-extensions/nautilus-program-choosing.h, * libnautilus-extensions/nautilus-program-choosing.c: (nautilus_choose_application_for_file): Make callback take a const char * instead of a char *. * src/file-manager/fm-directory-view.c: (fm_directory_view_chose_application_callback): take a const char * instead of a char *. * src/ntl-index-panel.c: (nautilus_index_panel_chose_application_callback): take a const char * instead of a char *. (open_with_callback): unref file (add_command_buttons): Use gtk_signal_connect instead of nautilus_gtk_signal_connect_free_data when passing NULL as the data (Doh!).
Diffstat (limited to 'libnautilus-private/nautilus-program-choosing.c')
-rw-r--r--libnautilus-private/nautilus-program-choosing.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libnautilus-private/nautilus-program-choosing.c b/libnautilus-private/nautilus-program-choosing.c
index 38a804f4d..fc5ae7a26 100644
--- a/libnautilus-private/nautilus-program-choosing.c
+++ b/libnautilus-private/nautilus-program-choosing.c
@@ -143,7 +143,10 @@ nautilus_choose_application_for_file (NautilusFile *file,
if (gnome_dialog_run (dialog) == GNOME_OK) {
/* FIXME: Need to extract result from dialog! */
#ifdef TESTING_LAUNCH
- command_string = g_strdup ("gnotepad");
+ /* FIXME: investigate why passing wrong text here ("gnotepad")
+ * causes an X error.
+ */
+ command_string = "gnp";
#else
command_string = NULL;
#endif
@@ -152,7 +155,6 @@ nautilus_choose_application_for_file (NautilusFile *file,
}
gtk_widget_destroy (GTK_WIDGET (dialog));
-
/* Call callback even if identifier is NULL, so caller can
* free callback_data if necessary and present some cancel
* UI if desired.