Mercurial > pidgin
comparison src/dialogs.c @ 3649:f09193608fd3
[gaim-migrate @ 3773]
Really, I think this is a lot prettier.
committer: Tailor Script <tailor@pidgin.im>
| author | Rob Flynn <gaim@robflynn.com> |
|---|---|
| date | Sat, 12 Oct 2002 01:30:44 +0000 |
| parents | 9682c0e022c6 |
| children | 5b439da85c3b |
comparison
equal
deleted
inserted
replaced
| 3648:1e8c10125558 | 3649:f09193608fd3 |
|---|---|
| 103 static GtkWidget *aliasdlg = NULL; | 103 static GtkWidget *aliasdlg = NULL; |
| 104 static GtkWidget *aliasentry = NULL; | 104 static GtkWidget *aliasentry = NULL; |
| 105 static GtkWidget *aliasname = NULL; | 105 static GtkWidget *aliasname = NULL; |
| 106 static GtkWidget *rename_dialog = NULL; | 106 static GtkWidget *rename_dialog = NULL; |
| 107 static GtkWidget *rename_bud_dialog = NULL; | 107 static GtkWidget *rename_bud_dialog = NULL; |
| 108 | |
| 108 | 109 |
| 109 struct confirm_del { | 110 struct confirm_del { |
| 110 GtkWidget *window; | 111 GtkWidget *window; |
| 111 GtkWidget *label; | 112 GtkWidget *label; |
| 112 GtkWidget *ok; | 113 GtkWidget *ok; |
| 4580 gdk_window_raise(perl_config->window); | 4581 gdk_window_raise(perl_config->window); |
| 4581 } | 4582 } |
| 4582 | 4583 |
| 4583 #endif /* USE_PERL */ | 4584 #endif /* USE_PERL */ |
| 4584 | 4585 |
| 4585 GtkWidget *pixbuf_button(char *text, char *iconfile) | 4586 GtkWidget *gaim_pixbuf_button(char *text, char *iconfile, GaimButtonStyle style) |
| 4586 { | 4587 { |
| 4587 GtkWidget *button, *image, *label, *bbox; | 4588 GtkWidget *button, *image, *label, *bbox; |
| 4588 button = gtk_button_new(); | 4589 button = gtk_button_new(); |
| 4589 bbox = gtk_hbox_new(FALSE, 5); | 4590 |
| 4591 if (style == GAIM_BUTTON_HORIZONTAL) | |
| 4592 bbox = gtk_hbox_new(FALSE, 5); | |
| 4593 else | |
| 4594 bbox = gtk_vbox_new(FALSE, 0); | |
| 4595 | |
| 4590 gtk_container_add (GTK_CONTAINER(button), bbox); | 4596 gtk_container_add (GTK_CONTAINER(button), bbox); |
| 4597 | |
| 4591 if (iconfile) { | 4598 if (iconfile) { |
| 4592 char *filename; | 4599 char *filename; |
| 4593 filename = g_build_filename (DATADIR, "pixmaps", "gaim", "buttons", iconfile, NULL); | 4600 filename = g_build_filename (DATADIR, "pixmaps", "gaim", "buttons", iconfile, NULL); |
| 4594 debug_printf("Loading: %s\n", filename); | 4601 debug_printf("Loading: %s\n", filename); |
| 4595 image = gtk_image_new_from_file(filename); | 4602 image = gtk_image_new_from_file(filename); |
| 4596 gtk_box_pack_start(GTK_BOX(bbox), image, FALSE, FALSE, 0); | 4603 gtk_box_pack_start(GTK_BOX(bbox), image, FALSE, FALSE, 0); |
| 4597 g_free(filename); | 4604 g_free(filename); |
| 4598 } | 4605 } |
| 4606 | |
| 4599 if (text) { | 4607 if (text) { |
| 4600 label = gtk_label_new(NULL); | 4608 label = gtk_label_new(NULL); |
| 4601 gtk_label_set_text_with_mnemonic(GTK_LABEL(label), text); | 4609 gtk_label_set_text_with_mnemonic(GTK_LABEL(label), text); |
| 4602 gtk_label_set_mnemonic_widget(GTK_LABEL(label), button); | 4610 gtk_label_set_mnemonic_widget(GTK_LABEL(label), button); |
| 4603 gtk_box_pack_start(GTK_BOX(bbox), label, FALSE, FALSE, 0); | 4611 gtk_box_pack_start(GTK_BOX(bbox), label, FALSE, FALSE, 0); |
