[evolution-patches] evolution Patch for bug id 274402.



hello,
Im sending patch for Calender component in evolution 2.2.1,
Patch is for event-page.c file.

please review the patch.

thanks,
Manoj
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.2680.2.14
diff -u -p -r1.2680.2.14 ChangeLog
--- ChangeLog	28 Mar 2005 11:28:53 -0000	1.2680.2.14
+++ ChangeLog	27 Apr 2005 11:38:08 -0000
@@ -1,3 +1,12 @@
+2005-04-27  Manoj T V    <manojtemkar gmail com>
+
+	Fixes #274402
+
+	* event-page.c(New Appointments): Added a new function gtk_widget_grab_focus(priv->main);
+	added a declaration statement: #define GTK_WIDGET_SET_FLAGS(main,GTK_CAN_FOCUS),
+	by this the focus is grabbed to top level widget.
+
+
 2005-03-28  Rodrigo Moya <rodrigo novell com>
 
 	Fixes #44719
Index: gui/dialogs/event-page.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/dialogs/event-page.c,v
retrieving revision 1.79.2.1
diff -u -p -r1.79.2.1 event-page.c
--- gui/dialogs/event-page.c	15 Mar 2005 02:33:55 -0000	1.79.2.1
+++ gui/dialogs/event-page.c	27 Apr 2005 11:39:57 -0000
@@ -24,7 +24,8 @@
 #ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
-
+#define GTK_WIDGET_SET_FLAGS(main,GTK_CAN_FOCUS)	
+#define GTK_WIDGET_SET_FLAGS(classification,GTK_CAN_FOCUS)
 #include <string.h>
 #include <gtk/gtksignal.h>
 #include <gtk/gtktextview.h>
@@ -49,7 +50,6 @@
 #include "event-page.h"
 #include "e-send-options-utils.h"
 
-
 
 /* Private part of the EventPage structure */
 struct _EventPagePrivate {
@@ -57,14 +57,12 @@ struct _EventPagePrivate {
 	GladeXML *xml;
 
 	/* Widgets from the Glade file */
-
+	
 	GtkWidget *main;
-
 	GtkWidget *summary;
 	GtkWidget *summary_label;
 	GtkWidget *location;
 	GtkWidget *location_label;
-
 	GtkWidget *start_time;
 	GtkWidget *end_time;
 	GtkWidget *start_timezone;
@@ -90,6 +88,7 @@ struct _EventPagePrivate {
 	GtkWidget *sendoptions_frame;
 	GtkWidget *sendoptions_button;
 
+
 	EAlarmList *alarm_list_store;
 	
 	gboolean updating;
@@ -107,7 +106,7 @@ struct _EventPagePrivate {
 	gboolean is_meeting;
 };
 
-
+
 
 static void event_page_finalize (GObject *object);
 
@@ -614,11 +613,11 @@ sensitize_widgets (EventPage *epage)
 
 	custom = is_custom_alarm_store (priv->alarm_list_store, priv->old_summary, priv->alarm_units, priv->alarm_interval, NULL);
 	alarm = e_dialog_toggle_get (priv->alarm);
-	
+	gtk_widget_grab_focus(priv->classification);
 	gtk_widget_set_sensitive (priv->summary_label, !read_only);
 	gtk_entry_set_editable (GTK_ENTRY (priv->summary), !read_only);
 	gtk_widget_set_sensitive (priv->location_label, !read_only);
-	gtk_entry_set_editable (GTK_ENTRY (priv->location), !read_only);
+	gtk_entry_set_editable (GTK_ENTRY (priv->location),!read_only);
 	gtk_widget_set_sensitive (priv->start_time, !read_only);
 	gtk_widget_set_sensitive (priv->start_timezone, !read_only);
 	gtk_widget_set_sensitive (priv->end_time, !read_only);
@@ -630,11 +629,15 @@ sensitize_widgets (EventPage *epage)
 	gtk_widget_set_sensitive (priv->alarm, !read_only);
 	gtk_widget_set_sensitive (priv->alarm_time, !read_only && !custom && alarm);
 	gtk_widget_set_sensitive (priv->alarm_custom, alarm);
+	
+	if (GTK_WIDGET_TOPLEVEL (priv->main))
+     		gtk_widget_grab_focus(priv->main);
+   
 	if (custom)
 		gtk_widget_show (priv->alarm_warning);
 	else
 		gtk_widget_hide (priv->alarm_warning);
-	gtk_widget_set_sensitive (priv->categories_btn, !read_only);
+
 	gtk_widget_set_sensitive (priv->sendoptions_button, !read_only);
 	gtk_entry_set_editable (GTK_ENTRY (priv->categories), !read_only);
 }


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