From 1e390adb7d57419d8117b167229cc35e7cc1486e Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Fri, 8 Feb 2002 21:53:53 +0000 Subject: change custom widget creator to e_url_entry_new 2002-02-08 JP Rosevear * gui/dialogs/task-details-page.glade: change custom widget creator to e_url_entry_new * gui/dialogs/task-details-page.c (get_widgets): get the url entry and its entry svn path=/trunk/; revision=15622 --- calendar/ChangeLog | 8 ++++++ calendar/gui/dialogs/task-details-page.c | 14 +++++----- calendar/gui/dialogs/task-details-page.glade | 39 +++++----------------------- 3 files changed, 20 insertions(+), 41 deletions(-) diff --git a/calendar/ChangeLog b/calendar/ChangeLog index d087f746bf..3885059cc3 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,11 @@ +2002-02-08 JP Rosevear + + * gui/dialogs/task-details-page.glade: change custom widget + creator to e_url_entry_new + + * gui/dialogs/task-details-page.c (get_widgets): get the url entry + and its entry + 2002-02-08 JP Rosevear * gui/dialogs/task-details-page.glade: add a custom widget created diff --git a/calendar/gui/dialogs/task-details-page.c b/calendar/gui/dialogs/task-details-page.c index adc0bdaf3c..84070ff541 100644 --- a/calendar/gui/dialogs/task-details-page.c +++ b/calendar/gui/dialogs/task-details-page.c @@ -30,7 +30,7 @@ #include #include #include -#include +#include #include "e-util/e-dialog-widgets.h" #include "../calendar-config.h" #include "../e-timezone-entry.h" @@ -53,8 +53,8 @@ struct _TaskDetailsPagePrivate { GtkWidget *completed_date; + GtkWidget *url_entry; GtkWidget *url; - GtkWidget *url_button; gboolean updating; }; @@ -169,8 +169,9 @@ task_details_page_init (TaskDetailsPage *tdpage) priv->percent_complete = NULL; priv->completed_date = NULL; + + priv->url_entry = NULL; priv->url = NULL; - priv->url_button = NULL; priv->updating = FALSE; } @@ -479,8 +480,8 @@ get_widgets (TaskDetailsPage *tdpage) priv->completed_date = GW ("completed-date"); - priv->url = GW ("url"); - priv->url_button = GW ("url_button"); + priv->url_entry = GW ("url_entry"); + priv->url = e_url_entry_get_entry (E_URL_ENTRY (priv->url_entry)); #undef GW @@ -672,9 +673,6 @@ init_widgets (TaskDetailsPage *tdpage) (EDateEditGetTimeCallback) comp_editor_get_current_time, tdpage, NULL); - /* Connect the url button to the url entry */ - e_url_button_set_entry (E_URL_BUTTON (priv->url_button), priv->url); - /* Connect signals. The Status, Percent Complete & Date Completed properties are closely related so whenever one changes we may need to update the other 2. */ diff --git a/calendar/gui/dialogs/task-details-page.glade b/calendar/gui/dialogs/task-details-page.glade index 48ecfdfdca..28bf6a3bcc 100644 --- a/calendar/gui/dialogs/task-details-page.glade +++ b/calendar/gui/dialogs/task-details-page.glade @@ -281,10 +281,12 @@ Undefined - GtkHBox - hbox2 - False - 0 + Custom + url_entry + e_url_entry_new + 0 + 0 + Fri, 08 Feb 2002 21:02:37 GMT 1 2 @@ -299,35 +301,6 @@ Undefined True True - - - GtkEntry - url - True - True - True - 0 - - - 0 - True - True - - - - - Custom - url_button - e_url_button_new - 0 - 0 - Fri, 08 Feb 2002 16:56:48 GMT - - 0 - False - False - - -- cgit