[gimp] web-page: Use a GtkSizeGroup with labels
- From: Mukund Sivaraman <muks src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] web-page: Use a GtkSizeGroup with labels
- Date: Mon, 4 Apr 2011 12:38:25 +0000 (UTC)
commit 95a32f48b3b4a74ce27d20b5bf298e460c3146dd
Author: Mukund Sivaraman <muks banu com>
Date: Mon Apr 4 18:07:49 2011 +0530
web-page: Use a GtkSizeGroup with labels
plug-ins/common/web-page.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/plug-ins/common/web-page.c b/plug-ins/common/web-page.c
index 6c298f0..cd34ba0 100644
--- a/plug-ins/common/web-page.c
+++ b/plug-ins/common/web-page.c
@@ -219,6 +219,7 @@ webpage_dialog (void)
GtkWidget *image;
GtkWidget *label;
GtkWidget *entry;
+ GtkSizeGroup *sizegroup;
GtkObject *adjustment;
GtkWidget *spinbutton;
GtkWidget *combo;
@@ -276,6 +277,8 @@ webpage_dialog (void)
webpagevals.url);
gtk_widget_show (entry);
+ sizegroup = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
+
/* Width */
hbox = gtk_hbox_new (FALSE, 6);
gtk_box_pack_start (GTK_BOX (vbox),
@@ -283,6 +286,8 @@ webpage_dialog (void)
gtk_widget_show (hbox);
label = gtk_label_new (_("Width (pixels):"));
+ gtk_size_group_add_widget (sizegroup, label);
+
gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5);
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);
@@ -300,6 +305,8 @@ webpage_dialog (void)
gtk_widget_show (hbox);
label = gtk_label_new (_("Font size:"));
+ gtk_size_group_add_widget (sizegroup, label);
+
gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5);
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);
@@ -343,6 +350,8 @@ webpage_dialog (void)
gtk_box_pack_start (GTK_BOX (hbox), combo, FALSE, FALSE, 0);
gtk_widget_show (combo);
+ g_object_unref (sizegroup);
+
status = gimp_dialog_run (GIMP_DIALOG (dialog));
if (status == GTK_RESPONSE_OK)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]