Use gtk_window_present() instead of gtk_widget_show() when showing the

Tue, 16 Oct 2007 06:54:55 +0000

author
Mark Doliner <markdoliner@pidgin.im>
date
Tue, 16 Oct 2007 06:54:55 +0000
changeset 21038
acd7b4ff17bc
parent 21037
4861a7fc6708
child 21042
8c51b54fd361

Use gtk_window_present() instead of gtk_widget_show() when showing the
file transfer dialog. The causes the window to be raised if it's
below other stuff.

This function is called in two places
1. When the user clicks on Tools-->File Transfers in the buddy list.
This is the interaction I'm trying to improve.
2. When a file transfer is added to the dialog. It seems like a good
idea to present the window when a file transfer is added to it...
but there may be scenarios where this is really really annoying.
If anyone thinks of any then feel free to revert this change

pidgin/gtkft.c file | annotate | diff | comparison | revisions
--- a/pidgin/gtkft.c	Tue Oct 16 06:40:06 2007 +0000
+++ b/pidgin/gtkft.c	Tue Oct 16 06:54:55 2007 +0000
@@ -912,7 +912,7 @@
 
 		gtk_widget_show(tmp->window);
 	} else {
-		gtk_widget_show(dialog->window);
+		gtk_window_present(GTK_WINDOW(dialog->window));
 	}
 }
 

mercurial