diff options
author | mitchell <70453897+667e-11@users.noreply.github.com> | 2009-02-08 16:00:39 -0500 |
---|---|---|
committer | mitchell <70453897+667e-11@users.noreply.github.com> | 2009-02-08 16:00:39 -0500 |
commit | ce693dfec1650cbcf3216fe70c4b9c275c70dbcb (patch) | |
tree | 2a8fb51618e2367695a209f50f308b72b1928b02 /src | |
parent | 53987cb7851bd1577b6447981f1ecd2bcfdb64bb (diff) |
Do not let GtkComboBoxes have focus; src/textadept.c
Diffstat (limited to 'src')
-rw-r--r-- | src/textadept.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/textadept.c b/src/textadept.c index ca40dcd3..d2836397 100644 --- a/src/textadept.c +++ b/src/textadept.c @@ -589,6 +589,7 @@ GtkWidget *pm_create_ui() { pm_container = gtk_vbox_new(FALSE, 1); GtkWidget *pm_combo = gtk_combo_box_entry_new_text(); + gtk_combo_box_set_focus_on_click(GTK_COMBO_BOX(pm_combo), FALSE); pm_entry = gtk_bin_get_child(GTK_BIN(pm_combo)); gtk_widget_set_name(pm_entry, "textadept-pm-entry"); gtk_box_pack_start(GTK_BOX(pm_container), pm_combo, FALSE, FALSE, 0); @@ -912,6 +913,8 @@ GtkWidget *find_create_ui() { signal(r_button, "clicked", button_clicked); signal(ra_button, "clicked", button_clicked); + gtk_combo_box_set_focus_on_click(GTK_COMBO_BOX(find_combo), FALSE); + gtk_combo_box_set_focus_on_click(GTK_COMBO_BOX(replace_combo), FALSE); GTK_WIDGET_SET_FLAGS(fnext_button, GTK_CAN_DEFAULT); GTK_WIDGET_UNSET_FLAGS(fnext_button, GTK_CAN_FOCUS); GTK_WIDGET_UNSET_FLAGS(fprev_button, GTK_CAN_FOCUS); |