[gnome-packagekit] Fix alignment of dialog



commit 1f690d30cd8dd95dbf3d4b92cba693bb26d293cc
Author: William Jon McCann <william jon mccann gmail com>
Date:   Mon Mar 4 10:27:03 2013 +0000

    Fix alignment of dialog
    
    Resolves: https://bugzilla.gnome.org/show_bug.cgi?id=695015
    Signed-off-by: Richard Hughes <richard hughsie com>

 data/gpk-client.ui     |    1 +
 src/gpk-modal-dialog.c |    4 +---
 2 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/data/gpk-client.ui b/data/gpk-client.ui
index 280d1b0..284e87b 100644
--- a/data/gpk-client.ui
+++ b/data/gpk-client.ui
@@ -91,6 +91,7 @@
                         <child>
                           <object class="GtkLabel" id="label_message">
                             <property name="visible">True</property>
+                            <property name="xalign">0</property>
                             <property name="label">Some &lt;b&gt;extra&lt;/b&gt; codecs are 
required:</property>
                             <property name="use_markup">True</property>
                             <property name="wrap">True</property>
diff --git a/src/gpk-modal-dialog.c b/src/gpk-modal-dialog.c
index 237433f..8b6f3a6 100644
--- a/src/gpk-modal-dialog.c
+++ b/src/gpk-modal-dialog.c
@@ -851,10 +851,8 @@ gpk_modal_dialog_init (GpkModalDialog *dialog)
        g_signal_connect (widget, "clicked", G_CALLBACK (gpk_modal_dialog_button_cancel_cb), dialog);
 
        /* set the message text an absolute width so it's forced to wrap */
-       widget = GTK_WIDGET (gtk_builder_get_object (dialog->priv->builder, "hbox_message"));
-       gtk_widget_set_size_request (widget, 400, -1);
        widget = GTK_WIDGET (gtk_builder_get_object (dialog->priv->builder, "label_message"));
-       gtk_widget_set_size_request (widget, 400, -1);
+       gtk_label_set_max_width_chars (GTK_LABEL (widget), 80);
 
 out_build:
        /* clear status and progress text */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]