aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog7
-rw-r--r--calendar/gui/dialogs/recurrence-page.c15
2 files changed, 13 insertions, 9 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index aa401c61b2..d8bb0afb2c 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,10 @@
+2006-07-31 Chenthill Palanisamy <pchenthill@novell.com>
+
+ Fixes #323499
+ * gui/dialogs/recurrence-page.c: (interval_selection_done_cb),
+ (ending_selection_done_cb), (init_widgets): Listen to the
+ changed signal from the GtkOptionMenu.
+
2006-07-27 Chenthill Palanisamy <pchenthill@novell.com>
Fixes #345646
diff --git a/calendar/gui/dialogs/recurrence-page.c b/calendar/gui/dialogs/recurrence-page.c
index ed070f057b..b4eafd468c 100644
--- a/calendar/gui/dialogs/recurrence-page.c
+++ b/calendar/gui/dialogs/recurrence-page.c
@@ -2092,7 +2092,7 @@ interval_value_changed_cb (GtkAdjustment *adj, gpointer data)
* change the contents of the recurrence special widget.
*/
static void
-interval_selection_done_cb (GtkMenuShell *menu_shell, gpointer data)
+interval_selection_done_cb (GtkOptionMenu *menu, gpointer data)
{
RecurrencePage *rpage;
@@ -2107,7 +2107,7 @@ interval_selection_done_cb (GtkMenuShell *menu_shell, gpointer data)
* change the contents of the ending special widget.
*/
static void
-ending_selection_done_cb (GtkMenuShell *menu_shell, gpointer data)
+ending_selection_done_cb (GtkOptionMenu *menu, gpointer data)
{
RecurrencePage *rpage;
@@ -2310,7 +2310,6 @@ init_widgets (RecurrencePage *rpage)
RecurrencePagePrivate *priv;
ECalendar *ecal;
GtkAdjustment *adj;
- GtkWidget *menu;
GtkTreeViewColumn *column;
GtkCellRenderer *cell_renderer;
@@ -2345,16 +2344,14 @@ init_widgets (RecurrencePage *rpage)
rpage);
/* Recurrence units */
-
- menu = gtk_option_menu_get_menu (GTK_OPTION_MENU (priv->interval_unit));
- g_signal_connect((menu), "selection_done",
+
+ g_signal_connect(GTK_OPTION_MENU (priv->interval_unit), "changed",
G_CALLBACK (interval_selection_done_cb),
rpage);
/* Recurrence ending */
-
- menu = gtk_option_menu_get_menu (GTK_OPTION_MENU (priv->ending_menu));
- g_signal_connect((menu), "selection_done",
+
+ g_signal_connect(GTK_OPTION_MENU (priv->ending_menu), "changed",
G_CALLBACK (ending_selection_done_cb), rpage);
/* Exception buttons */