pidgin/gtkutils.c

changeset 22639
7ff3669b196e
parent 22269
3fdf7b13f20a
child 22702
bccd324d76c5
equal deleted inserted replaced
22637:26a7edb3cc75 22639:7ff3669b196e
3411 return TRUE; 3411 return TRUE;
3412 } 3412 }
3413 return FALSE; 3413 return FALSE;
3414 #endif 3414 #endif
3415 #else 3415 #else
3416 #if GTK_CHECK_VERSION(2,4,0)
3416 /* This finds the currently active window and makes that the parent window. */ 3417 /* This finds the currently active window and makes that the parent window. */
3417 GList *windows = NULL; 3418 GList *windows = NULL;
3418 GtkWidget *parent = NULL; 3419 GtkWidget *parent = NULL;
3419 GdkEvent *event = gtk_get_current_event(); 3420 GdkEvent *event = gtk_get_current_event();
3420 GdkWindow *menu = NULL; 3421 GdkWindow *menu = NULL;
3453 g_list_free(windows); 3454 g_list_free(windows);
3454 if (parent) { 3455 if (parent) {
3455 gtk_window_set_transient_for(GTK_WINDOW(widget), GTK_WINDOW(parent)); 3456 gtk_window_set_transient_for(GTK_WINDOW(widget), GTK_WINDOW(parent));
3456 return TRUE; 3457 return TRUE;
3457 } 3458 }
3459 #endif
3458 return FALSE; 3460 return FALSE;
3459 #endif 3461 #endif
3460 } 3462 }
3461 3463

mercurial