summaryrefslogtreecommitdiff
path: root/community/xfmedia/xfmedia-exo-0.6.patch
blob: 1de611c8283716ae86b4e5e1dc7a915d1c7b0358 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
diff -wbBur xfmedia-0.9.2/configure xfmedia-0.9.2.my/configure
--- xfmedia-0.9.2/configure	2006-11-27 20:20:59.000000000 +0000
+++ xfmedia-0.9.2.my/configure	2011-01-31 17:15:58.000000000 +0000
@@ -27417,7 +27417,7 @@
 
 
   if test x"$xdt_cv_EXO_check" = x"yes"; then
-    if $PKG_CONFIG --exists "exo-0.3 >= 0.3.0" >/dev/null 2>&1; then
+    if $PKG_CONFIG --exists "exo-1 >= 0.3.0" >/dev/null 2>&1; then
 
 
   # minimum supported version of pkg-config
@@ -27501,22 +27501,22 @@
   fi
 
 
-  { echo "$as_me:$LINENO: checking for exo-0.3 >= 0.3.0" >&5
-echo $ECHO_N "checking for exo-0.3 >= 0.3.0... $ECHO_C" >&6; }
-  if $PKG_CONFIG "--atleast-version=0.3.0" "exo-0.3" >/dev/null 2>&1; then
-    EXO_VERSION=`$PKG_CONFIG --modversion "exo-0.3"`
+  { echo "$as_me:$LINENO: checking for exo-1 >= 0.3.0" >&5
+echo $ECHO_N "checking for exo-1 >= 0.3.0... $ECHO_C" >&6; }
+  if $PKG_CONFIG "--atleast-version=0.3.0" "exo-1" >/dev/null 2>&1; then
+    EXO_VERSION=`$PKG_CONFIG --modversion "exo-1"`
     { echo "$as_me:$LINENO: result: $EXO_VERSION" >&5
 echo "${ECHO_T}$EXO_VERSION" >&6; }
 
     { echo "$as_me:$LINENO: checking EXO_CFLAGS" >&5
 echo $ECHO_N "checking EXO_CFLAGS... $ECHO_C" >&6; }
-    EXO_CFLAGS=`$PKG_CONFIG --cflags "exo-0.3"`
+    EXO_CFLAGS=`$PKG_CONFIG --cflags "exo-1"`
     { echo "$as_me:$LINENO: result: $EXO_CFLAGS" >&5
 echo "${ECHO_T}$EXO_CFLAGS" >&6; }
 
     { echo "$as_me:$LINENO: checking EXO_LIBS" >&5
 echo $ECHO_N "checking EXO_LIBS... $ECHO_C" >&6; }
-    EXO_LIBS=`$PKG_CONFIG --libs "exo-0.3"`
+    EXO_LIBS=`$PKG_CONFIG --libs "exo-1"`
     { echo "$as_me:$LINENO: result: $EXO_LIBS" >&5
 echo "${ECHO_T}$EXO_LIBS" >&6; }
 
@@ -27535,15 +27535,15 @@
 
         EXO_FOUND="yes"
 
-  elif $PKG_CONFIG --exists "exo-0.3" >/dev/null 2>&1; then
-    xdt_cv_version=`$PKG_CONFIG --modversion "exo-0.3"`
+  elif $PKG_CONFIG --exists "exo-1" >/dev/null 2>&1; then
+    xdt_cv_version=`$PKG_CONFIG --modversion "exo-1"`
     { echo "$as_me:$LINENO: result: found, but $xdt_cv_version" >&5
 echo "${ECHO_T}found, but $xdt_cv_version" >&6; }
 
 
-      echo "*** The required package exo-0.3 was found on your system,"
+      echo "*** The required package exo-1 was found on your system,"
       echo "*** but the installed version ($xdt_cv_version) is too old."
-      echo "*** Please upgrade exo-0.3 to atleast version 0.3.0, or adjust"
+      echo "*** Please upgrade exo-1 to atleast version 0.3.0, or adjust"
       echo "*** the PKG_CONFIG_PATH environment variable if you installed"
       echo "*** the new version of the package in a nonstandard prefix so"
       echo "*** pkg-config is able to find it."
@@ -27554,8 +27554,8 @@
 echo "${ECHO_T}not found" >&6; }
 
 
-      echo "*** The required package exo-0.3 was not found on your system."
-      echo "*** Please install exo-0.3 (atleast version 0.3.0) or adjust"
+      echo "*** The required package exo-1 was not found on your system."
+      echo "*** Please install exo-1 (atleast version 0.3.0) or adjust"
       echo "*** the PKG_CONFIG_PATH environment variable if you"
       echo "*** installed the package in a nonstandard prefix so that"
       echo "*** pkg-config is able to find it."
@@ -27564,14 +27564,14 @@
   fi
 
     else
-      { echo "$as_me:$LINENO: checking for optional package exo-0.3 >= 0.3.0" >&5
-echo $ECHO_N "checking for optional package exo-0.3 >= 0.3.0... $ECHO_C" >&6; }
+      { echo "$as_me:$LINENO: checking for optional package exo-1 >= 0.3.0" >&5
+echo $ECHO_N "checking for optional package exo-1 >= 0.3.0... $ECHO_C" >&6; }
       { echo "$as_me:$LINENO: result: not found" >&5
 echo "${ECHO_T}not found" >&6; }
     fi
   else
-    { echo "$as_me:$LINENO: checking for optional package exo-0.3" >&5
-echo $ECHO_N "checking for optional package exo-0.3... $ECHO_C" >&6; }
+    { echo "$as_me:$LINENO: checking for optional package exo-1" >&5
+echo $ECHO_N "checking for optional package exo-1... $ECHO_C" >&6; }
     { echo "$as_me:$LINENO: result: disabled" >&5
 echo "${ECHO_T}disabled" >&6; }
   fi
diff -wbBur xfmedia-0.9.2/src/main.c xfmedia-0.9.2.my/src/main.c
--- xfmedia-0.9.2/src/main.c	2006-11-27 07:21:23.000000000 +0000
+++ xfmedia-0.9.2.my/src/main.c	2011-02-01 11:08:02.000000000 +0000
@@ -388,6 +388,23 @@
     return optind;
 }
 
+/**
+ * exo_str_get_md5_str:
+ * @contents : The string to create a digest of.
+ *
+ * Creates a character array MD5 digestof the string
+ * @contents.
+ *
+ * Return value: A newly-allocated character array which
+ *               should be free with g_free() when no
+ *               longer needed.
+ **/
+gchar*
+exo_str_get_md5_str (const gchar *contents)
+{
+  return g_compute_checksum_for_string (G_CHECKSUM_MD5, contents, -1);
+}
+
 int
 main(int argc, char **argv)
 {
diff -wbBur xfmedia-0.9.2/src/mediamarks.c xfmedia-0.9.2.my/src/mediamarks.c
--- xfmedia-0.9.2/src/mediamarks.c	2006-11-27 07:21:23.000000000 +0000
+++ xfmedia-0.9.2.my/src/mediamarks.c	2011-02-01 11:04:42.000000000 +0000
@@ -684,9 +684,9 @@
     
     render = exo_cell_renderer_ellipsized_text_new();
     if(gtk_major_version == 2 && gtk_minor_version >= 6)
-		g_object_set(G_OBJECT(render), "ellipsize", EXO_PANGO_ELLIPSIZE_END, NULL);
+		g_object_set(G_OBJECT(render), "ellipsize", PANGO_ELLIPSIZE_END, NULL);
 	else {
-		g_object_set(G_OBJECT(render), "ellipsize", EXO_PANGO_ELLIPSIZE_END,
+		g_object_set(G_OBJECT(render), "ellipsize", PANGO_ELLIPSIZE_END,
 				"ellipsize-set", TRUE, NULL);
 	}
     gtk_tree_view_column_pack_start(col, render, TRUE);
@@ -1693,9 +1693,9 @@
     
     render = exo_cell_renderer_ellipsized_text_new();
     if(gtk_major_version == 2 && gtk_minor_version >= 6)
-		g_object_set(G_OBJECT(render), "ellipsize", EXO_PANGO_ELLIPSIZE_END, NULL);
+		g_object_set(G_OBJECT(render), "ellipsize", PANGO_ELLIPSIZE_END, NULL);
 	else {
-		g_object_set(G_OBJECT(render), "ellipsize", EXO_PANGO_ELLIPSIZE_END,
+		g_object_set(G_OBJECT(render), "ellipsize", PANGO_ELLIPSIZE_END,
 				"ellipsize-set", TRUE, NULL);
 	}
     gtk_tree_view_column_pack_start(col, render, TRUE);
@@ -1705,9 +1705,9 @@
     
     render = exo_cell_renderer_ellipsized_text_new();
     if(gtk_major_version == 2 && gtk_minor_version >= 6)
-		g_object_set(G_OBJECT(render), "ellipsize", EXO_PANGO_ELLIPSIZE_END, NULL);
+		g_object_set(G_OBJECT(render), "ellipsize", PANGO_ELLIPSIZE_END, NULL);
 	else {
-		g_object_set(G_OBJECT(render), "ellipsize", EXO_PANGO_ELLIPSIZE_END,
+		g_object_set(G_OBJECT(render), "ellipsize", PANGO_ELLIPSIZE_END,
 				"ellipsize-set", TRUE, NULL);
 	}
     col = gtk_tree_view_column_new_with_attributes(_("Location"), render,
diff -wbBur xfmedia-0.9.2/src/playlist.c xfmedia-0.9.2.my/src/playlist.c
--- xfmedia-0.9.2/src/playlist.c	2006-11-27 07:21:22.000000000 +0000
+++ xfmedia-0.9.2.my/src/playlist.c	2011-02-01 11:04:47.000000000 +0000
@@ -1409,9 +1409,9 @@
     
     render = exo_cell_renderer_ellipsized_text_new();
 	if(gtk_major_version == 2 && gtk_minor_version >= 6)
-		g_object_set(G_OBJECT(render), "ellipsize", EXO_PANGO_ELLIPSIZE_END, NULL);
+		g_object_set(G_OBJECT(render), "ellipsize", PANGO_ELLIPSIZE_END, NULL);
 	else {
-		g_object_set(G_OBJECT(render), "ellipsize", EXO_PANGO_ELLIPSIZE_END,
+		g_object_set(G_OBJECT(render), "ellipsize", PANGO_ELLIPSIZE_END,
 				"ellipsize-set", TRUE, NULL);
 	}
     col = gtk_tree_view_column_new_with_attributes(_("Title"), render, "text",
diff -wbBur xfmedia-0.9.2/src/settings-dialog.c xfmedia-0.9.2.my/src/settings-dialog.c
--- xfmedia-0.9.2/src/settings-dialog.c	2006-11-27 07:21:23.000000000 +0000
+++ xfmedia-0.9.2.my/src/settings-dialog.c	2011-02-01 11:04:53.000000000 +0000
@@ -552,7 +552,7 @@
     render = exo_cell_renderer_ellipsized_text_new();
     col = gtk_tree_view_column_new_with_attributes("name", render,
             "text", PLUGINS_NAME, NULL);
-    g_object_set(G_OBJECT(render), "ellipsize", EXO_PANGO_ELLIPSIZE_END,
+    g_object_set(G_OBJECT(render), "ellipsize", PANGO_ELLIPSIZE_END,
             "ellipsize-set", TRUE, NULL);
     gtk_tree_view_append_column(GTK_TREE_VIEW(treeview), col);
     
diff -wbBur xfmedia-0.9.2/src/xfmedia-playlist-queue.c xfmedia-0.9.2.my/src/xfmedia-playlist-queue.c
--- xfmedia-0.9.2/src/xfmedia-playlist-queue.c	2006-11-27 07:21:22.000000000 +0000
+++ xfmedia-0.9.2.my/src/xfmedia-playlist-queue.c	2011-02-01 11:04:57.000000000 +0000
@@ -171,7 +171,7 @@
     
     render = exo_cell_renderer_ellipsized_text_new();
     g_object_set(G_OBJECT(render),
-                 "ellipsize", EXO_PANGO_ELLIPSIZE_END,
+                 "ellipsize", PANGO_ELLIPSIZE_END,
                  "ellipsize-set", TRUE,
                  NULL);
     col = gtk_tree_view_column_new_with_attributes("display-name", render,