Mercurial > gftp.yaz
comparison src/gtk/delete_dialog.c @ 19:3b2dcdefc7e9
2002-09-15 Brian Masney <masneyb@gftp.org>
* lib/gftp.h (struct gftp_transfer) - changed the type of numfiles and
numdirs from unsigned long to long. This must be a signed field. This
is a bug I introduced a few days ago.
* lib/local.c (local_put_file) - remove the + off of the ab mode to
fdopen. This is also a bug I introduced a few days ago.
* src/gtk/transfer.c (gftp_gtk_calc_kbs) - make sure that the variable
difftime isn't a negative number when computing the KB/s
* src/gtk/menu-items.c (save_directory_listing) - remove casts to
GTK_OBJECT for the str variable
* src/gtk/gftp-gtk.c - use GTK_STOCK_* icons in place of left.xpm,
right.xpm, up.xpm, down.xpm and stop.xpm in GTK+ 2.0 port
* src/gtk/bookmarks.c - show GTK_STOCK_* icons on the popup menu
* src/gtk/bookmarks.c, src/gtk/chmod_dialog.c, src/gtk/menu-items.c,
src/gtk/misc-gtk.c, src/gtk/options_dialog.c and
src/gtk/view_dialog.c - use gtk_dialog_new_with_buttons in GTK+ 2.0
port to create the dialog. Also, associate gFTP icon with this dialog
* src/gtk/misc-gtk.c - changed the interface of MakeEditDialog and
MakeYesNoDialog. In the GTK+ 2.0 port, I now use stock icons in the
dialog buttons.
author | masneyb |
---|---|
date | Mon, 16 Sep 2002 12:27:50 +0000 |
parents | 8b1883341c6f |
children | d930e06af9ae |
comparison
equal
deleted
inserted
replaced
18:6b2e606554aa | 19:3b2dcdefc7e9 |
---|---|
18 /*****************************************************************************/ | 18 /*****************************************************************************/ |
19 | 19 |
20 #include "gftp-gtk.h" | 20 #include "gftp-gtk.h" |
21 | 21 |
22 static void askdel ( gftp_transfer * transfer ); | 22 static void askdel ( gftp_transfer * transfer ); |
23 static void yes_dialog_cb ( GtkWidget * widget, | 23 static void yesCB ( gftp_transfer * transfer, |
24 gpointer data ); | 24 gftp_dialog_data * ddata ); |
25 static void yesCB ( gftp_transfer * transfer ); | |
26 static void * do_delete_thread ( void *data ); | 25 static void * do_delete_thread ( void *data ); |
27 static void delete_purge_cache ( gpointer key, | 26 static void delete_purge_cache ( gpointer key, |
28 gpointer value, | 27 gpointer value, |
29 gpointer user_data ); | 28 gpointer user_data ); |
30 static RETSIGTYPE sig_delquit ( int signo ); | 29 static RETSIGTYPE sig_delquit ( int signo ); |
116 { | 115 { |
117 char *tempstr; | 116 char *tempstr; |
118 | 117 |
119 tempstr = g_strdup_printf (_("Are you sure you want to delete these %ld files and %ld directories"), transfer->numfiles, transfer->numdirs); | 118 tempstr = g_strdup_printf (_("Are you sure you want to delete these %ld files and %ld directories"), transfer->numfiles, transfer->numdirs); |
120 | 119 |
121 MakeYesNoDialog (_("Delete Files/Directories"), tempstr, 0, 2, _("Yes"), | 120 MakeYesNoDialog (_("Delete Files/Directories"), tempstr, |
122 yes_dialog_cb, transfer, _("No"), NULL, NULL); | 121 yesCB, transfer, NULL, NULL); |
123 g_free (tempstr); | 122 g_free (tempstr); |
124 } | 123 } |
125 | 124 |
126 | 125 |
127 static void | 126 static void |
128 yes_dialog_cb (GtkWidget * widget, gpointer data) | 127 yesCB (gftp_transfer * transfer, gftp_dialog_data * ddata) |
129 { | |
130 gftp_dialog_data * dialog; | |
131 | |
132 dialog = data; | |
133 gtk_widget_destroy (dialog->dialog); | |
134 yesCB (dialog->data); | |
135 } | |
136 | |
137 | |
138 static void | |
139 yesCB (gftp_transfer * transfer) | |
140 { | 128 { |
141 gftp_window_data * wdata; | 129 gftp_window_data * wdata; |
142 void * ret; | 130 void * ret; |
143 | 131 |
144 g_return_if_fail (transfer != NULL); | 132 g_return_if_fail (transfer != NULL); |