diff options
author | Rob <rob.manea@gmail.com> | 2009-11-06 07:48:04 +0100 |
---|---|---|
committer | Rob <rob.manea@gmail.com> | 2009-11-06 07:48:04 +0100 |
commit | 6cab873b9c691cebeadec444944b4d8de06730db (patch) | |
tree | fee9720341431fdd358503bd653d51b43ca25bce /uzbl-core.c | |
parent | bfaefe3b0d36b9fb221d9fcdccb510dd5dca0e70 (diff) |
added PLUG_CREATED event
Diffstat (limited to 'uzbl-core.c')
-rw-r--r-- | uzbl-core.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/uzbl-core.c b/uzbl-core.c index a1ff88d..0bbf445 100644 --- a/uzbl-core.c +++ b/uzbl-core.c @@ -2446,6 +2446,12 @@ main (int argc, char* argv[]) { uzbl.info.pid_str = g_string_free(tmp, FALSE); send_event(INSTANCE_START, uzbl.info.pid_str, NULL); + if(uzbl.state.plug_mode) { + char *t = itos(gtk_plug_get_id(uzbl.gui.plug)); + send_event(PLUG_CREATED, t, NULL); + g_free(t); + } + gtk_widget_grab_focus (GTK_WIDGET (uzbl.gui.web_view)); if (uzbl.state.verbose) { |