Mercurial > pidgin.yaz
comparison pidgin/plugins/gevolution/new_person_dialog.c @ 17166:92c3c2eeba87
Added to gtkutils.c:
GtkWidget *pidgin_create_window(const char *title, guint border_width, const char *role, gboolean resizable);
author | Gabriel Schulhof <nix@go-nix.ca> |
---|---|
date | Fri, 18 May 2007 22:04:01 +0000 |
parents | 32c366eeeb99 |
children | 44b4e8bd759b |
comparison
equal
deleted
inserted
replaced
17140:3c4280387259 | 17166:92c3c2eeba87 |
---|---|
244 dialog->person_only = person_only; | 244 dialog->person_only = person_only; |
245 dialog->buddy = buddy; | 245 dialog->buddy = buddy; |
246 dialog->book = book; | 246 dialog->book = book; |
247 g_object_ref(book); | 247 g_object_ref(book); |
248 | 248 |
249 dialog->win = gtk_window_new(GTK_WINDOW_TOPLEVEL); | 249 dialog->win = pidgin_create_window(_("New Person"), PIDGIN_HIG_BORDER, "new_person", FALSE); |
250 gtk_window_set_role(GTK_WINDOW(dialog->win), "new_person"); | |
251 gtk_window_set_title(GTK_WINDOW(dialog->win), _("New Person")); | |
252 gtk_window_set_resizable(GTK_WINDOW(dialog->win), FALSE); | |
253 gtk_container_set_border_width(GTK_CONTAINER(dialog->win), 12); | |
254 | 250 |
255 g_signal_connect(G_OBJECT(dialog->win), "delete_event", | 251 g_signal_connect(G_OBJECT(dialog->win), "delete_event", |
256 G_CALLBACK(delete_win_cb), dialog); | 252 G_CALLBACK(delete_win_cb), dialog); |
257 | 253 |
258 /* Setup the vbox */ | 254 /* Setup the vbox */ |