From b33925fd09ccfdc5b1c2f2ad7139936e89c37412 Mon Sep 17 00:00:00 2001 From: Hans Petter Jansson Date: Wed, 5 Feb 2003 00:13:23 +0000 Subject: Rename to e_meeting_time_selector_on_invite_others_button_expose() and 2003-02-04 Hans Petter Jansson * gui/e-meeting-time-sel.c (e_meeting_time_selector_on_invite_others_button_draw): Rename to e_meeting_time_selector_on_invite_others_button_expose() and handle "expose-event" instead of "draw". (e_meeting_time_selector_construct): The "draw" signal doesn't exist anymore - connect to "expose-event" instead. * gui/dialogs/event-page.c (clear_widgets): Clear the GtkTextBuffer for the description. (event_page_fill_widgets): Use the GtkTextBuffer. (event_page_fill_component): Use the GtkTextBuffer. (init_widgets): Create a GtkTextBuffer for the GtkTextView. Set word wrap. Connect to the "changed" signal of the model instead of the view. svn path=/trunk/; revision=19749 --- calendar/ChangeLog | 16 ++++++++++++++++ calendar/gui/e-meeting-time-sel.c | 19 ++++++++++--------- 2 files changed, 26 insertions(+), 9 deletions(-) diff --git a/calendar/ChangeLog b/calendar/ChangeLog index e99ecc9f66..5085c80150 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,19 @@ +2003-02-04 Hans Petter Jansson + + * gui/e-meeting-time-sel.c + (e_meeting_time_selector_on_invite_others_button_draw): + Rename to e_meeting_time_selector_on_invite_others_button_expose() + and handle "expose-event" instead of "draw". + (e_meeting_time_selector_construct): The "draw" signal doesn't exist + anymore - connect to "expose-event" instead. + + * gui/dialogs/event-page.c (clear_widgets): Clear the GtkTextBuffer + for the description. + (event_page_fill_widgets): Use the GtkTextBuffer. + (event_page_fill_component): Use the GtkTextBuffer. + (init_widgets): Create a GtkTextBuffer for the GtkTextView. Set word + wrap. Connect to the "changed" signal of the model instead of the view. + 2003-02-04 Hans Petter Jansson * gui/e-meeting-time-sel-item.c diff --git a/calendar/gui/e-meeting-time-sel.c b/calendar/gui/e-meeting-time-sel.c index 4085ac120a..399d65d850 100644 --- a/calendar/gui/e-meeting-time-sel.c +++ b/calendar/gui/e-meeting-time-sel.c @@ -150,9 +150,9 @@ static void e_meeting_time_selector_on_zoomed_out_toggled (GtkWidget *button, EMeetingTimeSelector *mts); static void e_meeting_time_selector_on_working_hours_toggled (GtkWidget *button, EMeetingTimeSelector *mts); -static void e_meeting_time_selector_on_invite_others_button_draw (GtkWidget *button, - GdkRectangle *area, - EMeetingTimeSelector *mts); +static gboolean e_meeting_time_selector_on_invite_others_button_expose (GtkWidget *button, + GdkEventExpose *event, + EMeetingTimeSelector *mts); static void e_meeting_time_selector_on_invite_others_button_clicked (GtkWidget *button, EMeetingTimeSelector *mts); static void e_meeting_time_selector_on_update_free_busy (GtkWidget *button, @@ -431,8 +431,8 @@ e_meeting_time_selector_construct (EMeetingTimeSelector * mts, EMeetingModel *em accel_key, GDK_MOD1_MASK, 0); g_signal_connect (button, "clicked", G_CALLBACK (e_meeting_time_selector_on_invite_others_button_clicked), mts); - g_signal_connect (button, "draw", - G_CALLBACK (e_meeting_time_selector_on_invite_others_button_draw), mts); + g_signal_connect (button, "expose-event", + G_CALLBACK (e_meeting_time_selector_on_invite_others_button_expose), mts); mts->options_button = gtk_button_new (); gtk_box_pack_start (GTK_BOX (hbox), mts->options_button, TRUE, TRUE, 0); @@ -1373,10 +1373,10 @@ e_meeting_time_selector_dump_date (GDate *date) #endif /* E_MEETING_TIME_SELECTOR_DEBUG */ -static void -e_meeting_time_selector_on_invite_others_button_draw (GtkWidget *button, - GdkRectangle *area, - EMeetingTimeSelector *mts) +static gboolean +e_meeting_time_selector_on_invite_others_button_expose (GtkWidget *button, + GdkEventExpose *event, + EMeetingTimeSelector *mts) { ETable *real_table; gboolean click_to_add = TRUE; @@ -1385,6 +1385,7 @@ e_meeting_time_selector_on_invite_others_button_draw (GtkWidget *button, g_object_get (G_OBJECT (real_table), "use_click_to_add", &click_to_add, NULL); gtk_widget_set_sensitive (button, click_to_add); + return FALSE; } static void -- cgit v1.2.3