nautilus-cd-burner r2258 - in trunk: . src
- From: hadess svn gnome org
- To: svn-commits-list gnome org
- Subject: nautilus-cd-burner r2258 - in trunk: . src
- Date: Tue, 16 Dec 2008 11:06:20 +0000 (UTC)
Author: hadess
Date: Tue Dec 16 11:06:20 2008
New Revision: 2258
URL: http://svn.gnome.org/viewvc/nautilus-cd-burner?rev=2258&view=rev
Log:
2008-12-16 Bastien Nocera <hadess hadess net>
* src/nautilus-burn-bar.c (nautilus_burn_bar_init): Add a hint
to the clue bar (Closes: #316410)
Modified:
trunk/ChangeLog
trunk/src/nautilus-burn-bar.c
Modified: trunk/src/nautilus-burn-bar.c
==============================================================================
--- trunk/src/nautilus-burn-bar.c (original)
+++ trunk/src/nautilus-burn-bar.c Tue Dec 16 11:06:20 2008
@@ -125,6 +125,9 @@
{
GtkWidget *label;
GtkWidget *hbox;
+ GtkWidget *vbox;
+ GtkWidget *image;
+ char *hint;
bar->priv = NAUTILUS_BURN_BAR_GET_PRIVATE (bar);
@@ -134,14 +137,30 @@
hbox = GTK_WIDGET (bar);
+ vbox = gtk_vbox_new (FALSE, 6);
+ gtk_widget_show (vbox);
+ gtk_box_pack_start (GTK_BOX (hbox), vbox, TRUE, TRUE, 0);
+
label = gtk_label_new (_("CD/DVD Creator Folder"));
+ gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
+ gtk_widget_show (label);
+ gtk_box_pack_start (GTK_BOX (vbox), label, TRUE, TRUE, 0);
+
+ label = gtk_label_new ("");
+ hint = g_strdup_printf ("<i>%s</i>", _("Drag files to write to disc here"));
+ gtk_label_set_markup (GTK_LABEL (label), hint);
+ gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
gtk_widget_show (label);
- gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), label, TRUE, TRUE, 0);
bar->priv->button = gtk_button_new_with_label (_("Write to Disc"));
gtk_widget_show (bar->priv->button);
gtk_box_pack_end (GTK_BOX (hbox), bar->priv->button, FALSE, FALSE, 0);
+ image = gtk_image_new_from_icon_name ("nautilus-cd-burner", GTK_ICON_SIZE_BUTTON);
+ gtk_widget_show (image);
+ gtk_button_set_image (GTK_BUTTON (bar->priv->button), image);
+
g_signal_connect (bar->priv->button, "clicked",
G_CALLBACK (button_clicked_cb),
bar);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]