summaryrefslogtreecommitdiff
path: root/libcaja-private
diff options
context:
space:
mode:
authoremanuele-f <[email protected]>2016-06-09 02:10:20 +0200
committerlukefromdc <[email protected]>2016-10-17 14:05:35 -0400
commit89058ed86d271f22cd9359c66e42ff9e8cfd4715 (patch)
tree2ddcd18e60fcf18bafce6afadef37fe9d067e264 /libcaja-private
parent986490bbb94b33047453a4a82909088862435fbe (diff)
downloadcaja-89058ed86d271f22cd9359c66e42ff9e8cfd4715.tar.bz2
caja-89058ed86d271f22cd9359c66e42ff9e8cfd4715.tar.xz
move cancel button before the bar
Diffstat (limited to 'libcaja-private')
-rw-r--r--libcaja-private/caja-progress-info.c25
1 files changed, 13 insertions, 12 deletions
diff --git a/libcaja-private/caja-progress-info.c b/libcaja-private/caja-progress-info.c
index e2383737..196ecdc9 100644
--- a/libcaja-private/caja-progress-info.c
+++ b/libcaja-private/caja-progress-info.c
@@ -357,7 +357,7 @@ static GtkWidget *
progress_widget_new (CajaProgressInfo *info)
{
ProgressWidgetData *data;
- GtkWidget *label, *progress_bar, *hbox, *vbox, *box, *button, *image;
+ GtkWidget *label, *progress_bar, *hbox, *vbox, *box, *btcancel, *image;
data = g_new0 (ProgressWidgetData, 1);
data->info = g_object_ref (info);
@@ -385,8 +385,19 @@ progress_widget_new (CajaProgressInfo *info)
TRUE, FALSE,
0);
data->status = GTK_LABEL (label);
-
+
hbox = gtk_hbox_new (FALSE,10);
+
+ image = gtk_image_new_from_icon_name ("gtk-cancel",
+ GTK_ICON_SIZE_BUTTON);
+
+ btcancel = gtk_button_new ();
+ gtk_container_add (GTK_CONTAINER (btcancel), image);
+ gtk_box_pack_start (GTK_BOX (hbox),
+ btcancel,
+ FALSE,FALSE,
+ 0);
+ g_signal_connect (btcancel, "clicked", (GCallback)cancel_clicked, data);
progress_bar = gtk_progress_bar_new ();
data->progress_bar = GTK_PROGRESS_BAR (progress_bar);
@@ -401,16 +412,6 @@ progress_widget_new (CajaProgressInfo *info)
TRUE,TRUE,
0);
- image = gtk_image_new_from_icon_name ("gtk-cancel",
- GTK_ICON_SIZE_BUTTON);
- button = gtk_button_new ();
- gtk_container_add (GTK_CONTAINER (button), image);
- gtk_box_pack_start (GTK_BOX (hbox),
- button,
- FALSE,FALSE,
- 0);
- g_signal_connect (button, "clicked", (GCallback)cancel_clicked, data);
-
gtk_box_pack_start (GTK_BOX (vbox),
hbox,
FALSE,FALSE,