pidgin/plugins/themeedit-icon.c

branch
sadrul.gtkblist-theme
changeset 26814
7a6522d6f9e5
parent 26813
c1a058a2466e
child 26815
8fc121fd720b
equal deleted inserted replaced
26813:c1a058a2466e 26814:7a6522d6f9e5
47 const char *stockid; 47 const char *stockid;
48 const char *text; 48 const char *text;
49 } statuses[] = { 49 } statuses[] = {
50 {PIDGIN_STOCK_STATUS_AVAILABLE, N_("Available")}, 50 {PIDGIN_STOCK_STATUS_AVAILABLE, N_("Available")},
51 {PIDGIN_STOCK_STATUS_AWAY, N_("Away")}, 51 {PIDGIN_STOCK_STATUS_AWAY, N_("Away")},
52 {PIDGIN_STOCK_STATUS_XA, N_("Extended Away")},
52 {PIDGIN_STOCK_STATUS_BUSY, N_("Busy")}, 53 {PIDGIN_STOCK_STATUS_BUSY, N_("Busy")},
53 {PIDGIN_STOCK_STATUS_OFFLINE, N_("Offline")}, 54 {PIDGIN_STOCK_STATUS_OFFLINE, N_("Offline")},
55 {PIDGIN_STOCK_STATUS_LOGIN, N_("Just logged in")},
56 {PIDGIN_STOCK_STATUS_LOGOUT, N_("Just logged out")},
57 {PIDGIN_STOCK_STATUS_PERSON, N_("Icon for Contact/\nIcon for Unknown person")},
58 {PIDGIN_STOCK_STATUS_CHAT, N_("Icon for Chat")},
54 {NULL, NULL} 59 {NULL, NULL}
55 }, chatemblems[] = { 60 }, chatemblems[] = {
56 {PIDGIN_STOCK_STATUS_IGNORED, N_("Ignored")}, 61 {PIDGIN_STOCK_STATUS_IGNORED, N_("Ignored")},
57 {PIDGIN_STOCK_STATUS_FOUNDER, N_("Founder")}, 62 {PIDGIN_STOCK_STATUS_FOUNDER, N_("Founder")},
58 {PIDGIN_STOCK_STATUS_OPERATOR, N_("Operator")}, 63 {PIDGIN_STOCK_STATUS_OPERATOR, N_("Operator")},
204 209
205 void pidgin_icon_theme_edit(void) 210 void pidgin_icon_theme_edit(void)
206 { 211 {
207 GtkWidget *dialog; 212 GtkWidget *dialog;
208 GtkWidget *box, *vbox; 213 GtkWidget *box, *vbox;
214 GtkWidget *notebook;
209 GtkSizeGroup *sizegroup; 215 GtkSizeGroup *sizegroup;
210 int s, i, j; 216 int s, i, j;
211 dialog = pidgin_create_dialog(_("Pidgin Icon Theme Editor"), 0, "theme-editor-icon", FALSE); 217 dialog = pidgin_create_dialog(_("Pidgin Icon Theme Editor"), 0, "theme-editor-icon", FALSE);
212 box = pidgin_dialog_get_vbox_with_properties(GTK_DIALOG(dialog), FALSE, PIDGIN_HIG_BOX_SPACE); 218 box = pidgin_dialog_get_vbox_with_properties(GTK_DIALOG(dialog), FALSE, PIDGIN_HIG_BOX_SPACE);
213 219
220 notebook = gtk_notebook_new();
221 gtk_box_pack_start(GTK_BOX(box), notebook, TRUE, TRUE, PIDGIN_HIG_BOX_SPACE);
214 sizegroup = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL); 222 sizegroup = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL);
215 223
216 for (s = 0; sections[s].heading; s++) { 224 for (s = 0; sections[s].heading; s++) {
217 const char *heading = sections[s].heading; 225 const char *heading = sections[s].heading;
226
227 box = gtk_vbox_new(FALSE, 0);
228 gtk_notebook_append_page(GTK_NOTEBOOK(notebook), box, gtk_label_new(heading));
218 229
219 vbox = pidgin_make_frame(box, heading); 230 vbox = pidgin_make_frame(box, heading);
220 g_object_set_data(G_OBJECT(dialog), heading, vbox); 231 g_object_set_data(G_OBJECT(dialog), heading, vbox);
221 232
222 for (i = 0; sections[s].options[i].stockid; i++) { 233 for (i = 0; sections[s].options[i].stockid; i++) {

mercurial