Mercurial > pidgin
comparison src/prpl.c @ 1210:265abea9db72
[gaim-migrate @ 1220]
Decklin is still trying to replace me, I think :-P
committer: Tailor Script <tailor@pidgin.im>
author | Rob Flynn <gaim@robflynn.com> |
---|---|
date | Wed, 06 Dec 2000 21:39:56 +0000 |
parents | b0b40b5faede |
children | 46c09828e929 |
comparison
equal
deleted
inserted
replaced
1209:7aec3f881c98 | 1210:265abea9db72 |
---|---|
99 } | 99 } |
100 | 100 |
101 void do_ask_dialog(const char *text, void *data, void *doit, void *dont) | 101 void do_ask_dialog(const char *text, void *data, void *doit, void *dont) |
102 { | 102 { |
103 GtkWidget *window; | 103 GtkWidget *window; |
104 GtkWidget *box; | 104 GtkWidget *vbox; |
105 GtkWidget *label; | 105 GtkWidget *label; |
106 GtkWidget *hbox; | 106 GtkWidget *hbox; |
107 GtkWidget *button; | 107 GtkWidget *button; |
108 | 108 |
109 window = gtk_window_new(GTK_WINDOW_DIALOG); | 109 window = gtk_window_new(GTK_WINDOW_DIALOG); |
110 gtk_window_set_wmclass(GTK_WINDOW(window), "accept", "Gaim"); | 110 gtk_window_set_wmclass(GTK_WINDOW(window), "accept", "Gaim"); |
111 gtk_window_set_policy(GTK_WINDOW(window), 0, 0, 1); | 111 gtk_window_set_policy(GTK_WINDOW(window), FALSE, TRUE, TRUE); |
112 gtk_window_set_title(GTK_WINDOW(window), _("Accept?")); | 112 gtk_window_set_title(GTK_WINDOW(window), _("Accept?")); |
113 gtk_widget_realize(window); | 113 gtk_widget_realize(window); |
114 aol_icon(window->window); | 114 aol_icon(window->window); |
115 if (dont) | 115 if (dont) |
116 gtk_signal_connect(GTK_OBJECT(window), "destroy", GTK_SIGNAL_FUNC(dont), data); | 116 gtk_signal_connect(GTK_OBJECT(window), "destroy", GTK_SIGNAL_FUNC(dont), data); |
117 | 117 |
118 box = gtk_vbox_new(FALSE, 0); | 118 vbox = gtk_vbox_new(FALSE, 5); |
119 gtk_container_add(GTK_CONTAINER(window), box); | 119 gtk_container_set_border_width(GTK_CONTAINER(vbox), 5); |
120 gtk_widget_show(box); | 120 gtk_container_add(GTK_CONTAINER(window), vbox); |
121 | 121 |
122 label = gtk_label_new(text); | 122 label = gtk_label_new(text); |
123 gtk_box_pack_start(GTK_BOX(box), label, 0, 0, 5); | 123 gtk_box_pack_start(GTK_BOX(vbox), label, TRUE, TRUE, 0); |
124 gtk_widget_show(label); | |
125 | 124 |
126 hbox = gtk_hbox_new(FALSE, 0); | 125 hbox = gtk_hbox_new(FALSE, 5); |
127 gtk_box_pack_start(GTK_BOX(box), hbox, 0, 0, 1); | 126 gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); |
128 gtk_widget_show(hbox); | 127 |
128 button = picture_button(window, _("Cancel"), cancel_xpm); | |
129 gtk_box_pack_end(GTK_BOX(hbox), button, FALSE, FALSE, 0); | |
130 gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(des_win), window); | |
129 | 131 |
130 button = picture_button(window, _("Accept"), ok_xpm); | 132 button = picture_button(window, _("Accept"), ok_xpm); |
131 gtk_box_pack_start(GTK_BOX(hbox), button, TRUE, TRUE, 5); | 133 gtk_box_pack_end(GTK_BOX(hbox), button, FALSE, FALSE, 0); |
132 gtk_object_set_user_data(GTK_OBJECT(button), data); | 134 gtk_object_set_user_data(GTK_OBJECT(button), data); |
133 if (doit) | 135 if (doit) |
134 gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(doit), data); | 136 gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(doit), data); |
135 gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(rem_win), window); | 137 gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(rem_win), window); |
136 | 138 |
137 button = picture_button(window, _("Cancel"), cancel_xpm); | 139 gtk_widget_show_all(window); |
138 gtk_box_pack_start(GTK_BOX(hbox), button, TRUE, TRUE, 5); | |
139 gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(des_win), window); | |
140 | |
141 gtk_widget_show(window); | |
142 } | 140 } |