Only set double spacing in progress notes
authorClaudio Saavedra <csaavedra@igalia.com>
Fri, 24 Apr 2009 16:13:02 +0000 (19:13 +0300)
committerClaudio Saavedra <csaavedra@igalia.com>
Fri, 24 Apr 2009 16:13:02 +0000 (19:13 +0300)
* src/hildon-note.c (hildon_note_rebuild): Only set the double spacing
when it is a progress note.

ChangeLog
src/hildon-note.c

index f8bf55a..190ff44 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2009-04-24  Claudio Saavedra  <csaavedra@igalia.com>
 
+       * src/hildon-note.c (hildon_note_rebuild): Only set the double spacing
+       when it is a progress note.
+
+2009-04-24  Claudio Saavedra  <csaavedra@igalia.com>
+
        * src/hildon-note.c (hildon_note_rebuild): Do not use a GtkHBox
        in the note, since there are no horizontally arranged contents.
 
index e931f94..03385d3 100644 (file)
@@ -655,8 +655,8 @@ hildon_note_rebuild                             (HildonNote *note)
     }
     gtk_widget_set_no_show_all (dialog->action_area, is_info_note);
 
-    /* Pack item with label vertically */
-    priv->box = gtk_vbox_new (FALSE, HILDON_MARGIN_DOUBLE);
+    /* Pack label vertically. Spacing is only necessary for the progressbar note. */
+    priv->box = gtk_vbox_new (FALSE, priv->progressbar ? HILDON_MARGIN_DOUBLE : 0);
     gtk_container_add (GTK_CONTAINER (priv->event_box), priv->box);
     gtk_box_pack_start (GTK_BOX (priv->box), priv->label, TRUE, TRUE, 0);