Mercurial > pidgin.yaz
comparison pidgin/gtkpounce.c @ 19883:b9a6c3f54903
Stringing pounce windows
author | Gabriel Schulhof <nix@go-nix.ca> |
---|---|
date | Fri, 17 Aug 2007 23:22:48 +0000 |
parents | 8cef5a905bc5 |
children | 6a0d9fa477d4 |
comparison
equal
deleted
inserted
replaced
19882:8cef5a905bc5 | 19883:b9a6c3f54903 |
---|---|
1315 | 1315 |
1316 return sw; | 1316 return sw; |
1317 } | 1317 } |
1318 | 1318 |
1319 void | 1319 void |
1320 pidgin_pounces_manager_show(void) | 1320 pidgin_pounces_manager_show(GtkWindow *parent) |
1321 { | 1321 { |
1322 PouncesManager *dialog; | 1322 PouncesManager *dialog; |
1323 GtkWidget *bbox; | 1323 GtkWidget *bbox; |
1324 GtkWidget *button; | 1324 GtkWidget *button; |
1325 GtkWidget *list; | 1325 GtkWidget *list; |
1327 GtkWidget *win; | 1327 GtkWidget *win; |
1328 int width, height; | 1328 int width, height; |
1329 | 1329 |
1330 if (pounces_manager != NULL) { | 1330 if (pounces_manager != NULL) { |
1331 gtk_window_present(GTK_WINDOW(pounces_manager->window)); | 1331 gtk_window_present(GTK_WINDOW(pounces_manager->window)); |
1332 gtk_window_set_transient_for(GTK_WINDOW(pounces_manager->window), parent); | |
1332 return; | 1333 return; |
1333 } | 1334 } |
1334 | 1335 |
1335 pounces_manager = dialog = g_new0(PouncesManager, 1); | 1336 pounces_manager = dialog = g_new0(PouncesManager, 1); |
1336 | 1337 |
1337 width = purple_prefs_get_int(PIDGIN_PREFS_ROOT "/pounces/dialog/width"); | 1338 width = purple_prefs_get_int(PIDGIN_PREFS_ROOT "/pounces/dialog/width"); |
1338 height = purple_prefs_get_int(PIDGIN_PREFS_ROOT "/pounces/dialog/height"); | 1339 height = purple_prefs_get_int(PIDGIN_PREFS_ROOT "/pounces/dialog/height"); |
1339 | 1340 |
1340 dialog->window = win = pidgin_create_window(_("Buddy Pounces"), PIDGIN_HIG_BORDER, "pounces", TRUE); | 1341 dialog->window = win = pidgin_create_window(_("Buddy Pounces"), PIDGIN_HIG_BORDER, "pounces", TRUE); |
1341 gtk_window_set_default_size(GTK_WINDOW(win), width, height); | 1342 gtk_window_set_default_size(GTK_WINDOW(win), width, height); |
1343 gtk_window_set_transient_for(GTK_WINDOW(win), parent); | |
1342 | 1344 |
1343 g_signal_connect(G_OBJECT(win), "delete_event", | 1345 g_signal_connect(G_OBJECT(win), "delete_event", |
1344 G_CALLBACK(pounces_manager_destroy_cb), dialog); | 1346 G_CALLBACK(pounces_manager_destroy_cb), dialog); |
1345 g_signal_connect(G_OBJECT(win), "configure_event", | 1347 g_signal_connect(G_OBJECT(win), "configure_event", |
1346 G_CALLBACK(pounces_manager_configure_cb), dialog); | 1348 G_CALLBACK(pounces_manager_configure_cb), dialog); |