diff options
author | emanuele-f <[email protected]> | 2016-06-09 02:31:45 +0200 |
---|---|---|
committer | lukefromdc <[email protected]> | 2016-10-17 14:05:35 -0400 |
commit | c5a64f18b716926254b9593d9316aebd2c670784 (patch) | |
tree | 5a5569a801dd627310d69ad3b425ad775ca4c323 /libcaja-private | |
parent | 89058ed86d271f22cd9359c66e42ff9e8cfd4715 (diff) | |
download | caja-c5a64f18b716926254b9593d9316aebd2c670784.tar.bz2 caja-c5a64f18b716926254b9593d9316aebd2c670784.tar.xz |
add start and enqueue buttons
Diffstat (limited to 'libcaja-private')
-rw-r--r-- | libcaja-private/caja-progress-info.c | 28 |
1 files changed, 25 insertions, 3 deletions
diff --git a/libcaja-private/caja-progress-info.c b/libcaja-private/caja-progress-info.c index 196ecdc9..67635f6f 100644 --- a/libcaja-private/caja-progress-info.c +++ b/libcaja-private/caja-progress-info.c @@ -357,7 +357,9 @@ static GtkWidget * progress_widget_new (CajaProgressInfo *info) { ProgressWidgetData *data; - GtkWidget *label, *progress_bar, *hbox, *vbox, *box, *btcancel, *image; + GtkWidget *label, *progress_bar, *hbox, *vbox, *box; + GtkWidget *btcancel, *btstart, *btqueue; + GtkWidget *imgcancel, *imgstart, *imgqueue; data = g_new0 (ProgressWidgetData, 1); data->info = g_object_ref (info); @@ -388,11 +390,11 @@ progress_widget_new (CajaProgressInfo *info) hbox = gtk_hbox_new (FALSE,10); - image = gtk_image_new_from_icon_name ("gtk-cancel", + imgcancel = gtk_image_new_from_icon_name ("gtk-cancel", GTK_ICON_SIZE_BUTTON); btcancel = gtk_button_new (); - gtk_container_add (GTK_CONTAINER (btcancel), image); + gtk_container_add (GTK_CONTAINER (btcancel), imgcancel); gtk_box_pack_start (GTK_BOX (hbox), btcancel, FALSE,FALSE, @@ -416,6 +418,26 @@ progress_widget_new (CajaProgressInfo *info) hbox, FALSE,FALSE, 0); + + imgstart = gtk_image_new_from_icon_name ("media-playback-start", + GTK_ICON_SIZE_BUTTON); + btstart = gtk_button_new (); + gtk_container_add (GTK_CONTAINER (btstart), imgstart); + gtk_box_pack_start (GTK_BOX (hbox), + btstart, + FALSE,FALSE, + 0); + //~ g_signal_connect (btstart, "clicked", (GCallback)start_clicked, data); + + imgqueue = gtk_image_new_from_icon_name ("undo", + GTK_ICON_SIZE_BUTTON); + btqueue = gtk_button_new (); + gtk_container_add (GTK_CONTAINER (btqueue), imgqueue); + gtk_box_pack_start (GTK_BOX (hbox), + btqueue, + FALSE,FALSE, + 0); + //~ g_signal_connect (btqueue, "clicked", (GCallback)queue_clicked, data); label = gtk_label_new ("details"); #if GTK_CHECK_VERSION (3, 16, 0) |