Move stock image name macro and image enum to ui_utils.h.

Remove old, unused images.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3347 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Enrico Tröger 2008-12-08 21:58:11 +00:00
parent 14a90d6079
commit 73aa9138da
5 changed files with 11 additions and 196 deletions

View File

@ -3,6 +3,9 @@
* wscript:
Little reformatting.
Beautify the Waf output when generating geanyfunctions.h.
* src/geany.c, src/ui_utils.c, src/ui_utils.h, src/images.c:
Move stock image name macro and image enum to ui_utils.h.
Remove old, unused images.
2008-12-08 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>

View File

@ -82,15 +82,6 @@ extern GeanyApp *app;
extern gboolean ignore_callback;
enum
{
GEANY_IMAGE_SMALL_CROSS,
GEANY_IMAGE_LOGO,
GEANY_IMAGE_COMPILE,
GEANY_IMAGE_SAVE_ALL,
GEANY_IMAGE_NEW_ARROW
};
enum
{
UP,
@ -106,8 +97,6 @@ enum
GIGABYTE = (MEGABYTE*1024)
};
#define GEANY_STOCK_SAVE_ALL "geany-save-all"
/* Useful for some variable argument list functions, e.g. in utils.h */
#if ! GLIB_CHECK_VERSION(2, 8, 0)

View File

@ -349,172 +349,6 @@ static const guint8 aladin_inline[] =
/* GdkPixbuf RGBA C-Source image dump */
#ifdef __SUNPRO_C
#pragma align 4 (close_small_inline)
#endif
#ifdef __GNUC__
static const guint8 close_small_inline[] __attribute__ ((__aligned__ (4))) =
#else
static const guint8 close_small_inline[] =
#endif
{ ""
/* Pixbuf magic (0x47646b50) */
"GdkP"
/* length: header (24) + pixel_data (171) */
"\0\0\0\303"
/* pixdata_type (0x2010002) */
"\2\1\0\2"
/* rowstride (40) */
"\0\0\0("
/* width (10) */
"\0\0\0\12"
/* height (10) */
"\0\0\0\12"
/* pixel_data: */
"\2\0\0\0\10\0\0\0\35\206\0\0\0\0\202\0\0\0\15\1\0\0\0\1\202\0\0\0\377"
"\204\0\0\0\0\202\0\0\0\377\2\0\0\0\31\0\0\0\0\203\0\0\0\377\202\0\0\0"
"\0\203\0\0\0\377\203\0\0\0\0\206\0\0\0\377\205\0\0\0\0\204\0\0\0\377"
"\206\0\0\0\0\204\0\0\0\377\205\0\0\0\0\206\0\0\0\377\203\0\0\0\0\203"
"\0\0\0\377\202\0\0\0\0\203\0\0\0\377\2\0\0\0\0\0\0\0\13\202\0\0\0\377"
"\204\0\0\0\0\202\0\0\0\377\202\0\0\0\22\1\0\0\0\11\206\0\0\0\0\2\0\0"
"\0\21\0\0\0\40"};
/* GdkPixbuf RGBA C-Source image dump */
#ifdef __SUNPRO_C
#pragma align 4 (newfile_inline)
#endif
#ifdef __GNUC__
static const guint8 newfile_inline[] __attribute__ ((__aligned__ (4))) =
#else
static const guint8 newfile_inline[] =
#endif
{ ""
/* Pixbuf magic (0x47646b50) */
"GdkP"
/* length: header (24) + pixel_data (2304) */
"\0\0\11\30"
/* pixdata_type (0x1010002) */
"\1\1\0\2"
/* rowstride (96) */
"\0\0\0`"
/* width (24) */
"\0\0\0\30"
/* height (24) */
"\0\0\0\30"
/* pixel_data: */
"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
"\0\0\0\0\0Y\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377"
"\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\202"
"\0\0\0\3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
"\0\0\0\0\0\0\0\0\0\377\323\323\323\377\366\366\366\377\377\377\377\377"
"\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
"\377\377\377\377\377\377\377\377\377\377\377\371\371\371\377\332\332"
"\332\377XXX\377\0\0\0\301\0\0\0\6\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\366\366\366\377\377\377\377\377"
"\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
"\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
"\377\377\307\307\307\377\321\321\321\377\326\326\326\377\0\0\0\377\0"
"\0\0\10\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
"\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
"\377\377\377\377\377\377\377\377\377\377\377\377\376\376\376\377\377"
"\377\377\377\376\376\376\377\375\375\375\377\300\300\300\377\341\341"
"\341\377\360\360\360\377\233\233\233\377\0\0\0\377\0\0\0\11\0\0\0\1\0"
"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377"
"\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\376\376"
"\376\377\375\375\375\377\374\374\373\377\375\375\375\377\374\374\373"
"\377\373\373\373\377\257\257\256\377\351\351\351\377\377\377\377\377"
"\337\337\337\377\217\217\217\377\0\0\0\377\0\0\0\11\0\0\0\1\0\0\0\0\0"
"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\377\377"
"\377\377\377\376\376\376\377\375\375\375\377\374\374\373\377\373\373"
"\373\377\372\372\371\377\373\373\373\377\372\372\371\377\371\371\370"
"\377\244\244\243\377\360\360\360\377\377\377\377\377\364\364\364\377"
"\317\317\317\377\242\242\242\377\0\0\0\264\0\0\0\10\0\0\0\1\0\0\0\0\0"
"\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\376\376\376\377\375\375\375"
"\377\374\374\373\377\373\373\373\377\372\372\371\377\371\371\370\377"
"\370\370\367\377\371\371\370\377\370\370\367\377\370\367\366\377\236"
"\236\236\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0"
"\377\0\0\0\201\0\0\0\5\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377"
"\377\374\374\373\377\373\373\373\377\372\372\371\377\371\371\370\377"
"\370\370\367\377\370\367\366\377\367\366\365\377\370\367\366\377\367"
"\366\365\377\366\366\364\377\364\363\362\377\336\335\334\377\323\322"
"\320\377\267\267\265\377\237\236\235\377poo\377ebZ\377\0\0\0\377\0\0"
"\0\20\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\372\372\371\377"
"\371\371\370\377\370\370\367\377\370\367\366\377\367\366\365\377\366"
"\366\364\377\365\364\363\377\366\366\364\377\365\364\363\377\364\363"
"\362\377\362\362\360\377\344\344\342\377\332\331\327\377\330\330\326"
"\377\315\314\312\377\257\256\254\377\210\204{\377\0\0\0\377\0\0\0\35"
"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\370\370\367\377\370"
"\367\366\377\367\366\365\377\366\366\364\377\365\364\363\377\364\363"
"\362\377\363\363\361\377\364\363\362\377\363\363\361\377\362\362\360"
"\377\357\357\355\377\356\355\353\377\355\354\352\377\351\350\346\377"
"\325\324\323\377\304\303\302\377\217\212\201\377\0\0\0\377\0\0\0\40\0"
"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\366\365\364\377\365"
"\365\363\377\364\363\362\377\364\363\362\377\363\363\361\377\362\362"
"\360\377\361\361\357\377\362\362\360\377\361\361\357\377\361\360\356"
"\377\356\355\353\377\354\353\351\377\352\351\347\377\345\344\342\377"
"\344\343\340\377\322\321\316\377\215\210~\377\0\0\0\377\0\0\0\40\0\0"
"\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\364\363\362\377\363\362"
"\361\377\362\362\360\377\360\360\356\377\357\357\355\377\361\360\356"
"\377\360\357\355\377\361\360\356\377\360\357\355\377\357\356\354\377"
"\354\353\351\377\350\347\345\377\345\344\341\377\344\343\340\377\342"
"\341\336\377\341\337\334\377\227\222\210\377\0\0\0\377\0\0\0\40\0\0\0"
"\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\364\363\362\377\363\362"
"\361\377\362\362\360\377\360\360\356\377\357\357\355\377\361\360\356"
"\377\360\357\355\377\361\360\356\377\360\357\355\377\357\356\354\377"
"\354\353\351\377\350\347\345\377\345\344\341\377\344\343\340\377\342"
"\341\336\377\341\337\334\377\244\236\223\377\0\0\0\377\0\0\0\40\0\0\0"
"\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\360\360\356\377\357\357"
"\355\377\357\357\355\377\357\356\354\377\356\355\353\377\355\354\352"
"\377\355\354\352\377\355\354\352\377\355\354\352\377\354\353\351\377"
"\350\347\344\377\347\346\343\377\343\342\337\377\342\340\335\377\341"
"\340\334\377\340\337\333\377\241\234\220\377\0\0\0\377\0\0\0\40\0\0\0"
"\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\355\355\353\377\355\354"
"\352\377\354\353\351\377\354\353\351\377\354\353\351\377\353\352\350"
"\377\351\350\345\377\353\352\350\377\351\350\345\377\351\350\345\377"
"\345\344\341\377\346\344\341\377\343\342\336\377\337\336\332\377\336"
"\335\331\377\335\334\330\377\241\233\220\377\0\0\0\377\0\0\0\40\0\0\0"
"\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\353\352\350\377\351\350"
"\346\377\351\350\346\377\350\347\345\377\350\347\344\377\350\347\344"
"\377\347\346\343\377\350\347\344\377\0\0\0\377\3\3\3\377\0\0\0\377\14"
"\14\13\377\0\0\0\377\14\14\13\377\0\0\0\377\334\333\327\377\241\233\220"
"\377\0\0\0\377\0\0\0\40\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377"
"\377\347\346\343\377\346\345\342\377\346\345\342\377\346\345\342\377"
"\345\344\341\377\346\344\341\377\345\344\340\377\346\344\341\377\345"
"\344\340\377\20\20\20\377\0\0\0\377\0\0\0\377\0\0\0\377\30\30\27\377"
"\333\331\325\377\331\327\323\377\237\231\215\377\0\0\0\377\0\0\0\40\0"
"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\371\371\371\377\344\343\340\377\343"
"\342\337\377\343\342\336\377\344\342\337\377\344\343\337\377\342\341"
"\335\377\343\342\336\377\342\341\335\377\343\342\336\377\341\340\334"
"\377\21\20\20\377\0\0\0\377\17\17\17\377\331\327\323\377\331\327\323"
"\377\330\326\322\377\236\230\215\377\0\0\0\377\0\0\0\40\0\0\0\0\0\0\0"
"\0\0\0\0\0\0\0\0\377\355\355\355\377\341\340\335\377\341\337\334\377"
"\341\340\334\377\340\337\333\377\342\341\335\377\340\337\333\377\341"
"\340\334\377\340\337\333\377\341\340\334\377\337\336\332\377\340\336"
"\332\377\11\11\11\377\334\332\326\377\331\327\323\377\330\326\321\377"
"\327\325\321\377\235\227\213\377\0\0\0\377\0\0\0\40\0\0\0\0\0\0\0\0\0"
"\0\0\0\0\0\0\377\321\321\321\377\341\337\333\377\340\336\332\377\337"
"\336\332\377\336\335\331\377\340\337\333\377\336\335\331\377\340\336"
"\332\377\336\335\331\377\340\336\332\377\336\334\330\377\336\334\330"
"\377\334\332\326\377\334\332\326\377\330\326\322\377\327\326\321\377"
"\325\323\316\377\233\225\212\377\0\0\0\377\0\0\0\40\0\0\0\0\0\0\0\0\0"
"\0\0\0\0\0\0\377\231\230\221\377\243\236\222\377\244\236\223\377\243"
"\235\222\377\243\235\221\377\243\235\222\377\241\234\220\377\242\234"
"\220\377\241\234\220\377\242\234\220\377\241\233\217\377\241\233\220"
"\377\237\231\215\377\237\231\215\377\235\227\214\377\235\227\214\377"
"\233\226\212\377gcY\377\0\0\0\377\0\0\0\40\0\0\0\0\0\0\0\0\0\0\0\0\0"
"\0\0]\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0"
"\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0"
"\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0\377\0\0\0q\0\0\0\30\0\0"
"\0\0\0\0\0\0\0\0\0\0\0\0\0\2\0\0\0\17\0\0\0\35\0\0\0\37\0\0\0\40\0\0"
"\0\40\0\0\0\40\0\0\0\40\0\0\0\40\0\0\0\40\0\0\0\40\0\0\0\40\0\0\0\40"
"\0\0\0\40\0\0\0\40\0\0\0\40\0\0\0\40\0\0\0\40\0\0\0\40\0\0\0\30\0\0\0"
"\10\0\0\0\0"};
/* GdkPixbuf RGBA C-Source image dump */
#ifdef __SUNPRO_C
#pragma align 4 (save_all_inline)
#endif
@ -646,4 +480,3 @@ static const guint8 save_all_inline[] =
"\0\0\0\0\0\0\0\0\0\0\0\0\0"};

View File

@ -825,24 +825,6 @@ GdkPixbuf *ui_new_pixbuf_from_inline(gint img, gboolean small_img)
return gdk_pixbuf_new_from_inline(-1, save_all_inline, FALSE, NULL);
break;
}
/* unused
case GEANY_IMAGE_SMALL_CROSS:
return gdk_pixbuf_new_from_inline(-1, close_small_inline, FALSE, NULL);
break;
case GEANY_IMAGE_NEW_ARROW:
{
if ((toolbar_prefs.icon_size == GTK_ICON_SIZE_SMALL_TOOLBAR) || small_img)
{
return gdk_pixbuf_scale_simple(gdk_pixbuf_new_from_inline(-1, newfile_inline, FALSE, NULL),
16, 16, GDK_INTERP_HYPER);
}
else
{
return gdk_pixbuf_new_from_inline(-1, newfile_inline, FALSE, NULL);
}
break;
}
*/
default:
return NULL;
}

View File

@ -126,6 +126,14 @@ typedef enum
GeanyUIEditorFeatures;
#define GEANY_STOCK_SAVE_ALL "geany-save-all"
enum
{
GEANY_IMAGE_LOGO,
GEANY_IMAGE_SAVE_ALL,
};
void ui_widget_show_hide(GtkWidget *widget, gboolean show);
void ui_widget_modify_font_from_string(GtkWidget *wid, const gchar *str);