Mercurial > pidgin.yaz
comparison pidgin/gtkstatusbox.c @ 22835:f28047b68678
Patch from QuLogic to fix tab-navigation in the statusbox. And a few
missing GDK_ISO_Left_Tab. Closes #3843, #4386.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Thu, 08 May 2008 03:20:28 +0000 |
parents | 0ccc0e9ae565 |
children | 07aa8e4a262a |
comparison
equal
deleted
inserted
replaced
22834:485689a88b61 | 22835:f28047b68678 |
---|---|
1129 return TRUE; | 1129 return TRUE; |
1130 } | 1130 } |
1131 | 1131 |
1132 static gboolean imhtml_remove_focus(GtkWidget *w, GdkEventKey *event, PidginStatusBox *status_box) | 1132 static gboolean imhtml_remove_focus(GtkWidget *w, GdkEventKey *event, PidginStatusBox *status_box) |
1133 { | 1133 { |
1134 if (event->keyval == GDK_Tab || event->keyval == GDK_KP_Tab) | 1134 if (event->keyval == GDK_Tab || event->keyval == GDK_KP_Tab || event->keyval == GDK_ISO_Left_Tab) |
1135 { | 1135 { |
1136 /* If last inserted character is a tab, then remove the focus from here */ | 1136 /* If last inserted character is a tab, then remove the focus from here */ |
1137 GtkWidget *top = gtk_widget_get_toplevel(w); | 1137 GtkWidget *top = gtk_widget_get_toplevel(w); |
1138 g_signal_emit_by_name(G_OBJECT(top), "move_focus", | 1138 g_signal_emit_by_name(G_OBJECT(top), "move_focus", |
1139 (event->state & GDK_SHIFT_MASK) ? | 1139 (event->state & GDK_SHIFT_MASK) ? |
1456 } else { | 1456 } else { |
1457 pidgin_status_box_popdown(box); | 1457 pidgin_status_box_popdown(box); |
1458 } | 1458 } |
1459 return TRUE; | 1459 return TRUE; |
1460 default: | 1460 default: |
1461 return TRUE; | 1461 return FALSE; |
1462 } | 1462 } |
1463 } | 1463 } |
1464 | 1464 |
1465 static gboolean | 1465 static gboolean |
1466 toggled_cb(GtkWidget *widget, GdkEventButton *event, PidginStatusBox *box) | 1466 toggled_cb(GtkWidget *widget, GdkEventButton *event, PidginStatusBox *box) |