Mercurial > gftp.yaz
comparison src/gtk/chmod_dialog.c @ 45:311e29c40ed6
2002-10-31 Brian Masney <masneyb@gftp.org>
* src/gtk/*.[ch] - don't check for gtk+ version based on the minor
version. May cause problems later on.
* lib/protocols.c src/gtk/bookmarks.c src/gtk/misc-gtk.c - use UTF8
functions for user data when using glib 2.0
author | masneyb |
---|---|
date | Thu, 31 Oct 2002 23:55:17 +0000 |
parents | cd169e4789df |
children | e5f6054590b5 |
comparison
equal
deleted
inserted
replaced
44:9c0825c047e7 | 45:311e29c40ed6 |
---|---|
26 | 26 |
27 static GtkWidget *suid, *sgid, *sticky, *ur, *uw, *ux, *gr, *gw, *gx, *or, *ow, | 27 static GtkWidget *suid, *sgid, *sticky, *ur, *uw, *ux, *gr, *gw, *gx, *or, *ow, |
28 *ox; | 28 *ox; |
29 static int mode; | 29 static int mode; |
30 | 30 |
31 #if !(GTK_MAJOR_VERSION == 1 && GTK_MINOR_VERSION == 2) | 31 #if GTK_MAJOR_VERSION > 1 |
32 static void | 32 static void |
33 chmod_action (GtkWidget * widget, gint response, gpointer wdata) | 33 chmod_action (GtkWidget * widget, gint response, gpointer wdata) |
34 { | 34 { |
35 switch (response) | 35 switch (response) |
36 { | 36 { |
56 wdata = data; | 56 wdata = data; |
57 if (!check_status (_("Chmod"), wdata, wdata->request->use_threads, 1, 1, | 57 if (!check_status (_("Chmod"), wdata, wdata->request->use_threads, 1, 1, |
58 wdata->request->chmod != NULL)) | 58 wdata->request->chmod != NULL)) |
59 return; | 59 return; |
60 | 60 |
61 #if GTK_MAJOR_VERSION == 1 && GTK_MINOR_VERSION == 2 | 61 #if GTK_MAJOR_VERSION == 1 |
62 dialog = gtk_dialog_new (); | 62 dialog = gtk_dialog_new (); |
63 gtk_window_set_title (GTK_WINDOW (dialog), _("Chmod")); | 63 gtk_window_set_title (GTK_WINDOW (dialog), _("Chmod")); |
64 gtk_container_border_width (GTK_CONTAINER (GTK_DIALOG (dialog)->action_area), | 64 gtk_container_border_width (GTK_CONTAINER (GTK_DIALOG (dialog)->action_area), |
65 5); | 65 5); |
66 gtk_box_set_homogeneous (GTK_BOX (GTK_DIALOG (dialog)->action_area), TRUE); | 66 gtk_box_set_homogeneous (GTK_BOX (GTK_DIALOG (dialog)->action_area), TRUE); |
173 | 173 |
174 ox = gtk_check_button_new_with_label (_("Execute")); | 174 ox = gtk_check_button_new_with_label (_("Execute")); |
175 gtk_box_pack_start (GTK_BOX (vbox), ox, FALSE, FALSE, 0); | 175 gtk_box_pack_start (GTK_BOX (vbox), ox, FALSE, FALSE, 0); |
176 gtk_widget_show (ox); | 176 gtk_widget_show (ox); |
177 | 177 |
178 #if GTK_MAJOR_VERSION == 1 && GTK_MINOR_VERSION == 2 | 178 #if GTK_MAJOR_VERSION == 1 |
179 tempwid = gtk_button_new_with_label (_("OK")); | 179 tempwid = gtk_button_new_with_label (_("OK")); |
180 GTK_WIDGET_SET_FLAGS (tempwid, GTK_CAN_DEFAULT); | 180 GTK_WIDGET_SET_FLAGS (tempwid, GTK_CAN_DEFAULT); |
181 gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->action_area), tempwid, | 181 gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->action_area), tempwid, |
182 TRUE, TRUE, 0); | 182 TRUE, TRUE, 0); |
183 gtk_signal_connect (GTK_OBJECT (tempwid), "clicked", | 183 gtk_signal_connect (GTK_OBJECT (tempwid), "clicked", |