aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnna Marie Dirks <anna@ximian.com>2003-05-19 23:24:01 +0800
committerAnna Dirks <anna@src.gnome.org>2003-05-19 23:24:01 +0800
commitdb01b7e61d77ecd6f1d9cc1be300b130bdfc88dd (patch)
tree3fc30aa8a65a9918efd6b4c941984d7f6262228e
parentfef3f0acc78f134501e8a13386e5ad49380ac17f (diff)
downloadgsoc2013-evolution-db01b7e61d77ecd6f1d9cc1be300b130bdfc88dd.tar
gsoc2013-evolution-db01b7e61d77ecd6f1d9cc1be300b130bdfc88dd.tar.gz
gsoc2013-evolution-db01b7e61d77ecd6f1d9cc1be300b130bdfc88dd.tar.bz2
gsoc2013-evolution-db01b7e61d77ecd6f1d9cc1be300b130bdfc88dd.tar.lz
gsoc2013-evolution-db01b7e61d77ecd6f1d9cc1be300b130bdfc88dd.tar.xz
gsoc2013-evolution-db01b7e61d77ecd6f1d9cc1be300b130bdfc88dd.tar.zst
gsoc2013-evolution-db01b7e61d77ecd6f1d9cc1be300b130bdfc88dd.zip
This patch HIG-ifies the "New News Feed" dialog, by using a table with
2003-05-19 Anna Marie Dirks <anna@ximian.com> * e-summary-preferences.c: This patch HIG-ifies the "New News Feed" dialog, by using a table with appropriate spacing instead of hboxes. Also fixes an invalid cast of gtk_dialog->gnome_dialog. svn path=/trunk/; revision=21251
-rw-r--r--my-evolution/ChangeLog4
-rw-r--r--my-evolution/e-summary-preferences.c30
2 files changed, 19 insertions, 15 deletions
diff --git a/my-evolution/ChangeLog b/my-evolution/ChangeLog
index 788ce216da..0338cde89f 100644
--- a/my-evolution/ChangeLog
+++ b/my-evolution/ChangeLog
@@ -1,5 +1,9 @@
2003-05-19 Anna Marie Dirks <anna@ximian.com>
+ * e-summary-preferences.c: This patch HIG-ifies the "New News Feed"
+ dialog, by using a table with appropriate spacing instead of hboxes.
+ Also fixes an invalid cast of gtk_dialog->gnome_dialog.
+
* my-evolution.glade: * my-evolution.glade: HIG-ified this
dialog by adding proper spacing/padding/stock buttons/etc.
Fixes bugs #41131, #41133.
diff --git a/my-evolution/e-summary-preferences.c b/my-evolution/e-summary-preferences.c
index 2cd80dded5..b427335e19 100644
--- a/my-evolution/e-summary-preferences.c
+++ b/my-evolution/e-summary-preferences.c
@@ -559,10 +559,10 @@ rdf_new_url_clicked_cb (GtkButton *button,
PropertyData *pd)
{
GtkWidget *add_dialog;
- GtkWidget *label, *hbox;
+ GtkWidget *name_label, *url_label, *table;
GtkWidget *new_name_entry, *new_url_entry;
- add_dialog = gtk_dialog_new_with_buttons (_("Add a news feed"),
+ add_dialog = gtk_dialog_new_with_buttons (_("New News Feed"),
GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (button))),
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
@@ -570,22 +570,22 @@ rdf_new_url_clicked_cb (GtkButton *button,
NULL);
gtk_dialog_set_default_response (GTK_DIALOG (add_dialog), GTK_RESPONSE_OK);
- label = gtk_label_new (_("Enter the URL of the news feed you wish to add"));
- gtk_box_pack_start (GTK_BOX (GNOME_DIALOG (add_dialog)->vbox), label,
- TRUE, TRUE, 0);
- hbox = gtk_hbox_new (FALSE, 2);
- label = gtk_label_new (_("Name:"));
- gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
+ table = gtk_table_new (2, 2, FALSE);
+
+ name_label = gtk_label_new_with_mnemonic (_("_Name:"));
+ gtk_table_attach (GTK_TABLE (table), name_label, 0, 1, 0, 1, GTK_FILL, 0, 6, 6);
+
new_name_entry = gtk_entry_new ();
- gtk_box_pack_start (GTK_BOX (hbox), new_name_entry, TRUE, TRUE, 0);
- gtk_box_pack_start (GTK_BOX (GNOME_DIALOG (add_dialog)->vbox), hbox, TRUE, TRUE, 3);
+ gtk_table_attach (GTK_TABLE (table), new_name_entry, 1, 2, 0, 1, GTK_EXPAND | GTK_FILL, 0, 6, 6);
+
+ url_label = gtk_label_new_with_mnemonic (_("_URL:"));
+ gtk_table_attach (GTK_TABLE (table), url_label, 0, 1, 1, 2, GTK_FILL, 0, 6, 6);
- hbox = gtk_hbox_new (FALSE, 2);
- label = gtk_label_new (_("URL:"));
new_url_entry = gtk_entry_new ();
- gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
- gtk_box_pack_start (GTK_BOX (hbox), new_url_entry, TRUE, TRUE, 0);
- gtk_box_pack_start (GTK_BOX (GNOME_DIALOG (add_dialog)->vbox), hbox, TRUE, TRUE, 3);
+ gtk_table_attach (GTK_TABLE (table), new_url_entry, 1, 2, 1, 2, GTK_EXPAND | GTK_FILL, 0, 6, 6);
+
+
+ gtk_box_pack_start (GTK_BOX (GTK_DIALOG (add_dialog)->vbox), table, FALSE, FALSE, 6);
gtk_widget_show_all (add_dialog);
if (gtk_dialog_run (GTK_DIALOG (add_dialog)) == GTK_RESPONSE_OK) {