diff options
author | Marco Peereboom <marco@conformal.com> | 2011-01-11 03:43:43 +0000 |
---|---|---|
committer | Marco Peereboom <marco@conformal.com> | 2011-01-11 03:43:43 +0000 |
commit | 812ba1dc7f4039549d0883137c4075701def72c9 (patch) | |
tree | 2522264ff13e38b4632fafac4a3b20b1a6f12fd2 | |
parent | ce4b1f4a64ec7767261a45a651ea40097101579b (diff) | |
download | xombrero-812ba1dc7f4039549d0883137c4075701def72c9.tar.gz |
oops doesn't need callbacks
-rw-r--r-- | xxxterm.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/xxxterm.c b/xxxterm.c index 3dd2464..0f2ccf8 100644 --- a/xxxterm.c +++ b/xxxterm.c @@ -4946,6 +4946,9 @@ cmd_focusout_cb(GtkWidget *w, GdkEventFocus *e, struct tab *t) DNPRINTF(XT_D_CMD, "cmd_focusout_cb: tab %d focus_wv %d\n", t->tab_id, t->focus_wv); + hide_cmd(t); + hide_oops(t); + if (t->focus_wv) gtk_widget_grab_focus(GTK_WIDGET(t->wv)); else @@ -5434,12 +5437,6 @@ create_new_tab(char *title, struct undo *u, int focus) "signal::focus-out-event", (GCallback)cmd_focusout_cb, t, "signal::activate", (GCallback)cmd_activate_cb, t, (char *)NULL); - g_object_connect((GObject*)t->oops, - "signal::key-press-event", (GCallback)cmd_keypress_cb, t, - "signal::key-release-event", (GCallback)cmd_keyrelease_cb, t, - "signal::focus-out-event", (GCallback)cmd_focusout_cb, t, - "signal::activate", (GCallback)cmd_activate_cb, t, - (char *)NULL); g_object_connect((GObject*)t->wv, "signal::key-press-event", (GCallback)wv_keypress_cb, t, |