From f53b0b08919a9651d35b3e12eb474f1a66a260e3 Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Thu, 17 Jun 2004 10:50:51 +0000 Subject: Fixes #60309 2004-06-17 Rodrigo Moya Fixes #60309 * gui/meeting-page.c (sensitize_widgets): moved up in the file, to be declared before any use. svn path=/trunk/; revision=26385 --- calendar/gui/dialogs/meeting-page.c | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'calendar/gui') diff --git a/calendar/gui/dialogs/meeting-page.c b/calendar/gui/dialogs/meeting-page.c index ce5938e6ec..ac193a7ce7 100644 --- a/calendar/gui/dialogs/meeting-page.c +++ b/calendar/gui/dialogs/meeting-page.c @@ -316,6 +316,22 @@ clear_widgets (MeetingPage *mpage) priv->existing = FALSE; } +static void +sensitize_widgets (MeetingPage *mpage) +{ + gboolean read_only; + MeetingPagePrivate *priv = mpage->priv; + + if (!e_cal_is_read_only (COMP_EDITOR_PAGE (mpage)->client, &read_only, NULL)) + read_only = TRUE; + + gtk_widget_set_sensitive (priv->organizer, !read_only); + gtk_widget_set_sensitive (priv->existing_organizer_btn, !read_only); + gtk_widget_set_sensitive (priv->add, !read_only); + gtk_widget_set_sensitive (priv->invite, !read_only); + gtk_widget_set_sensitive (priv->list_view, !read_only); +} + /* fill_widgets handler for the meeting page */ static gboolean meeting_page_fill_widgets (CompEditorPage *page, ECalComponent *comp) @@ -599,22 +615,6 @@ init_widgets (MeetingPage *mpage) g_signal_connect(priv->invite, "clicked", G_CALLBACK (invite_cb), mpage); } -static void -sensitize_widgets (MeetingPage *mpage) -{ - gboolean read_only; - MeetingPagePrivate *priv = mpage->priv; - - if (!e_cal_is_read_only (COMP_EDITOR_PAGE (mpage)->client, &read_only, NULL)) - read_only = TRUE; - - gtk_widget_set_sensitive (priv->organizer, !read_only); - gtk_widget_set_sensitive (priv->existing_organizer_btn, !read_only); - gtk_widget_set_sensitive (priv->add, !read_only); - gtk_widget_set_sensitive (priv->invite, !read_only); - gtk_widget_set_sensitive (priv->list_view, !read_only); -} - static void client_changed_cb (CompEditorPage *page, ECal *client, gpointer user_data) { -- cgit v1.2.3