[evolution-patches] [UIHACKFEST][addressbook] Fix for bug #317283
- From: Devashish <sdevashish novell com>
- To: patches <evolution-patches gnome org>
- Subject: [evolution-patches] [UIHACKFEST][addressbook] Fix for bug #317283
- Date: Thu, 12 Jan 2006 17:35:50 +0530
Hi,
The patch fixes the bug #317283 : Contact Categories dialog should have
a default response.
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 12:09:01 -0000
@@ -26,6 +26,7 @@
#include <string.h>
#include <time.h>
+#include <gdk/gdkkeysyms.h>
#include <gtk/gtkcheckbutton.h>
#include <gtk/gtkcheckmenuitem.h>
#include <gtk/gtkcombo.h>
@@ -2589,6 +2590,16 @@ response (GtkDialog *dialog, int respons
gtk_widget_destroy(GTK_WIDGET(dialog));
}
+static gboolean
+categories_key_press_event( GtkWidget *widget, GdkEventKey *event, EContactEditor *editor)
+{
+ if (event->keyval == GDK_Return) {
+ gtk_dialog_response (GTK_DIALOG (widget), GTK_RESPONSE_OK);
+ return TRUE;
+ }
+ return FALSE;
+}
+
static void
categories_clicked (GtkWidget *button, EContactEditor *editor)
{
@@ -2606,6 +2617,8 @@ categories_clicked (GtkWidget *button, E
g_free (categories);
return;
}
+
+ g_signal_connect (GTK_WIDGET (dialog), "key-press-event", G_CALLBACK (categories_key_press_event), editor);
g_signal_connect(dialog, "response",
G_CALLBACK (response), editor);
Index: addressbook/ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/ChangeLog,v
retrieving revision 1.2030
diff -u -p -r1.2030 ChangeLog
--- addressbook/ChangeLog 10 Jan 2006 08:06:33 -0000 1.2030
+++ addressbook/ChangeLog 12 Jan 2006 12:09:40 -0000
@@ -1,3 +1,9 @@
+2006-01-12 Devashish Sharma <sdevashish novell com>
+
+ * gui/contact-editor/e-contact-editor.c (full_name_clicked) : Setting
+ the default response for categories dialog.
+ Fixes #317283
+
2006-01-10 Simon Zheng <simon zheng sun com>
* gui/widgets/eab-gui-util.c:use e_filename_make_safe() in
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]