[Goodies-commits] r4672 - xfburn/trunk/xfburn

David Mohr squisher at xfce.org
Thu Apr 24 20:06:21 CEST 2008


Author: squisher
Date: 2008-04-24 18:06:21 +0000 (Thu, 24 Apr 2008)
New Revision: 4672

Modified:
   xfburn/trunk/xfburn/xfburn-device-box.c
Log:
Adding formating to the empty device list dialog text

Modified: xfburn/trunk/xfburn/xfburn-device-box.c
===================================================================
--- xfburn/trunk/xfburn/xfburn-device-box.c	2008-04-24 16:54:25 UTC (rev 4671)
+++ xfburn/trunk/xfburn/xfburn-device-box.c	2008-04-24 18:06:21 UTC (rev 4672)
@@ -409,20 +409,22 @@
                                   GTK_RESPONSE_CLOSE,
                                   NULL);
 
-  label = gtk_label_new ( _("Unable to retrieve the speed list for the drive. This is a known bug, which occurs with some drives. Please report it to xfburn at xfce.org together with the console output to increase the chances that it will get fixed.\nBurning should still work, but if there are problems anyways, please let us know.\nThank you!")
+  label = gtk_label_new (NULL);
+  gtk_label_set_markup (GTK_LABEL (label), _("<b>Unable to retrieve the speed list for the drive.</b>\n\nThis is a known bug, which occurs with some drives. Please report it to <i>xfburn at xfce.org</i> together with the console output to increase the chances that it will get fixed.\n\nBurning should still work, but if there are problems anyways, please let us know.\n\n<i>Thank you!</i>")
                         );
+  gtk_label_set_selectable (GTK_LABEL (label), TRUE);
   gtk_label_set_width_chars (GTK_LABEL (label), 30);
   gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
-  gtk_container_add (GTK_CONTAINER (dialog->vbox), label);
+  gtk_box_pack_start (GTK_BOX (dialog->vbox), label, TRUE, TRUE, BORDER);
   gtk_widget_show (label);
 
 
   check_show_notice = gtk_check_button_new_with_mnemonic (_("Continue to _show this notice"));
-  //gtk_box_pack_start (GTK_BOX (vbox2), priv->check_empty_speed_list, FALSE, FALSE, BORDER);
-  gtk_container_add (GTK_CONTAINER (dialog->vbox), check_show_notice);
+  gtk_box_pack_end (GTK_BOX (dialog->vbox), check_show_notice, TRUE, TRUE, BORDER);
   gtk_widget_show (check_show_notice);
   gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (check_show_notice), TRUE);
 
+
   switch (gtk_dialog_run (GTK_DIALOG (dialog))) {
     case GTK_RESPONSE_CLOSE:
       xfburn_settings_set_boolean ("show-empty-speed-list-notice", 




More information about the Goodies-commits mailing list