[Xfce4-commits] [apps/xfburn] 23/42: fixed close button on the progress dialog

noreply at xfce.org noreply at xfce.org
Tue Oct 15 02:22:06 CEST 2019


This is an automated email from the git hooks/post-receive script.

k   a   t   a   n   a   s   t   e   e   l       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfburn.

commit 88633ee6ad9762b70612bc76c4e3b783816fa61b
Author: Rene Kjellerup <rk.katana.steel at gmail.com>
Date:   Thu Dec 13 23:29:42 2018 -0800

    fixed close button on the progress dialog
    
    now it has the stock close image and it's activated
    when burn finishes
---
 xfburn/xfburn-progress-dialog.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/xfburn/xfburn-progress-dialog.c b/xfburn/xfburn-progress-dialog.c
index 6ad5cbb..53a4a4f 100644
--- a/xfburn/xfburn-progress-dialog.c
+++ b/xfburn/xfburn-progress-dialog.c
@@ -249,9 +249,11 @@ xfburn_progress_dialog_init (XfburnProgressDialog * obj)
   priv->button_stop = gtk_button_new_with_mnemonic (_("_Stop"));
   gtk_widget_show (priv->button_stop);
   gtk_dialog_add_action_widget (GTK_DIALOG (obj), priv->button_stop, GTK_RESPONSE_CANCEL);
+  gtk_widget_set_sensitive (priv->button_stop, TRUE);
   g_signal_connect (G_OBJECT (priv->button_stop), "clicked", G_CALLBACK (cb_button_stop_clicked), obj);
 
-  priv->button_close = gtk_button_new_with_label ("gtk-close");
+  priv->button_close = gtk_button_new_from_icon_name ("gtk-close", GTK_ICON_SIZE_BUTTON);
+  gtk_button_set_label (GTK_BUTTON (priv->button_close), "Close");
   gtk_widget_show (priv->button_close);
   gtk_dialog_add_action_widget (GTK_DIALOG (obj), priv->button_close, GTK_RESPONSE_CLOSE);
   gtk_widget_set_can_default (priv->button_close, TRUE);
@@ -633,6 +635,7 @@ xfburn_progress_dialog_set_status (XfburnProgressDialog * dialog, XfburnProgress
     gdk_threads_leave ();
 
     xfburn_progress_dialog_set_progress_bar_fraction (dialog, 100.0);
+    
   }
 }
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list