Mercurial > pidgin
comparison src/gtkconn.c @ 11243:a511b77a368b
[gaim-migrate @ 13408]
sf patch #1246384, from shiyee
"This patch globally defines
spacings and boreders according to the Gnome Human
Interfaces Guidelines, and uses those defines where
appropriate. No visual changes are made, but the the
intention is that the defines should help promote
uniformness."
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 12 Aug 2005 23:53:28 +0000 |
parents | 50224ac8184d |
children | ad9a61894d9b |
comparison
equal
deleted
inserted
replaced
11242:01c06e7ae1f6 | 11243:a511b77a368b |
---|---|
376 | 376 |
377 disconnect_window = g_new0(struct disconnect_window, 1); | 377 disconnect_window = g_new0(struct disconnect_window, 1); |
378 disconnect_window->window = gtk_dialog_new_with_buttons(_("Disconnected"), NULL, GTK_DIALOG_NO_SEPARATOR, NULL); | 378 disconnect_window->window = gtk_dialog_new_with_buttons(_("Disconnected"), NULL, GTK_DIALOG_NO_SEPARATOR, NULL); |
379 g_signal_connect(G_OBJECT(disconnect_window->window), "response", G_CALLBACK(disconnect_response_cb), disconnect_window); | 379 g_signal_connect(G_OBJECT(disconnect_window->window), "response", G_CALLBACK(disconnect_response_cb), disconnect_window); |
380 | 380 |
381 gtk_container_set_border_width(GTK_CONTAINER(disconnect_window->window), 6); | 381 gtk_container_set_border_width(GTK_CONTAINER(disconnect_window->window), GAIM_HIG_BOX_SPACE); |
382 gtk_window_set_resizable(GTK_WINDOW(disconnect_window->window), FALSE); | 382 gtk_window_set_resizable(GTK_WINDOW(disconnect_window->window), FALSE); |
383 gtk_dialog_set_has_separator(GTK_DIALOG(disconnect_window->window), FALSE); | 383 gtk_dialog_set_has_separator(GTK_DIALOG(disconnect_window->window), FALSE); |
384 gtk_box_set_spacing(GTK_BOX(GTK_DIALOG(disconnect_window->window)->vbox), 12); | 384 gtk_box_set_spacing(GTK_BOX(GTK_DIALOG(disconnect_window->window)->vbox), GAIM_HIG_BORDER); |
385 gtk_container_set_border_width(GTK_CONTAINER(GTK_DIALOG(disconnect_window->window)->vbox), 6); | 385 gtk_container_set_border_width(GTK_CONTAINER(GTK_DIALOG(disconnect_window->window)->vbox), GAIM_HIG_BOX_SPACE); |
386 | 386 |
387 hbox = gtk_hbox_new(FALSE, 12); | 387 hbox = gtk_hbox_new(FALSE, GAIM_HIG_BORDER); |
388 gtk_container_add(GTK_CONTAINER(GTK_DIALOG(disconnect_window->window)->vbox), hbox); | 388 gtk_container_add(GTK_CONTAINER(GTK_DIALOG(disconnect_window->window)->vbox), hbox); |
389 img = gtk_image_new_from_stock(GAIM_STOCK_DIALOG_ERROR, GTK_ICON_SIZE_DIALOG); | 389 img = gtk_image_new_from_stock(GAIM_STOCK_DIALOG_ERROR, GTK_ICON_SIZE_DIALOG); |
390 gtk_misc_set_alignment(GTK_MISC(img), 0, 0); | 390 gtk_misc_set_alignment(GTK_MISC(img), 0, 0); |
391 gtk_box_pack_start(GTK_BOX(hbox), img, FALSE, FALSE, 0); | 391 gtk_box_pack_start(GTK_BOX(hbox), img, FALSE, FALSE, 0); |
392 | 392 |
393 vbox = gtk_vbox_new(FALSE, 12); | 393 vbox = gtk_vbox_new(FALSE, GAIM_HIG_BORDER); |
394 gtk_box_pack_start(GTK_BOX(hbox), vbox, FALSE, FALSE, 0); | 394 gtk_box_pack_start(GTK_BOX(hbox), vbox, FALSE, FALSE, 0); |
395 | 395 |
396 disconnect_window->label = gtk_label_new(label_text); | 396 disconnect_window->label = gtk_label_new(label_text); |
397 | 397 |
398 gtk_label_set_line_wrap(GTK_LABEL(disconnect_window->label), TRUE); | 398 gtk_label_set_line_wrap(GTK_LABEL(disconnect_window->label), TRUE); |