gnome-edu r18 - trunk/garfunkel/src



Author: brunobol
Date: Wed Dec 17 22:53:53 2008
New Revision: 18
URL: http://svn.gnome.org/viewvc/gnome-edu?rev=18&view=rev

Log:
fixed a security (and seg fault) problem)

Modified:
   trunk/garfunkel/src/garfunkel.c

Modified: trunk/garfunkel/src/garfunkel.c
==============================================================================
--- trunk/garfunkel/src/garfunkel.c	(original)
+++ trunk/garfunkel/src/garfunkel.c	Wed Dec 17 22:53:53 2008
@@ -35,6 +35,7 @@
 
 #define GFK_BLINK_SPEED_FAST    200000
 #define GFK_BLINK_SPEED_NORMAL  500000
+#define THEME_FILENAME "garfunkel.svg"
 
 G_DEFINE_TYPE (Garfunkel, garfunkel, GTK_TYPE_DRAWING_AREA);
 
@@ -117,7 +118,7 @@
 
 
 GtkWidget *
-garfunkel_new( void )
+garfunkel_new (void)
 {
   Garfunkel * garfunkel;
   GarfunkelPrivate * gp= NULL;
@@ -128,7 +129,7 @@
 
   gp = garfunkel->priv;
            
-  filename = g_build_filename (DEFAULT_THEME_DIR, "garfunkel.svg");
+  filename = g_build_filename (DEFAULT_THEME_DIR, THEME_FILENAME, NULL);
   
   gp->svg_handle = rsvg_handle_new_from_file (filename, NULL);
   



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]