-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpe_ui.c
More file actions
32 lines (22 loc) · 855 Bytes
/
pe_ui.c
File metadata and controls
32 lines (22 loc) · 855 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include "internal.h"
#include <gdk/gdk.h>
#include <gtk/gtk.h>
#include <gtk/gtkplug.h>
#include "pe_ui.h"
void PE_ui_error(const char* err) {
GtkWidget *dialog, *label;
/* Create the widgets */
sj = gtk_dialog_new_with_buttons ("Pidgin-Encryption Error", 0, 0,
GTK_STOCK_OK,
GTK_RESPONSE_NONE,
NULL);
label = gtk_label_new (err);
g_signal_connect_swapped (GTK_OBJECT (dialog),
"response",
G_CALLBACK (gtk_widget_destroy),
GTK_OBJECT (sj));
gtk_container_add (GTK_CONTAINER (GTK_DIALOG(dialog)->vbox),
label);
/* gtk_widget_show_all (dialog); */
gtk_widget_show_all (sj);
}