cleanup specfile for packaging
[profile/ivi/clutter-toys.git] / packaging / fix-image-path.patch
1 diff -Naur clutter-toys-0.1/courasel/courasel.c clutter-toys-0.1-new/courasel/courasel.c
2 --- clutter-toys-0.1/courasel/courasel.c        2012-03-19 13:20:31.309711495 -0700
3 +++ clutter-toys-0.1-new/courasel/courasel.c    2012-03-20 14:05:16.361007303 -0700
4 @@ -10,14 +10,14 @@
5  
6  struct { gchar *img; gchar *title; } ItemDetails[] =
7  {
8 -  { "accessories-text-editor.png", "Text Editor" },
9 -  { "applications-games.png", "Game" },
10 -  { "dates.png", "Dates" },
11 -  { "im-client.png", "Chat" },
12 -  { "preferences-desktop-theme.png", "Preferences" },
13 -  { "tasks.png", "Todo List" },
14 -  { "utilities-terminal.png", "Terminal" },
15 -  { "web-browser.png", "Browser"},
16 +  { "/usr/share/clutter-toys/courasel/accessories-text-editor.png", "Text Editor" },
17 +  { "/usr/share/clutter-toys/courasel/applications-games.png", "Game" },
18 +  { "/usr/share/clutter-toys/courasel/dates.png", "Dates" },
19 +  { "/usr/share/clutter-toys/courasel/im-client.png", "Chat" },
20 +  { "/usr/share/clutter-toys/courasel/preferences-desktop-theme.png", "Preferences" },
21 +  { "/usr/share/clutter-toys/courasel/tasks.png", "Todo List" },
22 +  { "/usr/share/clutter-toys/courasel/utilities-terminal.png", "Terminal" },
23 +  { "/usr/share/clutter-toys/courasel/web-browser.png", "Browser"},
24  };
25  
26  typedef struct Item
27 diff -Naur clutter-toys-0.1/foofone/foofone.c clutter-toys-0.1-new/foofone/foofone.c
28 --- clutter-toys-0.1/foofone/foofone.c  2012-03-19 13:20:31.285711498 -0700
29 +++ clutter-toys-0.1-new/foofone/foofone.c      2012-03-20 14:06:26.841009909 -0700
30 @@ -277,7 +277,7 @@
31                  rect_color = { 0, 0, 0, 0x99 },
32                  black_color = { 0, 0, 0, 0xff };
33  
34 -  button_texture =  clutter_texture_new_from_file ("button.png", NULL);
35 +  button_texture =  clutter_texture_new_from_file ("/usr/share/clutter-toys/foofone/button.png", NULL);
36  
37    xpad = (CSW-(3*clutter_actor_get_width(button_texture)))/4;
38    x = xinit = xpad;
39 @@ -301,7 +301,7 @@
40  
41    app->dpy = clutter_group_new();
42  
43 -  a = clutter_texture_new_from_file ("display.png", NULL);
44 +  a = clutter_texture_new_from_file ("/usr/share/clutter-toys/foofone/display.png", NULL);
45    clutter_group_add (CLUTTER_GROUP(app->dpy), a);
46    app->dpyx = xdpy = x;
47    app->dpyy = ydpy = (y - clutter_actor_get_height(app->dpy))/2;
48 @@ -393,7 +393,7 @@
49    clutter_actor_set_size (a, CSW, CSH);
50    clutter_group_add (CLUTTER_GROUP(app->screen_dial), a);
51  
52 -  a = clutter_texture_new_from_file ("call-background.png", NULL);
53 +  a = clutter_texture_new_from_file ("/usr/share/clutter-toys/foofone/call-background.png", NULL);
54    clutter_group_add (CLUTTER_GROUP(app->screen_dial), a);
55  
56    a = clutter_rectangle_new_with_color (&rect_color);