31
31
#include <dax/dax.h>
32
32
#include "pp-super-aa.h"
33
33
#endif
34
+ #include <stdlib.h>
34
35
35
36
/* #define QUICK_ACCESS_LEFT - uncomment to move speed access from top to left,
36
37
* useful on meego netbook
@@ -256,7 +257,7 @@ static gboolean stage_motion (ClutterActor *actor,
256
257
hide_cursor = g_timeout_add (500 , hide_cursor_cb , actor );
257
258
258
259
if (!pp_get_fullscreen (CLUTTER_STAGE (actor )))
259
- return ;
260
+ return FALSE ;
260
261
261
262
clutter_actor_get_size (CLUTTER_RENDERER (renderer )-> stage , & stage_width , & stage_height );
262
263
#ifdef QUICK_ACCESS_LEFT
@@ -275,6 +276,8 @@ static gboolean stage_motion (ClutterActor *actor,
275
276
pp_slidep = g_list_nth (pp_slides , g_list_length (pp_slides ) * d );
276
277
show_slide (renderer , FALSE);
277
278
}
279
+
280
+ return FALSE;
278
281
}
279
282
280
283
static void
@@ -647,8 +650,6 @@ static void state_completed (ClutterState *state, gpointer user_data)
647
650
}
648
651
}
649
652
650
- static gboolean in_stage_resize = FALSE;
651
-
652
653
static void
653
654
action_slide (ClutterRenderer * renderer )
654
655
{
@@ -677,7 +678,6 @@ action_slide (ClutterRenderer *renderer)
677
678
678
679
static gchar * pp_lookup_transition (const gchar * transition )
679
680
{
680
- gchar * ret = NULL ;
681
681
int i ;
682
682
gchar * dirs [] = { "" , "./transitions/" , PKGDATADIR , NULL };
683
683
for (i = 0 ; dirs [i ]; i ++ )
@@ -694,7 +694,7 @@ static gchar *pp_lookup_transition (const gchar *transition)
694
694
static void update_commandline_shading (ClutterRenderer * renderer )
695
695
{
696
696
ClutterColor color ;
697
- float text_x , text_y , text_width , text_height , text_scale ;
697
+ float text_x , text_y , text_width , text_height ;
698
698
float shading_x , shading_y , shading_width , shading_height ;
699
699
const char * command ;
700
700
PinPointPoint * point ;
@@ -987,8 +987,7 @@ show_slide (ClutterRenderer *renderer, gboolean backwards)
987
987
988
988
/* render potentially executed commands */
989
989
{
990
- float text_x , text_y , text_width , text_height , text_scale ;
991
- float shading_x , shading_y , shading_width , shading_height ;
990
+ float text_x , text_y , text_width , text_height ;
992
991
993
992
clutter_color_from_string (& color , point -> text_color );
994
993
g_object_set (renderer -> commandline ,
0 commit comments