File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -352,6 +352,12 @@ create_dialog(GtkWidget **dialog)
352
352
353
353
/* Completion definition */
354
354
completion = gtk_entry_completion_new ();
355
+
356
+ /* Installed here, so it'll get installed before the respective
357
+ * handler inside GtkEntryCompletion, and will thus be called first. */
358
+ g_signal_connect (entry , "key-press-event" ,
359
+ G_CALLBACK (entry_key_event ), completion );
360
+
355
361
gtk_entry_set_completion (GTK_ENTRY (entry ), completion );
356
362
357
363
/* Completion options */
@@ -364,8 +370,6 @@ create_dialog(GtkWidget **dialog)
364
370
G_CALLBACK (directory_check ), completion );
365
371
g_signal_connect (completion , "insert-prefix" ,
366
372
G_CALLBACK (entry_inline_completion_event ), entry );
367
- g_signal_connect (entry , "key-press-event" ,
368
- G_CALLBACK (entry_key_event ), completion );
369
373
370
374
/* The completion object is tracked in the entry. We may release our local
371
375
* reference, and it will be deallocated when the entry is destroyed. */
You can’t perform that action at this time.
0 commit comments