aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@novell.com>2004-06-17 18:50:51 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2004-06-17 18:50:51 +0800
commitf53b0b08919a9651d35b3e12eb474f1a66a260e3 (patch)
tree232fdda670b5860018708a0764773bdf5eacc47b /calendar
parentfeac6720dbbe28c93d03ab35e5c9c79f322d125b (diff)
downloadgsoc2013-evolution-f53b0b08919a9651d35b3e12eb474f1a66a260e3.tar.gz
gsoc2013-evolution-f53b0b08919a9651d35b3e12eb474f1a66a260e3.tar.zst
gsoc2013-evolution-f53b0b08919a9651d35b3e12eb474f1a66a260e3.zip
Fixes #60309
2004-06-17 Rodrigo Moya <rodrigo@novell.com> Fixes #60309 * gui/meeting-page.c (sensitize_widgets): moved up in the file, to be declared before any use. svn path=/trunk/; revision=26385
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog7
-rw-r--r--calendar/gui/dialogs/meeting-page.c32
2 files changed, 23 insertions, 16 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index ebd5f1962a..56f7d79e9f 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,10 @@
+2004-06-17 Rodrigo Moya <rodrigo@novell.com>
+
+ Fixes #60309
+
+ * gui/meeting-page.c (sensitize_widgets): moved up in the file, to
+ be declared before any use.
+
2004-06-16 Rodrigo Moya <rodrigo@novell.com>
* gui/e-itip-control.c: use e-util's HTML conversion function,
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);