comparison pidgin/gtkconv.c @ 21888:c88a3f2dbb52

Try to make a window transient for a suitable parent window. This currently happens only for the request and notify windows, and only when they are triggered by some GTK+ event. There are some issues when a request/notify window pops up from activating a popup menuitem. I found a fix for when the menuitem is activated by a keypress. I'll try to find a fix for a mouse-button later.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Wed, 28 Nov 2007 01:54:34 +0000
parents 12b165b013e4
children a3f0c30eb0bf
comparison
equal deleted inserted replaced
21887:b05a8f1db1c3 21888:c88a3f2dbb52
8161 G_CALLBACK(notebook_leave_cb), gtkconv->win); 8161 G_CALLBACK(notebook_leave_cb), gtkconv->win);
8162 return FALSE; 8162 return FALSE;
8163 } 8163 }
8164 8164
8165 if (e->button == 3) { 8165 if (e->button == 3) {
8166 /* Right click was pressed. Popup the Send To menu. */ 8166 /* Right click was pressed. Popup the context menu. */
8167 GtkWidget *menu = gtk_menu_new(), *sub; 8167 GtkWidget *menu = gtk_menu_new(), *sub;
8168 gboolean populated = populate_menu_with_options(menu, gtkconv, TRUE); 8168 gboolean populated = populate_menu_with_options(menu, gtkconv, TRUE);
8169 sub = gtk_menu_item_get_submenu(GTK_MENU_ITEM(gtkconv->win->menu.send_to)); 8169 sub = gtk_menu_item_get_submenu(GTK_MENU_ITEM(gtkconv->win->menu.send_to));
8170 8170
8171 if (sub && GTK_WIDGET_IS_SENSITIVE(gtkconv->win->menu.send_to)) { 8171 if (sub && GTK_WIDGET_IS_SENSITIVE(gtkconv->win->menu.send_to)) {