[evolution-patches] Patch for bug # 274402 {evolution-calender component)
- From: MANOJ T V <manojtemkar gmail com>
- To: pchenthill novell com, evolution-patches lists ximian com
- Subject: [evolution-patches] Patch for bug # 274402 {evolution-calender component)
- Date: Mon, 2 May 2005 01:51:52 -0700
hello,
im sending patch on bug # 274402 .
pls review this 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 2 May 2005 08:44:01 -0000
@@ -1,3 +1,10 @@
+2005-04-27 Manoj T V <manojtemkar gmail com>
+
+ Fixes #274402
+
+ * event-page.c(New Appointments): Grabbed the focus to toplevel widget by using functions:
+ gtk_widget_get_toplevel(), and gtk_window_set_focus().
+
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 2 May 2005 08:44:41 -0000
@@ -49,7 +49,6 @@
#include "event-page.h"
#include "e-send-options-utils.h"
-
/* Private part of the EventPage structure */
struct _EventPagePrivate {
@@ -57,14 +56,12 @@ struct _EventPagePrivate {
GladeXML *xml;
/* Widgets from the Glade file */
-
+ /*GtkWindow *event-toplevel;*/
GtkWidget *main;
-
GtkWidget *summary;
GtkWidget *summary_label;
GtkWidget *location;
GtkWidget *location_label;
-
GtkWidget *start_time;
GtkWidget *end_time;
GtkWidget *start_timezone;
@@ -90,6 +87,7 @@ struct _EventPagePrivate {
GtkWidget *sendoptions_frame;
GtkWidget *sendoptions_button;
+
EAlarmList *alarm_list_store;
gboolean updating;
@@ -107,7 +105,7 @@ struct _EventPagePrivate {
gboolean is_meeting;
};
-
+
static void event_page_finalize (GObject *object);
@@ -606,19 +604,22 @@ sensitize_widgets (EventPage *epage)
{
gboolean read_only, custom, alarm;
EventPagePrivate *priv;
-
+ GtkWidget *toplevel;
priv = epage->priv;
if (!e_cal_is_read_only (COMP_EDITOR_PAGE (epage)->client, &read_only, NULL))
read_only = TRUE;
custom = is_custom_alarm_store (priv->alarm_list_store, priv->old_summary, priv->alarm_units, priv->alarm_interval, NULL);
+ toplevel = gtk_widget_get_toplevel (priv->main);
+ if (GTK_WIDGET_TOPLEVEL (toplevel)){
+ gtk_window_set_focus(toplevel,NULL);
+ }
alarm = e_dialog_toggle_get (priv->alarm);
-
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 +631,12 @@ 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 (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);
}
@@ -1137,7 +1139,7 @@ get_widgets (EventPage *epage)
/* Get the GtkAccelGroup from the toplevel window, so we can install
it when the notebook page is mapped. */
toplevel = gtk_widget_get_toplevel (priv->main);
- accel_groups = gtk_accel_groups_from_object (G_OBJECT (toplevel));
+ accel_groups = gtk_accel_groups_from_object (G_OBJECT (toplevel));
if (accel_groups) {
page->accel_group = accel_groups->data;
gtk_accel_group_ref (page->accel_group);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]