From 180d4e4ed0aaffc07bb9082dbcf754d5dd6aa042 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Fri, 8 Feb 2002 17:33:14 +0000 Subject: add a custom widget created with e_url_button_new 2002-02-08 JP Rosevear * gui/dialogs/task-details-page.glade: add a custom widget created with e_url_button_new * gui/dialogs/task-details-page.c (task_details_page_init): init url_button member to NULL (init_widgets): set the url button entry (get_widgets): get the url button * gui/calendar-commands.c (pixmaps): use new all day event icon svn path=/trunk/; revision=15610 --- calendar/gui/calendar-commands.c | 2 +- calendar/gui/dialogs/task-details-page.c | 10 ++++++- calendar/gui/dialogs/task-details-page.glade | 42 ++++++++++++++++++++++------ 3 files changed, 44 insertions(+), 10 deletions(-) (limited to 'calendar/gui') diff --git a/calendar/gui/calendar-commands.c b/calendar/gui/calendar-commands.c index ffa81de654..779e2b9441 100644 --- a/calendar/gui/calendar-commands.c +++ b/calendar/gui/calendar-commands.c @@ -718,7 +718,7 @@ static EPixmap pixmaps [] = E_PIXMAP ("/menu/File/Print/Print", "print.xpm"), E_PIXMAP ("/menu/File/Print/PrintPreview", "print-preview.xpm"), E_PIXMAP ("/menu/ComponentActionsPlaceholder/Actions/NewAppointment", "new_appointment.xpm"), - E_PIXMAP ("/menu/ComponentActionsPlaceholder/Actions/NewEvent", "new_appointment.xpm"), + E_PIXMAP ("/menu/ComponentActionsPlaceholder/Actions/NewEvent", "new_all_day_event.png"), E_PIXMAP ("/menu/ComponentActionsPlaceholder/Actions/NewMeeting", "meeting.xpm"), E_PIXMAP ("/menu/ComponentActionsPlaceholder/Actions/NewTask", "new_task-16.png"), E_PIXMAP ("/menu/Tools/ComponentPlaceholder/CalendarSettings", "configure_16_calendar.xpm"), diff --git a/calendar/gui/dialogs/task-details-page.c b/calendar/gui/dialogs/task-details-page.c index 47fbf3a945..adc0bdaf3c 100644 --- a/calendar/gui/dialogs/task-details-page.c +++ b/calendar/gui/dialogs/task-details-page.c @@ -30,6 +30,7 @@ #include #include #include +#include #include "e-util/e-dialog-widgets.h" #include "../calendar-config.h" #include "../e-timezone-entry.h" @@ -53,6 +54,7 @@ struct _TaskDetailsPagePrivate { GtkWidget *completed_date; GtkWidget *url; + GtkWidget *url_button; gboolean updating; }; @@ -168,6 +170,7 @@ task_details_page_init (TaskDetailsPage *tdpage) priv->completed_date = NULL; priv->url = NULL; + priv->url_button = NULL; priv->updating = FALSE; } @@ -477,7 +480,8 @@ get_widgets (TaskDetailsPage *tdpage) priv->completed_date = GW ("completed-date"); priv->url = GW ("url"); - + priv->url_button = GW ("url_button"); + #undef GW return (priv->status @@ -668,6 +672,9 @@ 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. */ @@ -764,3 +771,4 @@ task_details_page_create_date_edit (void) return dedit; } + diff --git a/calendar/gui/dialogs/task-details-page.glade b/calendar/gui/dialogs/task-details-page.glade index 54ba5d35b5..48ecfdfdca 100644 --- a/calendar/gui/dialogs/task-details-page.glade +++ b/calendar/gui/dialogs/task-details-page.glade @@ -281,13 +281,10 @@ Undefined - GtkEntry - url - True - True - True - 0 - + GtkHBox + hbox2 + False + 0 1 2 @@ -300,8 +297,37 @@ Undefined False False True - False + 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 v1.2.3