Mercurial > pidgin.yaz
comparison pidgin/gtknotify.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 | 563a42d98e3a |
children | 9e648622bf72 |
comparison
equal
deleted
inserted
replaced
17140:3c4280387259 | 17166:92c3c2eeba87 |
---|---|
575 GtkWidget *imhtml; | 575 GtkWidget *imhtml; |
576 GtkWidget *frame; | 576 GtkWidget *frame; |
577 char label_text[2048]; | 577 char label_text[2048]; |
578 char *linked_text, *primary_esc, *secondary_esc; | 578 char *linked_text, *primary_esc, *secondary_esc; |
579 | 579 |
580 window = gtk_window_new(GTK_WINDOW_TOPLEVEL); | 580 window = pidgin_create_window(title, PIDGIN_HIG_BORDER, NULL, TRUE); |
581 gtk_window_set_title(GTK_WINDOW(window), title); | |
582 gtk_window_set_type_hint(GTK_WINDOW(window), GDK_WINDOW_TYPE_HINT_DIALOG); | 581 gtk_window_set_type_hint(GTK_WINDOW(window), GDK_WINDOW_TYPE_HINT_DIALOG); |
583 gtk_container_set_border_width(GTK_CONTAINER(window), PIDGIN_HIG_BORDER); | |
584 | 582 |
585 g_signal_connect(G_OBJECT(window), "delete_event", | 583 g_signal_connect(G_OBJECT(window), "delete_event", |
586 G_CALLBACK(formatted_close_cb), NULL); | 584 G_CALLBACK(formatted_close_cb), NULL); |
587 | 585 |
588 /* Setup the main vbox */ | 586 /* Setup the main vbox */ |
710 data = g_malloc(sizeof(PidginNotifySearchResultsData)); | 708 data = g_malloc(sizeof(PidginNotifySearchResultsData)); |
711 data->user_data = user_data; | 709 data->user_data = user_data; |
712 data->results = results; | 710 data->results = results; |
713 | 711 |
714 /* Create the window */ | 712 /* Create the window */ |
715 window = gtk_window_new(GTK_WINDOW_TOPLEVEL); | 713 pidgin_create_window(title ? title :_("Search Results"), PIDGIN_HIG_BORDER, NULL, TRUE); |
716 gtk_window_set_title(GTK_WINDOW(window), (title ? title :_("Search Results"))); | |
717 gtk_window_set_type_hint(GTK_WINDOW(window), GDK_WINDOW_TYPE_HINT_DIALOG); | 714 gtk_window_set_type_hint(GTK_WINDOW(window), GDK_WINDOW_TYPE_HINT_DIALOG); |
718 gtk_container_set_border_width(GTK_CONTAINER(window), PIDGIN_HIG_BORDER); | |
719 | 715 |
720 g_signal_connect_swapped(G_OBJECT(window), "delete_event", | 716 g_signal_connect_swapped(G_OBJECT(window), "delete_event", |
721 G_CALLBACK(searchresults_close_cb), data); | 717 G_CALLBACK(searchresults_close_cb), data); |
722 | 718 |
723 /* Setup the main vbox */ | 719 /* Setup the main vbox */ |