From: Claudio Saavedra Date: Fri, 24 Apr 2009 16:13:02 +0000 (+0300) Subject: Only set double spacing in progress notes X-Git-Tag: 2.1.68-1~2 X-Git-Url: https://vcs.maemo.org/git/?a=commitdiff_plain;h=13c489cdae134d31c429a127270ebdc98c5a2919;p=hildon Only set double spacing in progress notes * src/hildon-note.c (hildon_note_rebuild): Only set the double spacing when it is a progress note. --- diff --git a/ChangeLog b/ChangeLog index f8bf55a..190ff44 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2009-04-24 Claudio Saavedra + * src/hildon-note.c (hildon_note_rebuild): Only set the double spacing + when it is a progress note. + +2009-04-24 Claudio Saavedra + * src/hildon-note.c (hildon_note_rebuild): Do not use a GtkHBox in the note, since there are no horizontally arranged contents. diff --git a/src/hildon-note.c b/src/hildon-note.c index e931f94..03385d3 100644 --- a/src/hildon-note.c +++ b/src/hildon-note.c @@ -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);