diff options
author | Rodney Dawes <dobey@novell.com> | 2004-07-13 01:06:41 +0800 |
---|---|---|
committer | Rodney Dawes <dobey@src.gnome.org> | 2004-07-13 01:06:41 +0800 |
commit | 974f00331b0a67b68b9ecf3fb7da9a18e458fb3f (patch) | |
tree | be0e25164fc758459735c47dac3ea02875f2ed84 /calendar/gui/dialogs | |
parent | 53e2bdda36b6bb68968fb857c2ce0dbac4bc3baf (diff) | |
download | gsoc2013-evolution-974f00331b0a67b68b9ecf3fb7da9a18e458fb3f.tar.gz gsoc2013-evolution-974f00331b0a67b68b9ecf3fb7da9a18e458fb3f.tar.zst gsoc2013-evolution-974f00331b0a67b68b9ecf3fb7da9a18e458fb3f.zip |
Update the layout of the dialog to be more usable
2004-07-12 Rodney Dawes <dobey@novell.com>
* gui/dialogs/recur-comp.c (recur_component_dialog):
Update the layout of the dialog to be more usable
Partially fixes #56171
svn path=/trunk/; revision=26623
Diffstat (limited to 'calendar/gui/dialogs')
-rw-r--r-- | calendar/gui/dialogs/recur-comp.c | 29 |
1 files changed, 23 insertions, 6 deletions
diff --git a/calendar/gui/dialogs/recur-comp.c b/calendar/gui/dialogs/recur-comp.c index d18f6bc59d..bd0d7a1080 100644 --- a/calendar/gui/dialogs/recur-comp.c +++ b/calendar/gui/dialogs/recur-comp.c @@ -38,6 +38,7 @@ recur_component_dialog (ECal *client, { char *str; GtkWidget *dialog, *rb_this, *rb_prior, *rb_future, *rb_all, *hbox; + GtkWidget *placeholder, *vbox; ECalComponentVType vtype; gboolean ret; @@ -66,29 +67,45 @@ recur_component_dialog (ECal *client, dialog = gtk_message_dialog_new (parent, 0, GTK_MESSAGE_QUESTION, GTK_BUTTONS_OK_CANCEL, "%s", str); g_free (str); - - hbox = gtk_hbox_new (FALSE, 2); + gtk_dialog_set_has_separator (GTK_DIALOG (dialog), FALSE); + gtk_window_set_resizable (GTK_WINDOW (dialog), TRUE); + + hbox = gtk_hbox_new (FALSE, 12); gtk_container_add (GTK_CONTAINER (GTK_DIALOG (dialog)->vbox), hbox); + + placeholder = gtk_label_new (""); + gtk_widget_set_size_request (placeholder, 48, 48); + gtk_box_pack_start (GTK_BOX (hbox), placeholder, FALSE, FALSE, 0); + gtk_widget_show (placeholder); + + vbox = gtk_vbox_new (FALSE, 6); + gtk_box_pack_start (GTK_BOX (hbox), vbox, TRUE, TRUE, 0); + gtk_widget_show (vbox); + rb_this = gtk_radio_button_new_with_label (NULL, _("This Instance Only")); - gtk_container_add (GTK_CONTAINER (hbox), rb_this); + gtk_container_add (GTK_CONTAINER (vbox), rb_this); if (!e_cal_get_static_capability (client, CAL_STATIC_CAPABILITY_NO_THISANDPRIOR)) { rb_prior = gtk_radio_button_new_with_label_from_widget (GTK_RADIO_BUTTON (rb_this), _("This and Prior Instances")); - gtk_container_add (GTK_CONTAINER (hbox), rb_prior); + gtk_container_add (GTK_CONTAINER (vbox), rb_prior); } else rb_prior = NULL; if (!e_cal_get_static_capability (client, CAL_STATIC_CAPABILITY_NO_THISANDFUTURE)) { rb_future = gtk_radio_button_new_with_label_from_widget (GTK_RADIO_BUTTON (rb_this), _("This and Future Instances")); - gtk_container_add (GTK_CONTAINER (hbox), rb_future); + gtk_container_add (GTK_CONTAINER (vbox), rb_future); } else rb_future = NULL; rb_all = gtk_radio_button_new_with_label_from_widget (GTK_RADIO_BUTTON (rb_this), _("All Instances")); - gtk_container_add (GTK_CONTAINER (hbox), rb_all); + gtk_container_add (GTK_CONTAINER (vbox), rb_all); gtk_widget_show_all (hbox); + placeholder = gtk_label_new (""); + gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox), placeholder, FALSE, FALSE, 0); + gtk_widget_show (placeholder); + ret = gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_OK; if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (rb_this))) |