From 9260355181c4175218300a092c52f46e83256e7b Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Sat, 6 Feb 1999 02:40:38 +0000 Subject: [PATCH] 1999-02-05 Federico Mena Quintero * gmain.h: Added prototype for gmc_open_filename(). * gdesktop.c (desktop_icon_info_open): Fixed call to gmc_open_filename(). See why it is good to have prototypes? :-) * gdnd.c (perform_action): Oops. Removed a leftover "break" that was causing the loop to exit, so you could not operate on more than one file. --- gnome/ChangeLog | 12 +++++++++++- gnome/gdesktop.c | 4 ++-- gnome/gdnd.c | 1 - gnome/gmain.h | 1 + 4 files changed, 14 insertions(+), 4 deletions(-) diff --git a/gnome/ChangeLog b/gnome/ChangeLog index ca1d4dc8c..2be4dd772 100644 --- a/gnome/ChangeLog +++ b/gnome/ChangeLog @@ -1,3 +1,14 @@ +1999-02-05 Federico Mena Quintero + + * gmain.h: Added prototype for gmc_open_filename(). + + * gdesktop.c (desktop_icon_info_open): Fixed call to + gmc_open_filename(). See why it is good to have prototypes? :-) + + * gdnd.c (perform_action): Oops. Removed a leftover "break" that + was causing the loop to exit, so you could not operate on more + than one file. + 1999-02-05 Miguel de Icaza * gpopup2.c (popup_handle_properties): Update the URL information @@ -39,7 +50,6 @@ * gdesktop.c (desktop_icon_info_new): Use an URL image for desktop-urls. Use the url as the caption for those icons. - 1999-02-04 Jonathan Blandford * gprefs.c (caching_and_optimization_props): wording changes diff --git a/gnome/gdesktop.c b/gnome/gdesktop.c index d0c101933..a5935e6c3 100644 --- a/gnome/gdesktop.c +++ b/gnome/gdesktop.c @@ -817,7 +817,7 @@ desktop_icon_info_open (DesktopIconInfo *dii) if (is_exe (fe->buf.st_mode) && if_link_is_exe (fe)) my_system (EXECUTE_AS_SHELL, shell, filename); else - gmc_open_filename (filename); + gmc_open_filename (filename, NULL); } file_entry_free (fe); @@ -1370,7 +1370,7 @@ desktop_icon_info_new (char *filename, char *url, char *caption, int user_pos, i dii->y = 0; dii->slot = -1; - if (url){ + if (url) { dii->url = g_strdup (url); if (!caption) caption = url; diff --git a/gnome/gdnd.c b/gnome/gdnd.c index 748c32a59..30e3fb71f 100644 --- a/gnome/gdnd.c +++ b/gnome/gdnd.c @@ -219,7 +219,6 @@ perform_action (GList *names, GdkDragAction action, char *destdir) } while (result != 0); g_free (dest_name); - break; } file_op_context_destroy (ctx); diff --git a/gnome/gmain.h b/gnome/gmain.h index 0a70d5471..d905283e7 100644 --- a/gnome/gmain.h +++ b/gnome/gmain.h @@ -37,6 +37,7 @@ WPanel *new_panel_with_geometry_at (char *dir, char *geometry); void layout_panel_gone (WPanel *panel); void gtkrundlg_event (Dlg_head *h); int gmc_open (file_entry *fe); +int gmc_open_filename (char *fname, GList *args); int gmc_view (char *filename, int start_line); void x_show_info (WInfo *info, struct my_statfs *s, struct stat *b); void x_create_info (Dlg_head *h, widget_data parent, WInfo *info);