Add green bullet to indicate success.

svn path=/trunk/; revision=44378
This commit is contained in:
Irene Rüngeler 2012-08-09 13:23:47 +00:00
parent ed497d453f
commit 9fb3d27bee
4 changed files with 72 additions and 6 deletions

BIN
image/expert_ok.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

@ -105,7 +105,7 @@ checkapi-todo:
expert_indicators.h:
echo "/* This file was automatically generated. DO NOT EDIT. */" > $@
echo >> $@
for elevel in chat error none note warn ; do \
for elevel in chat error none note warn ok ; do \
gdk-pixbuf-csource --raw --name=expert_$${elevel}_pb_data $(top_srcdir)/image/expert_$${elevel}.png >> $@ ;\
done

View File

@ -1995,19 +1995,20 @@ select_first_entry(void)
static void
add_page(gchar *name, gchar *text, gboolean error)
{
GtkWidget *view;
GtkWidget *view, *icon;
GtkTreeModel *model;
GtkTreeIter iter;
GdkPixbuf *pixbuf;
/*GdkPixbuf *pixbuf;*/
view = g_object_get_data(G_OBJECT(compile_bpf_w), E_COMPILE_TREE_VIEW_INTERFACES);
model = gtk_tree_view_get_model(GTK_TREE_VIEW(view));
gtk_list_store_append (GTK_LIST_STORE(model), &iter);
if (error) {
pixbuf = gdk_pixbuf_new_from_file("image/expert_error.png", NULL);
gtk_list_store_set(GTK_LIST_STORE(model), &iter, SIGN, pixbuf, INAME, name, -1);
icon = pixbuf_to_widget(expert_error_pb_data);
gtk_list_store_set(GTK_LIST_STORE(model), &iter, SIGN, gtk_image_get_pixbuf(GTK_IMAGE(icon)), INAME, name, -1);
} else {
gtk_list_store_set(GTK_LIST_STORE(model), &iter, SIGN, NULL, INAME, name, -1);
icon = pixbuf_to_widget(expert_ok_pb_data);
gtk_list_store_set(GTK_LIST_STORE(model), &iter, SIGN, gtk_image_get_pixbuf(GTK_IMAGE(icon)), INAME, name, -1);
}
g_hash_table_insert(compile_results, name, text);
}

View File

@ -314,3 +314,68 @@ static const guint8 expert_warn_pb_data[] =
"\0"};
/* GdkPixbuf RGBA C-Source image dump */
#ifdef __SUNPRO_C
#pragma align 4 (expert_ok_pb_data)
#endif
#ifdef __GNUC__
static const guint8 expert_ok_pb_data[] __attribute__ ((__aligned__ (4))) =
#else
static const guint8 expert_ok_pb_data[] =
#endif
{ ""
/* Pixbuf magic (0x47646b50) */
"GdkP"
/* length: header (24) + pixel_data (784) */
"\0\0\3("
/* pixdata_type (0x1010002) */
"\1\1\0\2"
/* rowstride (56) */
"\0\0\0""8"
/* width (14) */
"\0\0\0\16"
/* height (14) */
"\0\0\0\16"
/* pixel_data: */
"\377\377\377\0\377\377\377\0\377\377\377\0\0\0\0\15\1\16\20\206\1\22"
"\25\314\1\23\26\345\2\24\27\345\1\22\25\314\1\16\20\206\0\0\0\15\377"
"\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\1"
"\5\6G\11\30\33\344[\243\221\377\201\324\277\377\241\343\322\377\241\343"
"\322\377\201\324\277\377[\243\221\377\12\31\33\344\1\5\6G\377\377\377"
"\0\377\377\377\0\377\377\377\0\1\5\6G\27""39\357\201\324\277\377\241"
"\343\322\377\241\343\322\377\241\343\322\377\241\343\322\377\241\343"
"\322\377\241\343\322\377\201\324\277\377\27""39\357\1\5\6G\377\377\377"
"\0\0\0\0\15\5\24\27\343\201\324\277\377\205\336\310\377\205\336\310\377"
"\205\336\310\377\205\336\310\377\205\336\310\377\205\336\310\377\205"
"\336\310\377\205\336\310\377\201\324\277\377\5\24\27\343\0\0\0\15\5\21"
"\22\206[\243\221\377l\331\276\377l\331\276\377l\331\276\377l\331\276"
"\377l\331\276\377l\331\276\377l\331\276\377l\331\276\377l\331\276\377"
"l\331\276\377[\243\221\377\5\21\22\206\10\26\30\314\201\324\277\377F"
"\324\260\377F\324\260\377F\324\260\377F\324\260\377F\324\260\377F\324"
"\260\377F\324\260\377F\324\260\377F\324\260\377F\324\260\377\201\324"
"\277\377\10\26\30\314\12\31\33\345P\331\267\377P\331\267\377P\331\267"
"\377P\331\267\377P\331\267\377P\331\267\377P\331\267\377P\331\267\377"
"P\331\267\377P\331\267\377P\331\267\377P\331\267\377\12\31\33\345\13"
"\32\33\345]\336\276\377]\336\276\377]\336\276\377]\336\276\377]\336\276"
"\377]\336\276\377]\336\276\377]\336\276\377]\336\276\377]\336\276\377"
"]\336\276\377]\336\276\377\13\32\33\345\14\31\32\314\201\324\277\377"
"h\343\304\377h\343\304\377h\343\304\377h\343\304\377h\343\304\377h\343"
"\304\377h\343\304\377h\343\304\377h\343\304\377h\343\304\377\201\324"
"\277\377\14\31\32\314\12\24\25\206[\243\221\377u\353\315\377u\353\315"
"\377u\353\315\377u\353\315\377u\353\315\377u\353\315\377u\353\315\377"
"u\353\315\377u\353\315\377u\353\315\377[\243\221\377\12\24\25\206\0\0"
"\0\15\17\32\33\343\201\324\277\377\201\360\324\377\201\360\324\377\201"
"\360\324\377\201\360\324\377\201\360\324\377\201\360\324\377\201\360"
"\324\377\201\360\324\377\201\324\277\377\17\32\33\343\0\0\0\15\377\377"
"\377\0\4\7\10G\40""77\356\201\324\277\377\216\365\333\377\216\365\333"
"\377\216\365\333\377\216\365\333\377\216\365\333\377\216\365\333\377"
"\201\324\277\377\40""77\356\4\7\10G[\243\221\0\377\377\377\0\377\377"
"\377\0\5\10\10G\21\34\34\343[\243\221\377\216\350\321\377\230\372\342"
"\377\230\372\342\377\216\350\321\377[\243\221\377\21\34\34\343\5\10\10"
"G\201\324\277\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377"
"\0\0\0\0\15\16\27\27\206\22\35\35\314\24\37\37\345\24\37\37\345\22\35"
"\35\314\16\27\27\206\0\0\0\15\201\324\277\0\377\377\377\0\377\377\377"
"\0"};