diff options
Diffstat (limited to 'calendar/gui/dialogs')
-rw-r--r-- | calendar/gui/dialogs/meeting-page.c | 32 |
1 files changed, 16 insertions, 16 deletions
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) @@ -600,22 +616,6 @@ init_widgets (MeetingPage *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) { MeetingPage *mpage = MEETING_PAGE (page); |