diff options
author | Federico Mena Quintero <federico@ximian.com> | 2003-07-14 03:29:41 +0800 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2003-07-14 03:29:41 +0800 |
commit | e5ec3be0a33af4efc460d93ce0d9ad4642bbb27b (patch) | |
tree | 8f75f9b0d0501dcb6fbfdb6a698544e6ce87e586 /calendar/gui/dialogs/task-details-page.c | |
parent | 9cafe346c61294495cc42a8124257469e28c6879 (diff) | |
download | gsoc2013-evolution-e5ec3be0a33af4efc460d93ce0d9ad4642bbb27b.tar.gz gsoc2013-evolution-e5ec3be0a33af4efc460d93ce0d9ad4642bbb27b.tar.zst gsoc2013-evolution-e5ec3be0a33af4efc460d93ce0d9ad4642bbb27b.zip |
Changed the "URL:" label to "_Web Page:". Added a widget name to the URL
2003-07-11 Federico Mena Quintero <federico@ximian.com>
* gui/dialogs/task-details-page.glade: Changed the "URL:" label to
"_Web Page:". Added a widget name to the URL label so that we can
hook up its mnemonic by hand. Added underlines to the "%
Complete:" and "Date Completed:" labels. Added a widget name to
the date completed label, also so that we can hook up its mnemonic.
* gui/dialogs/task-details-page.c (get_widgets): Get the url_label
and date_completed_label as well.
(init_widgets): Set the mnemonic widgets of the url_label and the
date_completed_label by hand, as their respective widgets are
not created by libglade.
* gui/e-calendar-table.c (tasks_popup_menu): Added an item for
"Open Web Page".
(e_calendar_table_show_popup_menu): Disable the aforementioned
menu item if the selected task doesn't have the URL property set.
(open_url_cb): New callback.
* gui/e-tasks.c (write_html): Make the HTML say "Web Page:"
instead of "URL:".
svn path=/trunk/; revision=21805
Diffstat (limited to 'calendar/gui/dialogs/task-details-page.c')
-rw-r--r-- | calendar/gui/dialogs/task-details-page.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/calendar/gui/dialogs/task-details-page.c b/calendar/gui/dialogs/task-details-page.c index 17524e2994..717ee7987d 100644 --- a/calendar/gui/dialogs/task-details-page.c +++ b/calendar/gui/dialogs/task-details-page.c @@ -52,8 +52,10 @@ struct _TaskDetailsPagePrivate { GtkWidget *priority; GtkWidget *percent_complete; + GtkWidget *date_completed_label; GtkWidget *completed_date; + GtkWidget *url_label; GtkWidget *url_entry; GtkWidget *url; @@ -148,8 +150,10 @@ task_details_page_init (TaskDetailsPage *tdpage) priv->priority = NULL; priv->percent_complete = NULL; + priv->date_completed_label = NULL; priv->completed_date = NULL; + priv->url_label = NULL; priv->url_entry = NULL; priv->url = NULL; @@ -469,9 +473,13 @@ get_widgets (TaskDetailsPage *tdpage) priv->priority = GW ("priority"); priv->percent_complete = GW ("percent-complete"); + priv->date_completed_label = GW ("date_completed_label"); + priv->completed_date = GW ("completed-date"); gtk_widget_show (priv->completed_date); + priv->url_label = GW ("url_label"); + priv->url_entry = GW ("url_entry"); gtk_widget_show (priv->url_entry); priv->url = e_url_entry_get_entry (E_URL_ENTRY (priv->url_entry)); @@ -481,7 +489,9 @@ get_widgets (TaskDetailsPage *tdpage) return (priv->status && priv->priority && priv->percent_complete + && priv->date_completed_label && priv->completed_date + && priv->url_label && priv->url); } @@ -666,6 +676,10 @@ init_widgets (TaskDetailsPage *tdpage) (EDateEditGetTimeCallback) comp_editor_get_current_time, tdpage, NULL); + /* These are created by hand, so hook the mnemonics manually */ + gtk_label_set_mnemonic_widget (GTK_LABEL (priv->date_completed_label), priv->completed_date); + gtk_label_set_mnemonic_widget (GTK_LABEL (priv->url_label), priv->url_entry); + /* Connect signals. The Status, Percent Complete & Date Completed properties are closely related so whenever one changes we may need to update the other 2. */ |