mirror of https://github.com/GNOME/gimp.git
parent
f2c3ad960c
commit
0a12a522a8
|
@ -89,6 +89,7 @@ EXTRA_DIST = \
|
|||
pixmaps/toselection.xpm \
|
||||
pixmaps/update.xpm \
|
||||
pixmaps/wilber.xpm \
|
||||
pixmaps/wilber2.xpm \
|
||||
pixmaps/yes.xpm \
|
||||
pixmaps/zoom_in.xpm \
|
||||
pixmaps/zoom_out.xpm \
|
||||
|
|
|
@ -37,6 +37,7 @@ extern gboolean be_verbose;
|
|||
extern gboolean use_debug_handler;
|
||||
extern gboolean console_messages;
|
||||
extern gboolean restore_session;
|
||||
extern gboolean double_speed;
|
||||
extern gboolean we_are_exiting; /* this is used in session_get_window_info() */
|
||||
extern GimpSet *image_context;
|
||||
extern MessageHandlerType message_handler;
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
|
||||
#include "image_new.h"
|
||||
|
||||
#include "appenv.h"
|
||||
#include "gimprc.h"
|
||||
#include "file_new_dialog.h"
|
||||
#include "tile_manager_pvt.h"
|
||||
|
@ -29,6 +30,8 @@
|
|||
#include "libgimp/gimpintl.h"
|
||||
#include "libgimp/parasite.h"
|
||||
|
||||
#include "pixmaps/wilber2.xpm"
|
||||
|
||||
static GList *image_base_type_names = NULL;
|
||||
static GList *fill_type_names = NULL;
|
||||
static GimpImageNewValues last_values;
|
||||
|
@ -184,6 +187,56 @@ image_new_values_free (GimpImageNewValues *values)
|
|||
g_free (values);
|
||||
}
|
||||
|
||||
static gint
|
||||
image_new_rotate_the_shield_harmonics (GDisplay *display)
|
||||
{
|
||||
static GdkPixmap *pixmap = NULL;
|
||||
static GdkBitmap *mask = NULL;
|
||||
static gint width = 0;
|
||||
static gint height = 0;
|
||||
|
||||
while (gtk_events_pending ())
|
||||
gtk_main_iteration ();
|
||||
|
||||
if (pixmap == NULL)
|
||||
{
|
||||
GtkStyle *style;
|
||||
|
||||
style = gtk_widget_get_style (display->canvas);
|
||||
|
||||
pixmap =
|
||||
gdk_pixmap_create_from_xpm_d (display->canvas->window,
|
||||
&mask,
|
||||
&style->bg[GTK_STATE_NORMAL],
|
||||
wilber2_xpm);
|
||||
|
||||
gdk_window_get_size (pixmap, &width, &height);
|
||||
}
|
||||
|
||||
if (display->canvas->allocation.width >= width &&
|
||||
display->canvas->allocation.height >= height)
|
||||
{
|
||||
gint x, y;
|
||||
|
||||
x = (display->canvas->allocation.width - width) / 2;
|
||||
y = (display->canvas->allocation.height - height) / 2;
|
||||
|
||||
gdk_gc_set_clip_mask (display->canvas->style->black_gc, mask);
|
||||
gdk_gc_set_clip_origin (display->canvas->style->black_gc, x, y);
|
||||
|
||||
gdk_draw_pixmap (display->canvas->window,
|
||||
display->canvas->style->black_gc,
|
||||
pixmap, 0, 0,
|
||||
x, y,
|
||||
width, height);
|
||||
|
||||
gdk_gc_set_clip_mask (display->canvas->style->black_gc, NULL);
|
||||
gdk_gc_set_clip_origin (display->canvas->style->black_gc, 0, 0);
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
void
|
||||
image_new_create_image (const GimpImageNewValues *values)
|
||||
{
|
||||
|
@ -247,6 +300,10 @@ image_new_create_image (const GimpImageNewValues *values)
|
|||
display = gdisplay_new (image, 0x0101);
|
||||
|
||||
gimp_context_set_display (gimp_context_get_user (), display);
|
||||
|
||||
if (double_speed)
|
||||
gtk_idle_add ((GtkFunction) image_new_rotate_the_shield_harmonics,
|
||||
display);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -74,6 +74,7 @@ gboolean use_shm = FALSE;
|
|||
gboolean use_debug_handler = FALSE;
|
||||
gboolean console_messages = FALSE;
|
||||
gboolean restore_session = FALSE;
|
||||
gboolean double_speed = FALSE;
|
||||
|
||||
GimpSet *image_context = NULL;
|
||||
|
||||
|
@ -251,6 +252,11 @@ main (int argc,
|
|||
restore_session = TRUE;
|
||||
argv[i] = NULL;
|
||||
}
|
||||
else if (strcmp (argv[i], "--wilber-on-lsd") == 0)
|
||||
{
|
||||
double_speed = TRUE;
|
||||
argv[i] = NULL;
|
||||
}
|
||||
/*
|
||||
* ANYTHING ELSE starting with a '-' is an error.
|
||||
*/
|
||||
|
|
|
@ -0,0 +1,107 @@
|
|||
/* XPM */
|
||||
static char * wilber2_xpm[] = {
|
||||
"95 95 9 1",
|
||||
" c None",
|
||||
". c #FFFFFF",
|
||||
"+ c #B6B6B6",
|
||||
"@ c #494949",
|
||||
"# c #DBDBDB",
|
||||
"$ c #6D6D6D",
|
||||
"% c #929292",
|
||||
"& c #242424",
|
||||
"* c #000000",
|
||||
" .+. ",
|
||||
" .+. .+@# ..+. ",
|
||||
" #@+. .$@# .%&. ",
|
||||
" #&+. .&@#. .+&$. ..#. ",
|
||||
" .++. +*$.. .$*%. .%*%. ..%%. ",
|
||||
" .$@. #@*%. .#*&. .#&@. .%*%. ",
|
||||
" .$&+. .#&&+ .%*&# .#&*# #&@.. ",
|
||||
" .+*&+. .#*&+ .#&*$. .#@*&# #&$. ",
|
||||
" .+#. ..%&&+. .%*&# .%**+. .$**%. .+&@. ..++. ",
|
||||
" .%@#. ..@*$. #@*&#. .$**+. #**@.. ..+@*@. .#$&%. ",
|
||||
" .+&$.. .@*%. .@**%. .#&*@.. #&*@. .%**&+. .%*%.. ",
|
||||
" #&*@+. #&*@.. .+&*&+. .%**%. .$*&#. #&*&+. .$*#. ",
|
||||
" .#+.+$*&+. #&*&%.. .+&*&+..#&*&#..+**%. #&*@. ..+&*# ",
|
||||
" ... .@&...@*%. .%***$#. .%**&# .@**%. #&*@. .@*@. .+@&*&. .... ",
|
||||
" +%..#&$+..@*@.. ..+@**&+..#&**+ .@**$..#**&# .$*&# #&**@+. .#+@%. ",
|
||||
" +&%.+*@+#.@**%#.. .#@**@. #&**+.#&**+..%**&. .$*&+ +**$#. .$*@#. ",
|
||||
" #@&$@**%+#%***@%#...+**&#.+&*@##@**$..%&**$..#&**+ .+**+. .#&&#. ",
|
||||
" .+@&***@##.%&***&%. #&*&#.@*&+#@**$.#@**&%..#$**&+ .%*&# ..#+$*%. ",
|
||||
" ..+&**&#...#+&**&#.#&*$.%**@.#&**+.%**&+.#$&***$. .$*&# .#$&**&+. ",
|
||||
" .@***%.....+&**+.%**+.%**@.#&**+.$**@..@***&%#..+&*&# .%***@%. ",
|
||||
" ... .$***@......$**+.@**+.+***+.@**$.%**@.+&**$#..#%&**&#..$**%#.. ..... ",
|
||||
" #$#. .$***&%.....#@*#.@**@#.$**&+#&**+#&*&#+**&#.%&*****%.#$@*@.. ..%@&+ ",
|
||||
" #@@++#.. .$****&$+....#$#.%***@+#$**&+%**@.$**+#&*@.#&***&@%#%$+$*%. .%*&%. ",
|
||||
" .+&*&&$. .@******&%.....++#%&**&+#@**$#***#%**$#&*&#+**&%##+@%##&*+. .#+++@&+.. ",
|
||||
" .+%$**+..$********$.....#+++@**&+%**&#&**#%**@#@*&#%**$#$&*%..%*&# .+&****$. ",
|
||||
" ...@*&%#%*****@$@*@#....#&$+&**$+**&+***#@**$#&*&+%**&***@..#&*$. .@***&@#. ",
|
||||
" .+***&&*****&##+@@+....%&&&**@+**&@**@%***+$**&+$*****@#..#@%#..+&*@+#.. ",
|
||||
" .@**********%..#@&+...#&$%&*&@**&**&@***@%&***&*****&+.........$*&#. ",
|
||||
" ... ..+++%&*****@...#&@...#&@##@*********************@%&%....++###$**$. ..##.. ",
|
||||
" +$+..#.. ..+*****&#...+&+..+@&$.#&@%+%$$@&&**&***&&@$+#%&#...$&*&&&**&+. .....#@&&%. ",
|
||||
" #@&@@&$#. #@*****@#...%$...#@&.+$#......##++%%%%+#.+$@&%...+&*******@. .#%$++@*$%#. ",
|
||||
" .#&*&**$#..#++#.#******&+..#%....+%....................#&@%+....@**&$$@&$#..#@*****$... ",
|
||||
" ..#.%**&@&***&+.$*******&%%++%$@&$.............##++#..#+......+**&#........$***&&@#. ",
|
||||
" ..@********@##&*************&%..........+##....+$%#.......+@**%.#++#...%&*@+##.. ",
|
||||
" .#@@@%%$&**+.+&************%..........%&&@$.....$$#.....+&**&##@**&$%@**&#. ",
|
||||
" .......+&*&##@***********@...........%$%+@+.....$%.#%$$@***%#@*********%. ",
|
||||
" .%***&&***********+...............+@#....#$+#+##+@&%#$***@@&***$.. ... ..... ",
|
||||
" .##..#+#. ..###.#&**************&#........#$#.....%#.....#@.....#$%$&*&%#.#%$+....+%#..+@@%# ",
|
||||
" #@@$$&*@#..+@&&@+.%&*&&@&*********@+#......+*@$$+..........@#.....#&***%..##... ..$&*&$$&&&@+ ",
|
||||
" .#@**@**&@&*****&#.####.#%*******@&*&$+....+%+++$$#.....##.%+......&**@#+@&@%...#$******&+... ",
|
||||
" ..+#.%&****&&***$#.#+$&@&******&+##%@&@#........$+.....%&@%%......@&$#+&****@%$@**@%%$$#. ",
|
||||
" ..%&&$+##+@**&@&***********&#....%&#..#......#.....@**&%...#+.@+#+&**********$#..... ",
|
||||
" ..##.. .#&***************&#....+&#.#$........+.#%****%...$*%&@&***@%+$****@#. ",
|
||||
" .....+&**&@%%$*******&#....+@#.#&&@$@$..#*&&*****#.+#$*******$#...+@@%#. ",
|
||||
" .#%@$#.+%%##++%&******&#...#@+...+%+$$$%.#&******&.#&&&**&**&$##%%#.......#.. ",
|
||||
" .###...+&***&#...+@&*********&+...$%.....#.......%&*****%.#@****%%%+#%&**&+. .#%&@+..#+#..",
|
||||
".##.+@*&%%$******&++$&************%..+&#.....+#.......%@&**&+..#+@**@%%%@*****&+##+@***&$%&*&%#",
|
||||
"#$&&*&&*****&$$@*******&&&********@..%$.......%%#......#$@++@$%$@&&*************&&***&&***&$$$#",
|
||||
".#%@@##$**&$#...%****&$##+&*******&#.%$........%@%%%%%$$%#..#+++%$$@@&***&*********&+##%@$#....",
|
||||
" .......+$+.. ..%&&@+#+@&*********$.+@.........#+++++#.............+&**$+$****&**@#. ..... ",
|
||||
" ... ..#+#.##..$*************$#&$..........%$@$$%...........#&**@+$&****$+#.. ",
|
||||
" .#$&*&%#.#$***************$@*$.......+@&@@@$+..........#@***********@# .... ",
|
||||
" .#$*****@@&**&@%%***********&&*%.....$@%#...............%************&#..#%%#. ",
|
||||
" ..+#.#$***&&*****&%#+@**************&#....#.................#&*************$%$&**&#... ",
|
||||
" ..#@*&&&**@+##%&**&+#@*****************@+....................#@&********************&%%@. ",
|
||||
" .#+%@*&****$#. ..+$%##$*******************&&$%+###............#$&@***********&&**&$+%&***&. ",
|
||||
" #$&*&%#%@&$#...##....+&**@%@***************@@@&&&@@$+#......#%@**@&*********&@@$%#...+@@%%. ",
|
||||
" ..#++....#....%&&@%+%&**%#+&***********&%@*@##&&@&***&@%%%%$&****&$********@$@#... ..... ",
|
||||
" .%*********@#$************&@+&&@$.&*+%****************&%@&**&@$@$#. ",
|
||||
" .#&**&&****&#+&***&*******&+$&*$#$%&*$$*$&***&**********&@@@@$@&*@+###++#. ",
|
||||
" ....#@**$##+$&$+.@**&+%&********&&*%.#@&&@@*@$*&&***************$+#@***&&&**$.. ",
|
||||
" .#%%$&**%.. .....+**&#+&***********@+..#&%+*&$&&+%****************$.+*********%.... ",
|
||||
" .#@*****@#..#+%+#+&**%#&***&*********&$+.+#.@$#+++&***@***$%@@&&&**&#.%@@@%+%&*&%%%$. ",
|
||||
" ..#%*&@&&@#..#@**&&&**&#%***%%&**********&@+#.####+&****%***@+####+@*&+...#....#@*****. ",
|
||||
" #$&*@#.###. .$********%.@**$#@**************&@@@&****&**%$****@$%#.#**$.. .#%%+%.. ",
|
||||
" #%$%#. #&**@%%$@+.#&*&#$***$%&*****************&$**@#$******@#.&**$#..... .... ",
|
||||
" ..... .+**$#......%**@#&**$+&**&@&**********&**@%***%#+$@&***%.@***&@@@%#. ",
|
||||
" ...#@*@#...+%%$&**$#&*&#$**&%@**&$**&$&*&%**&#@***$+..+@**$.+&*******%. ",
|
||||
" .#%$&**%..#$******&+#&*@.@**$+&**%@**$%**@+***++@****@#.#&*$..#%$$$@**@.. ",
|
||||
" #@****@#..%****&&&+.#**@#&**+%**@+&**+%**&#@**@+#%&***@#.&*@........%&*%##. ",
|
||||
" .+*&@@$+. .@**@+###..%**@.@**#%**@#&**++**&++&**&%##$***+.&**%.. ..$**&@+. ",
|
||||
" ..+@&#.... .&*&#...#+$&**$.$**++**@#@**%.&**@#+&***$.#@*&+.@***$+#.. .#%$@&@# ",
|
||||
" .$*&$. .#**%..#$*****&#.$**%#@*&+%**&#+&**@##@***#.$*&#.+&*****@+. ....+@% ",
|
||||
" #++#.. ..$*&+..%***&@%+.#@**$.$**$.@**$.+&**$.#&**%.@*&#..+$@&***@. .## ",
|
||||
" ..+$**&# .$**@#...+@***+.%**@.+***#.%**&#.@**##@**+. ...#+&*&# ",
|
||||
" .$****$. .@**+..#@****$..$**@.#&**+.#**&##@*@..@**&+.. .#**+.. ",
|
||||
" #&*@$+.. .$*@. .@***$#.#%&**%.#&**+.+**$.+**%..+&**&$+.. .@*&%+. ",
|
||||
" .+*$#.. .@*@. .&**%..#@**&%##@**$.#@*&#.$**$. .+@&**&$. .+@&*&#. ",
|
||||
" .#@*+. .#&*@. .&*&#..%**&+..$**$#.%**$..%**&#. ..+$**&# ..#%*%. ",
|
||||
" #&&%. .#@**$. .@*&. .@**$. +**&#..@**%..#&**@#.. ..$**+ ..$@. ",
|
||||
" #+#.. .+&**&+. .%*&. .$**+. +**@# .$**@#..+@**&%.. .#&*+. ..#. ",
|
||||
" .$*@%#. .%*&# .+**%. #&*&#..+&*&+. .#%&**%. #&*$#. ",
|
||||
" .@&#.. ..$**+ .&*$. .$**+. .+&*&+. ..%**$. .%&*@+. ",
|
||||
" .#@&. ..%**&# .$*&#...@*&#. .+&*&#. .#&*%. ..#%*$. ",
|
||||
" .$&$. .%**@+. .%**%. .+**$. .$**%. #&*+. ..@@. ",
|
||||
" #@%#. .$*@#. ..@**+. #**&. .%**+. #&*%.. .+$# ",
|
||||
" ##.. .%*+. .%**$. .+**$. .%*&# .%&&%. ... ",
|
||||
" .+*%. #@*$.. .@*@#. .@*$. ..#&&# ",
|
||||
" #@&+. .$*+. .@*%. .%&@#. .%&# ",
|
||||
" +&%. .+*%. .$*%. ..%*$. .+@# ",
|
||||
" ##.. .+*$. .#&&# .#@@. .#. ",
|
||||
" .$&#. .$&# .@$. ",
|
||||
" .$%. .@@. .%+. ",
|
||||
" .#.. .%+. .... ",
|
||||
" ... "};
|
Loading…
Reference in New Issue