[evolution-patches] [UIHACKFEST][addressbook] Fix for default focus in contact editor
- From: Devashish <sdevashish novell com>
- To: patches <evolution-patches gnome org>
- Subject: [evolution-patches] [UIHACKFEST][addressbook] Fix for default focus in contact editor
- Date: Thu, 12 Jan 2006 21:08:03 +0530
Hi,
The attached patch fixes the default focus problem in the contact editor
dialog. The default focus is now the full-name text entry widget.
Thanks
Devashish Sharma
Index: addressbook/gui/contact-editor/e-contact-editor.c
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/gui/contact-editor/e-contact-editor.c,v
retrieving revision 1.245
diff -u -p -r1.245 e-contact-editor.c
--- addressbook/gui/contact-editor/e-contact-editor.c 10 Dec 2005 09:52:23 -0000 1.245
+++ addressbook/gui/contact-editor/e-contact-editor.c 12 Jan 2006 15:40:05 -0000
@@ -672,13 +672,13 @@ init_email_record_location (EContactEdit
item = gtk_menu_item_new_with_label (_(common_location [i].pretty_name));
gtk_menu_shell_append (GTK_MENU_SHELL (location_menu), item);
+ g_signal_connect (item, "activate", G_CALLBACK (email_menu_changed), email_entry);
}
gtk_widget_show_all (location_menu);
gtk_option_menu_set_menu (GTK_OPTION_MENU (location_option_menu), location_menu);
g_signal_connect (location_option_menu, "changed", G_CALLBACK (object_changed), editor);
- g_signal_connect (location_option_menu, "changed", G_CALLBACK (email_menu_changed), email_entry);
g_signal_connect (email_entry, "changed", G_CALLBACK (object_changed), editor);
g_signal_connect_swapped (email_entry, "activate", G_CALLBACK (entry_activated), editor);
}
@@ -1246,13 +1246,13 @@ init_phone_record_type (EContactEditor *
item = gtk_menu_item_new_with_label (e_contact_pretty_name (phones [i].field_id));
gtk_menu_shell_append (GTK_MENU_SHELL (phone_type_menu), item);
+ g_signal_connect (item, "activate", G_CALLBACK (phone_menu_changed), phone_entry);
}
gtk_widget_show_all (phone_type_menu);
gtk_option_menu_set_menu (GTK_OPTION_MENU (phone_type_option_menu), phone_type_menu);
g_signal_connect (phone_type_option_menu, "changed", G_CALLBACK (object_changed), editor);
- g_signal_connect (phone_type_option_menu, "changed", G_CALLBACK (phone_menu_changed), phone_entry);
g_signal_connect (phone_entry, "changed", G_CALLBACK (object_changed), editor);
g_signal_connect_swapped (phone_entry, "activate", G_CALLBACK (entry_activated), editor);
}
@@ -1389,13 +1389,13 @@ init_im_record_service (EContactEditor *
item = gtk_menu_item_new_with_label (im_service [i].pretty_name);
gtk_menu_shell_append (GTK_MENU_SHELL (service_menu), item);
+ g_signal_connect (item, "activate", G_CALLBACK (im_menu_changed), name_entry);
}
gtk_widget_show_all (service_menu);
gtk_option_menu_set_menu (GTK_OPTION_MENU (service_option_menu), service_menu);
g_signal_connect (service_option_menu, "changed", G_CALLBACK (object_changed), editor);
- g_signal_connect (service_option_menu, "changed", G_CALLBACK (im_menu_changed), name_entry);
g_signal_connect (name_entry, "changed", G_CALLBACK (object_changed), editor);
g_signal_connect_swapped (name_entry, "activate", G_CALLBACK (entry_activated), editor);
}
Index: addressbook/ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/ChangeLog,v
retrieving revision 1.2031
diff -u -p -r1.2031 ChangeLog
--- addressbook/ChangeLog 12 Jan 2006 15:05:36 -0000 1.2031
+++ addressbook/ChangeLog 12 Jan 2006 15:38:45 -0000
@@ -1,3 +1,8 @@
+2006-01-12 Devashish Sharma <sdevashish novell com>
+
+ * gui/contact-editor/e-contact-editor.c : Fixed the default focus in
+ the contact editor dialog.
+
2006-01-12 Srinivasa Ragavan <sragavan novell com>
* gui/component/GNOME_Evolution_Addressbook.server.in.in:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]