[evolution-patches] ECalendar: don't skip months



the attached patch fixes ECalendar so it doesn't skip months when
single-clicking on a next/prev arrow.

Ignore the changelog entry about e-expander, that one's for a bounty and I
haven't gotten a reply on that yet.


-- 
   .--= ULLA! =---------------------.   `We are not here to give users what
   \     http://cactus.rulez.org     \   they want'  -- RMS, at GUADEC 2001
    `---= cactus cactus rulez org =---'
Voltam IQ-teszten. Szerencsére negatív.
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/widgets/misc/ChangeLog,v
retrieving revision 1.246
diff -u -r1.246 ChangeLog
--- ChangeLog	17 Nov 2003 13:31:52 -0000	1.246
+++ ChangeLog	30 Nov 2003 20:47:44 -0000
@@ -1,3 +1,16 @@
+2003-11-30  ERDI Gergo  <cactus cactus rulez org>
+
+	* e-calendar.c: canned the _clicked handlers as those make it
+	impossible to move just one month at a time
+
+2003-11-23  ERDI Gergo  <cactus cactus rulez org>
+
+	* e-expander.c: Added the late eggexpander
+	
+	* e-expander.c (e_expander_button_release): Emit 'activate' signal when
+	appropriate
+	
+
 2003-11-17  Charles Zhang  <charles zhang sun com>
 
 	* e-search-bar.c(add_button): allow new lable with mnemonic
Index: e-calendar.c
===================================================================
RCS file: /cvs/gnome/evolution/widgets/misc/e-calendar.c,v
retrieving revision 1.21
diff -u -r1.21 e-calendar.c
--- e-calendar.c	22 Sep 2003 03:19:00 -0000	1.21
+++ e-calendar.c	30 Nov 2003 20:47:45 -0000
@@ -93,10 +93,8 @@
 
 static void e_calendar_on_prev_pressed	(ECalendar	*cal);
 static void e_calendar_on_prev_released	(ECalendar	*cal);
-static void e_calendar_on_prev_clicked	(ECalendar	*cal);
 static void e_calendar_on_next_pressed	(ECalendar	*cal);
 static void e_calendar_on_next_released	(ECalendar	*cal);
-static void e_calendar_on_next_clicked	(ECalendar	*cal);
 
 static void e_calendar_start_auto_move	(ECalendar	*cal,
 					 gboolean	 moving_forward);
@@ -167,9 +165,6 @@
 	gtk_signal_connect_object (GTK_OBJECT (button), "released",
 				   G_CALLBACK (e_calendar_on_prev_released),
 				   GTK_OBJECT (cal));
-	gtk_signal_connect_object (GTK_OBJECT (button), "clicked",
-				   G_CALLBACK (e_calendar_on_prev_clicked),
-				   GTK_OBJECT (cal));
 
 	pixmap = gtk_arrow_new (GTK_ARROW_LEFT, GTK_SHADOW_NONE);
 	gtk_widget_show (pixmap);
@@ -189,9 +184,6 @@
 	gtk_signal_connect_object (GTK_OBJECT (button), "released",
 				   G_CALLBACK (e_calendar_on_next_released),
 				   GTK_OBJECT (cal));
-	gtk_signal_connect_object (GTK_OBJECT (button), "clicked",
-				   G_CALLBACK (e_calendar_on_next_clicked),
-				   GTK_OBJECT (cal));
 
 	pixmap = gtk_arrow_new (GTK_ARROW_RIGHT, GTK_SHADOW_NONE);
 	gtk_widget_show (pixmap);
@@ -441,23 +433,9 @@
 }
 
 static void
-e_calendar_on_prev_clicked	(ECalendar	*cal)
-{
-	e_calendar_item_set_first_month (cal->calitem, cal->calitem->year,
-					 cal->calitem->month - 1);
-}
-
-static void
 e_calendar_on_next_pressed	(ECalendar	*cal)
 {
 	e_calendar_start_auto_move (cal, TRUE);
-}
-
-static void
-e_calendar_on_next_clicked	(ECalendar	*cal)
-{
-	e_calendar_item_set_first_month (cal->calitem, cal->calitem->year,
-					 cal->calitem->month + 1);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]