Mercurial > pidgin.yaz
diff console/libgnt/gntmain.c @ 14042:143474e2b1cb
[gaim-migrate @ 16648]
Do not give focus to new windows. Instead, set the urgent-hint for them.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sat, 05 Aug 2006 17:04:47 +0000 |
parents | d63f59ee6c98 |
children | 2d1b41e3cf0d |
line wrap: on
line diff
--- a/console/libgnt/gntmain.c Sat Aug 05 11:31:54 2006 +0000 +++ b/console/libgnt/gntmain.c Sat Aug 05 17:04:47 2006 +0000 @@ -67,7 +67,7 @@ /* XXX: ew */ focus_list = g_list_first(focus_list); focus_list = g_list_append(focus_list, widget); - focus_list = g_list_find(focus_list, widget); + focus_list = g_list_find(focus_list, w ? w : widget); gnt_widget_set_focus(widget, TRUE); if (w) @@ -757,7 +757,14 @@ gnt_box_sync_children(GNT_BOX(widget)); node = g_hash_table_lookup(nodes, widget); if (node && !node->panel) + { node->panel = new_panel(node->me->window); + if (!GNT_WIDGET_IS_FLAG_SET(node->me, GNT_WIDGET_TRANSIENT)) + { + bottom_panel(node->panel); /* New windows should not grab focus */ + gnt_widget_set_urgent(node->me); + } + } if (window_list.window) {