diff options
| author | Chris Lumens <clumens@redhat.com> | 2012-05-24 13:32:34 -0400 |
|---|---|---|
| committer | Chris Lumens <clumens@redhat.com> | 2012-05-24 16:37:16 -0400 |
| commit | 44921f8a1c4a4cf62eeba2668457cc763b826738 (patch) | |
| tree | 17deb9ba528f8519ffdad9945bbc26f5c36d9ef0 /widgets | |
| parent | 6176b2386b8ebcc73c22a66425e349bef6d05d68 (diff) | |
| download | anaconda-44921f8a1c4a4cf62eeba2668457cc763b826738.tar.gz anaconda-44921f8a1c4a4cf62eeba2668457cc763b826738.tar.xz anaconda-44921f8a1c4a4cf62eeba2668457cc763b826738.zip | |
Fix the alignment of text in the MountpointSelector.
A side effect of this is that the whole left hand side is now wider, but I
think that can be fixed by adjusting the stuff that goes in the right hand
side.
Diffstat (limited to 'widgets')
| -rw-r--r-- | widgets/src/MountpointSelector.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/widgets/src/MountpointSelector.c b/widgets/src/MountpointSelector.c index ea8bfc7ab..95564d2bb 100644 --- a/widgets/src/MountpointSelector.c +++ b/widgets/src/MountpointSelector.c @@ -155,6 +155,7 @@ static void anaconda_mountpoint_selector_init(AnacondaMountpointSelector *mountp markup = g_markup_printf_escaped("<span fgcolor='black' size='large' weight='bold'>%s</span>", _(DEFAULT_NAME)); gtk_label_set_markup(GTK_LABEL(mountpoint->priv->name_label), markup); gtk_misc_set_alignment(GTK_MISC(mountpoint->priv->name_label), 0, 0); + gtk_widget_set_hexpand(GTK_WIDGET(mountpoint->priv->name_label), TRUE); g_free(markup); /* Create the size label. */ @@ -167,8 +168,9 @@ static void anaconda_mountpoint_selector_init(AnacondaMountpointSelector *mountp /* Create the mountpoint label. */ mountpoint->priv->mountpoint_label = gtk_label_new(NULL); markup = g_markup_printf_escaped("<span fgcolor='grey' size='small'>%s</span>", _(DEFAULT_MOUNTPOINT)); - gtk_label_set_markup(GTK_LABEL(mountpoint->priv->name_label), markup); - gtk_misc_set_alignment(GTK_MISC(mountpoint->priv->name_label), 0, 0); + gtk_label_set_markup(GTK_LABEL(mountpoint->priv->mountpoint_label), markup); + gtk_misc_set_alignment(GTK_MISC(mountpoint->priv->mountpoint_label), 0, 0); + gtk_widget_set_hexpand(GTK_WIDGET(mountpoint->priv->mountpoint_label), TRUE); g_free(markup); /* Add everything to the grid, add the grid to the widget. */ |
