diff options
author | Milan Crha <mcrha@redhat.com> | 2012-07-03 00:08:52 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2012-07-03 00:11:43 +0800 |
commit | 8b7bd45b7cfcfa5c7002d88a933758c78661d1b4 (patch) | |
tree | dd01972dab230defb06b8a4a6f5790ffcc20254c /mail | |
parent | 62a4fb09124725720aa1bd5d46f594786df92c6f (diff) | |
download | gsoc2013-evolution-8b7bd45b7cfcfa5c7002d88a933758c78661d1b4.tar gsoc2013-evolution-8b7bd45b7cfcfa5c7002d88a933758c78661d1b4.tar.gz gsoc2013-evolution-8b7bd45b7cfcfa5c7002d88a933758c78661d1b4.tar.bz2 gsoc2013-evolution-8b7bd45b7cfcfa5c7002d88a933758c78661d1b4.tar.lz gsoc2013-evolution-8b7bd45b7cfcfa5c7002d88a933758c78661d1b4.tar.xz gsoc2013-evolution-8b7bd45b7cfcfa5c7002d88a933758c78661d1b4.tar.zst gsoc2013-evolution-8b7bd45b7cfcfa5c7002d88a933758c78661d1b4.zip |
Bug #246231 - Add Filter Rule dialog - UI suggestions
Diffstat (limited to 'mail')
-rw-r--r-- | mail/em-filter-rule.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/mail/em-filter-rule.c b/mail/em-filter-rule.c index 1fa27f0321..901d79b21a 100644 --- a/mail/em-filter-rule.c +++ b/mail/em-filter-rule.c @@ -586,7 +586,7 @@ get_widget (EFilterRule *fr, g_free (msg); hgrid = GTK_GRID (gtk_grid_new ()); - gtk_grid_set_column_spacing (hgrid, 12); + gtk_grid_set_column_spacing (hgrid, 3); gtk_widget_set_hexpand (GTK_WIDGET (hgrid), TRUE); gtk_widget_set_halign (GTK_WIDGET (hgrid), GTK_ALIGN_FILL); gtk_container_add (GTK_CONTAINER (widget), GTK_WIDGET (hgrid)); @@ -595,7 +595,7 @@ get_widget (EFilterRule *fr, gtk_grid_attach (hgrid, label, 0, 0, 1, 1); inframe = gtk_grid_new (); - gtk_grid_set_column_spacing (GTK_GRID (inframe), 12); + gtk_grid_set_row_spacing (GTK_GRID (inframe), 6); gtk_orientable_set_orientation (GTK_ORIENTABLE (inframe), GTK_ORIENTATION_VERTICAL); gtk_widget_set_hexpand (inframe, TRUE); gtk_widget_set_halign (inframe, GTK_ALIGN_FILL); @@ -614,20 +614,6 @@ get_widget (EFilterRule *fr, /* only set to automatically clean up the memory */ g_object_set_data_full ((GObject *) hgrid, "data", data, g_free); - hgrid = GTK_GRID (gtk_grid_new ()); - gtk_grid_set_column_spacing (hgrid, 3); - - add = gtk_button_new_with_mnemonic (_("Add Ac_tion")); - gtk_button_set_image ( - GTK_BUTTON (add), gtk_image_new_from_stock ( - GTK_STOCK_ADD, GTK_ICON_SIZE_BUTTON)); - g_signal_connect ( - add, "clicked", - G_CALLBACK (more_parts), data); - gtk_grid_attach (hgrid, add, 0, 0, 1, 1); - - gtk_container_add (GTK_CONTAINER (inframe), GTK_WIDGET (hgrid)); - l = ff->actions; while (l) { part = l->data; @@ -654,6 +640,20 @@ get_widget (EFilterRule *fr, gtk_container_add (GTK_CONTAINER (inframe), scrolledwindow); + hgrid = GTK_GRID (gtk_grid_new ()); + gtk_grid_set_column_spacing (hgrid, 3); + + add = gtk_button_new_with_mnemonic (_("Add Ac_tion")); + gtk_button_set_image ( + GTK_BUTTON (add), gtk_image_new_from_stock ( + GTK_STOCK_ADD, GTK_ICON_SIZE_BUTTON)); + g_signal_connect ( + add, "clicked", + G_CALLBACK (more_parts), data); + gtk_grid_attach (hgrid, add, 0, 0, 1, 1); + + gtk_container_add (GTK_CONTAINER (inframe), GTK_WIDGET (hgrid)); + g_object_set_data (G_OBJECT (add), "scrolled-window", scrolledwindow); g_signal_connect ( |