Re: [Gimp-developer] multiple instances of splash winners
Hi, Joseph Heled [EMAIL PROTECTED] writes: Note/Disclaimer: I am *not* suggesting adding this feature into gimp. And please don't tell me I am doing something wrong or stupid or degrading gimp in any way or form. I like many of the splash screens submitted, so I select a random one at startup. If you wish to do the same, - create a gimp-splash subdirectory under ~/.gimp-2.2 - place all your favorites there - Apply the included patch (patch -p1 rand-splash.diff) - recompile gimp You don't need to apply any patch since that feature is already there. The directory is called ~/.gimp-2.2/splashes though. Sven ___ Gimp-developer mailing list [EMAIL PROTECTED] http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer
Re: [Gimp-developer] multiple instances of splash winners
Note/Disclaimer: I am *not* suggesting adding this feature into gimp. And please don't tell me I am doing something wrong or stupid or degrading gimp in any way or form. I like many of the splash screens submitted, so I select a random one at startup. If you wish to do the same, - create a gimp-splash subdirectory under ~/.gimp-2.2 - place all your favorites there - Apply the included patch (patch -p1 rand-splash.diff) - recompile gimp -Joseph *** gimp-2.2-pre2/app/gui/splash.c2004-12-13 08:46:25.0 +1300 --- gimp-2.2-pre2s/app/gui/splash.c 2004-12-13 08:46:25.0 +1300 *** *** 74,92 g_return_if_fail (splash == NULL); ! filename = gimp_personal_rc_file (gimp-splash.png); ! pixbuf = gdk_pixbuf_new_from_file (filename, NULL); ! g_free (filename); ! ! if (! pixbuf) ! { ! filename = g_build_filename (gimp_data_directory (), !images, gimp-splash.png, !NULL); pixbuf = gdk_pixbuf_new_from_file (filename, NULL); ! g_free (filename); } if (! pixbuf) return; --- 74,119 g_return_if_fail (splash == NULL); ! { ! int nFiles = 0; ! GError* err; ! const char* folder = gimp_personal_rc_file(gimp-splash); ! GDir* d = g_dir_open(folder, 0, err); ! ! filename = 0; ! if( d ) { ! srandom(time(NULL)); ! G_CONST_RETURN gchar* name; ! while( (name = g_dir_read_name(d)) ) { ! if( (random() % (nFiles+1)) == 0 ) { ! filename = g_build_filename(folder, name, NULL); ! } ! ++nFiles; ! } ! g_dir_close(d); ! } ! ! if( filename ) { pixbuf = gdk_pixbuf_new_from_file (filename, NULL); ! g_free(filename); } + } + if (!pixbuf ) { + filename = gimp_personal_rc_file (gimp-splash.png); + pixbuf = gdk_pixbuf_new_from_file (filename, NULL); + g_free (filename); + + if (! pixbuf) + { + filename = g_build_filename (gimp_data_directory (), +images, gimp-splash.png, +NULL); + pixbuf = gdk_pixbuf_new_from_file (filename, NULL); + g_free (filename); + } + } + if (! pixbuf) return; ___ Gimp-developer mailing list [EMAIL PROTECTED] http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer
[Gimp-developer] multiple instances of splash winners
hi, i have been half following this fun splash stuff. i fully admit to looking at the splash entries more than reading of the exciting plans here. i have also been working on some avi's of the splash entries. there were so many of them that now it has been divided into a movie for each day of submissions. i needed a solution for what happens when the panel picks one and the people pick another and Sven and mitch pick yet another one and how to handle this in these movies (that should be some what like catalogs to an art show). the solution for this multipile winner problem makes more more interesting movies/catalogs. if the panel will pick a favorite 10 and the people pick a favorite 10 and mitch and Sven pick a favorite 10 it will make a nice little end movie of 30 good splashes. 662 splash entries!! i wonder how many were holding onto splash waiting to be that special one? this was a lot of fun. i will let you know when the movies of the days entries are finished. carol ___ Gimp-developer mailing list [EMAIL PROTECTED] http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer
Re: [Gimp-developer] multiple instances of splash winners
Hi, Carol Spears [EMAIL PROTECTED] writes: i have also been working on some avi's of the splash entries. there were so many of them that now it has been divided into a movie for each day of submissions. Given your permission, we will show off these movies at the GIMP booth at 21C3. Sven ___ Gimp-developer mailing list [EMAIL PROTECTED] http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer
Re: [Gimp-developer] multiple instances of splash winners
On Mon, Dec 06, 2004 at 07:20:59PM +0100, Sven Neumann wrote: Hi, Carol Spears [EMAIL PROTECTED] writes: i have also been working on some avi's of the splash entries. there were so many of them that now it has been divided into a movie for each day of submissions. Given your permission, we will show off these movies at the GIMP booth at 21C3. oh, absolutely :) i might need to remake them with some of the names more properly printed, however. the collection actually does so much more to show off what gimp can do than any one single image. what fun this all has been :) carol ___ Gimp-developer mailing list [EMAIL PROTECTED] http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer