1 diff -ur xfburn-0.4.3/configure.in xfburn-0.4.3-4ui/configure.in
2 --- xfburn-0.4.3/configure.in 2011-02-26 20:25:11.173013553 +0100
3 +++ xfburn-0.4.3-4ui/configure.in 2011-02-26 19:16:30.409029549 +0100
5 XDT_CHECK_PACKAGE([LIBISOFS], [libisofs-1], [0.6.2])
6 XDT_CHECK_PACKAGE([GTHREAD], [gthread-2.0], [2.6.0])
7 XDT_CHECK_PACKAGE([GTK], [gtk+-2.0], [2.10.0])
8 -XDT_CHECK_PACKAGE([LIBXFCEGUI4], [libxfcegui4-1.0], [4.4.0])
9 +XDT_CHECK_PACKAGE([LIBXFCE4UI], [libxfce4ui-1], [4.8.0])
10 XDT_CHECK_PACKAGE([EXO], [exo-0.3], [0.3.4], [], [XDT_CHECK_PACKAGE([EXO], [exo-1], [0.3.100])])
11 XDT_CHECK_PACKAGE([LIBGIO], [gio-2.0], [2.22.0])
12 XDT_CHECK_PACKAGE([LIBGIOUNIX], [gio-unix-2.0], [2.16.0])
13 diff -ur xfburn-0.4.3/xfburn/Makefile.am xfburn-0.4.3-4ui/xfburn/Makefile.am
14 --- xfburn-0.4.3/xfburn/Makefile.am 2011-02-26 20:25:11.174013553 +0100
15 +++ xfburn-0.4.3-4ui/xfburn/Makefile.am 2011-02-26 19:17:52.972029553 +0100
20 - $(LIBXFCEGUI4_CFLAGS) \
21 + $(LIBXFCE4UI_CFLAGS) \
29 - $(LIBXFCEGUI4_LIBS) \
30 + $(LIBXFCE4UI_LIBS) \
34 diff -ur xfburn-0.4.3/xfburn/xfburn-audio-composition.c xfburn-0.4.3-4ui/xfburn/xfburn-audio-composition.c
35 --- xfburn-0.4.3/xfburn/xfburn-audio-composition.c 2011-02-26 20:25:11.175013553 +0100
36 +++ xfburn-0.4.3-4ui/xfburn/xfburn-audio-composition.c 2011-02-26 20:12:31.066324063 +0100
40 #include <libxfce4util/libxfce4util.h>
41 -#include <libxfcegui4/libxfcegui4.h>
42 +#include <libxfce4ui/libxfce4ui.h>
47 dialog = xfburn_burn_audio_cd_composition_dialog_new (src);
50 - xfce_err (_("Cannot burn audio onto a DVD."));
51 + xfce_dialog_show_error (NULL, NULL, _("Cannot burn audio onto a DVD."));
57 XfburnAudioCompositionPrivate *priv = XFBURN_AUDIO_COMPOSITION_GET_PRIVATE (dc);
59 - xfce_info (xfburn_transcoder_get_description (priv->trans));
60 + xfce_dialog_show_info(NULL, NULL, xfburn_transcoder_get_description (priv->trans));
64 @@ -1089,14 +1089,14 @@
65 g_assert (error != NULL);
67 if (error->domain != XFBURN_ERROR) {
68 - xfce_warn (error->message);
69 + xfce_dialog_show_warning(NULL, NULL, error->message);
73 if (g_hash_table_lookup (priv->warned_about, GINT_TO_POINTER (error->code)) == NULL) {
74 g_hash_table_insert (priv->warned_about, GINT_TO_POINTER (error->code), did_warn);
76 - xfce_warn (error->message);
77 + xfce_dialog_show_warning(NULL, NULL, error->message);
84 if (file_exists_on_same_level (model, tree_path, FALSE, name)) {
85 - xfce_err (_("A file with the same name is already present in the composition."));
86 + xfce_dialog_show_error (NULL, NULL, _("A file with the same name is already present in the composition."));
88 gtk_tree_path_free (tree_path);
91 if (g_hash_table_lookup (priv->warned_about, GINT_TO_POINTER (err_code)) == NULL) {
92 g_hash_table_insert (priv->warned_about, GINT_TO_POINTER (err_code), did_warn);
94 - xfce_err (_("You can only have a maximum of 99 tracks."));
95 + xfce_dialog_show_error (NULL, NULL, _("You can only have a maximum of 99 tracks."));
102 if (file_exists_on_same_level (model, path_level, FALSE, name)) {
103 - xfce_warn (_("A file named \"%s\" already exists in this directory, the file hasn't been added."), name);
104 + xfce_dialog_warning(NULL, _("A file named \"%s\" already exists in this directory, the file hasn't been added."), name);
108 diff -ur xfburn-0.4.3/xfburn/xfburn-audio-disc-usage.c xfburn-0.4.3-4ui/xfburn/xfburn-audio-disc-usage.c
109 --- xfburn-0.4.3/xfburn/xfburn-audio-disc-usage.c 2009-10-24 23:18:10.000000000 +0200
110 +++ xfburn-0.4.3-4ui/xfburn/xfburn-audio-disc-usage.c 2011-02-26 16:21:03.534320584 +0100
114 #include <libxfce4util/libxfce4util.h>
115 -#include <libxfcegui4/libxfcegui4.h>
117 #include "xfburn-disc-usage.h"
118 #include "xfburn-audio-disc-usage.h"
119 diff -ur xfburn-0.4.3/xfburn/xfburn-blank-dialog.c xfburn-0.4.3-4ui/xfburn/xfburn-blank-dialog.c
120 --- xfburn-0.4.3/xfburn/xfburn-blank-dialog.c 2011-02-26 20:25:11.176013553 +0100
121 +++ xfburn-0.4.3-4ui/xfburn/xfburn-blank-dialog.c 2011-02-26 20:13:58.518013555 +0100
124 #endif /* !HAVE_CONFIG_H */
126 -#include <libxfcegui4/libxfcegui4.h>
127 +#include <libxfce4ui/libxfce4ui.h>
132 g_signal_connect (G_OBJECT (priv->device_box), "volume-changed", G_CALLBACK (cb_volume_changed), obj);
133 gtk_widget_show (priv->device_box);
135 - frame = xfce_create_framebox_with_content (_("Burning device"), priv->device_box);
136 + frame = xfce_gtk_frame_box_new_with_content (_("Burning device"), priv->device_box);
137 gtk_widget_show (frame);
138 gtk_box_pack_start (box, frame, FALSE, FALSE, BORDER);
141 gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (priv->combo_type), cell, "text", BLANK_COMBO_NAME_COLUMN, NULL);
142 gtk_widget_show (priv->combo_type);
144 - frame = xfce_create_framebox_with_content (_("Blank mode"), priv->combo_type);
145 + frame = xfce_gtk_frame_box_new_with_content (_("Blank mode"), priv->combo_type);
146 gtk_widget_show (frame);
147 gtk_box_pack_start (box, frame, FALSE, FALSE, BORDER);
150 vbox = gtk_vbox_new (FALSE, 0);
151 gtk_widget_show (vbox);
153 - frame = xfce_create_framebox_with_content (_("Options"), vbox);
154 + frame = xfce_gtk_frame_box_new_with_content (_("Options"), vbox);
155 gtk_widget_show (frame);
156 gtk_box_pack_start (box, frame, FALSE, FALSE, BORDER);
159 gtk_widget_show (button);
160 gtk_dialog_add_action_widget (GTK_DIALOG (obj), button, GTK_RESPONSE_CANCEL);
162 - button = xfce_create_mixed_button ("xfburn-blank-cdrw", _("_Blank"));
163 + button = xfce_gtk_button_new_mixed ("xfburn-blank-cdrw", _("_Blank"));
164 gtk_widget_show (button);
165 gtk_dialog_add_action_widget (GTK_DIALOG (obj), button, GTK_RESPONSE_OK);
166 GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
167 --- xfburn-0.4.3/xfburn/xfburn-blank-dialog.h~ 2009-10-24 23:18:10.000000000 +0200
168 +++ xfburn-0.4.3/xfburn/xfburn-blank-dialog.h 2011-02-26 21:17:54.580716604 +0100
170 #include "xfburn-global.h"
173 +#include <libxfce4ui/libxfce4ui.h>
177 diff -ur xfburn-0.4.3/xfburn/xfburn-burn-audio-cd-composition-dialog.c xfburn-0.4.3-4ui/xfburn/xfburn-burn-audio-cd-composition-dialog.c
178 --- xfburn-0.4.3/xfburn/xfburn-burn-audio-cd-composition-dialog.c 2009-10-30 02:10:13.000000000 +0100
179 +++ xfburn-0.4.3-4ui/xfburn/xfburn-burn-audio-cd-composition-dialog.c 2011-02-26 20:14:58.426013553 +0100
181 g_signal_connect (G_OBJECT (priv->device_box), "volume-changed", G_CALLBACK (cb_volume_changed), obj);
182 gtk_widget_show (priv->device_box);
184 - priv->frame_device = xfce_create_framebox_with_content (_("Burning device"), priv->device_box);
185 + priv->frame_device = xfce_gtk_frame_box_new_with_content (_("Burning device"), priv->device_box);
186 gtk_widget_show (priv->frame_device);
187 gtk_box_pack_start (box, priv->frame_device, FALSE, FALSE, BORDER);
190 vbox = gtk_vbox_new (FALSE, 0);
191 gtk_widget_show (vbox);
193 - frame = xfce_create_framebox_with_content (_("Composition name"), vbox);
194 + frame = xfce_gtk_frame_box_new_with_content (_("Composition name"), vbox);
195 gtk_widget_show (frame);
196 gtk_box_pack_start (box, frame, FALSE, FALSE, BORDER);
199 vbox = gtk_vbox_new (FALSE, 0);
200 gtk_widget_show (vbox);
202 - frame = xfce_create_framebox_with_content (_("Options"), vbox);
203 + frame = xfce_gtk_frame_box_new_with_content (_("Options"), vbox);
204 gtk_widget_show (frame);
205 gtk_box_pack_start (box, frame, FALSE, FALSE, BORDER);
208 gtk_widget_show (button);
209 gtk_dialog_add_action_widget (GTK_DIALOG (obj), button, GTK_RESPONSE_CANCEL);
211 - priv->button_proceed = button = xfce_create_mixed_button ("xfburn-burn-cd", _("_Burn Composition"));
212 + priv->button_proceed = button = xfce_gtk_button_new_mixed ("xfburn-burn-cd", _("_Burn Composition"));
214 gtk_widget_show (button);
215 gtk_dialog_add_action_widget (GTK_DIALOG (obj), button, GTK_RESPONSE_OK);
216 diff -ur xfburn-0.4.3/xfburn/xfburn-burn-audio-cd-composition-dialog.h xfburn-0.4.3-4ui/xfburn/xfburn-burn-audio-cd-composition-dialog.h
217 --- xfburn-0.4.3/xfburn/xfburn-burn-audio-cd-composition-dialog.h 2009-10-24 23:18:10.000000000 +0200
218 +++ xfburn-0.4.3-4ui/xfburn/xfburn-burn-audio-cd-composition-dialog.h 2011-02-26 16:21:06.852320585 +0100
220 #endif /* !HAVE_CONFIG_H */
223 -#include <libxfcegui4/libxfcegui4.h>
224 +#include <libxfce4ui/libxfce4ui.h>
226 #include <libisofs.h>
228 diff -ur xfburn-0.4.3/xfburn/xfburn-burn-data-cd-composition-dialog.h xfburn-0.4.3-4ui/xfburn/xfburn-burn-data-cd-composition-dialog.h
229 --- xfburn-0.4.3/xfburn/xfburn-burn-data-cd-composition-dialog.h 2009-10-24 23:18:10.000000000 +0200
230 +++ xfburn-0.4.3-4ui/xfburn/xfburn-burn-data-cd-composition-dialog.h 2011-02-26 16:21:06.854320585 +0100
232 #endif /* !HAVE_CONFIG_H */
235 -#include <libxfcegui4/libxfcegui4.h>
236 +#include <libxfce4ui/libxfce4ui.h>
238 #include <libisofs.h>
239 #include "xfburn-burn-data-composition-base-dialog.h"
240 diff -ur xfburn-0.4.3/xfburn/xfburn-burn-data-composition-base-dialog.c xfburn-0.4.3-4ui/xfburn/xfburn-burn-data-composition-base-dialog.c
241 --- xfburn-0.4.3/xfburn/xfburn-burn-data-composition-base-dialog.c 2009-10-30 02:11:13.000000000 +0100
242 +++ xfburn-0.4.3-4ui/xfburn/xfburn-burn-data-composition-base-dialog.c 2011-02-26 20:14:13.313013558 +0100
245 g_signal_connect (G_OBJECT (priv->device_box), "volume-changed", G_CALLBACK (cb_volume_changed), obj);
247 - priv->frame_device = xfce_create_framebox_with_content (_("Burning device"), priv->device_box);
248 + priv->frame_device = xfce_gtk_frame_box_new_with_content (_("Burning device"), priv->device_box);
249 gtk_widget_show (priv->frame_device);
250 gtk_box_pack_start (box, priv->frame_device, FALSE, FALSE, BORDER);
253 vbox = gtk_vbox_new (FALSE, 0);
254 gtk_widget_show (vbox);
256 - frame = xfce_create_framebox_with_content (_("Composition name"), vbox);
257 + frame = xfce_gtk_frame_box_new_with_content (_("Composition name"), vbox);
258 gtk_widget_show (frame);
259 gtk_box_pack_start (box, frame, FALSE, FALSE, BORDER);
262 vbox = gtk_vbox_new (FALSE, 0);
263 gtk_widget_show (vbox);
265 - frame = xfce_create_framebox_with_content (_("Options"), vbox);
266 + frame = xfce_gtk_frame_box_new_with_content (_("Options"), vbox);
267 gtk_widget_show (frame);
268 gtk_box_pack_start (box, frame, FALSE, FALSE, BORDER);
271 gtk_widget_show (button);
272 gtk_dialog_add_action_widget (GTK_DIALOG (obj), button, GTK_RESPONSE_CANCEL);
274 - priv->button_proceed = button = xfce_create_mixed_button ("xfburn-burn-cd", _("_Burn Composition"));
275 + priv->button_proceed = button = xfce_gtk_button_new_mixed ("xfburn-burn-cd", _("_Burn Composition"));
277 * Disabled: change button_proceed functionality
278 button = create_proceed_button (obj, "xfburn-burn-cd", "");
281 if (iso_image_create_burn_source (priv->image, write_opts, &src) < 0) {
282 /* could not create source */
283 - xfce_err (_("Could not create ISO source structure."));
284 + xfce_dialog_show_error (NULL, NULL, _("Could not create ISO source structure."));
288 diff -ur xfburn-0.4.3/xfburn/xfburn-burn-data-composition-base-dialog.h xfburn-0.4.3-4ui/xfburn/xfburn-burn-data-composition-base-dialog.h
289 --- xfburn-0.4.3/xfburn/xfburn-burn-data-composition-base-dialog.h 2009-10-24 23:18:10.000000000 +0200
290 +++ xfburn-0.4.3-4ui/xfburn/xfburn-burn-data-composition-base-dialog.h 2011-02-26 16:21:06.856320585 +0100
292 #endif /* !HAVE_CONFIG_H */
295 -#include <libxfcegui4/libxfcegui4.h>
296 +#include <libxfce4ui/libxfce4ui.h>
298 #include <libisofs.h>
300 diff -ur xfburn-0.4.3/xfburn/xfburn-burn-data-dvd-composition-dialog.h xfburn-0.4.3-4ui/xfburn/xfburn-burn-data-dvd-composition-dialog.h
301 --- xfburn-0.4.3/xfburn/xfburn-burn-data-dvd-composition-dialog.h 2009-10-24 23:18:10.000000000 +0200
302 +++ xfburn-0.4.3-4ui/xfburn/xfburn-burn-data-dvd-composition-dialog.h 2011-02-26 16:21:06.857320585 +0100
304 #endif /* !HAVE_CONFIG_H */
307 -#include <libxfcegui4/libxfcegui4.h>
308 +#include <libxfce4ui/libxfce4ui.h>
310 #include <libisofs.h>
311 #include "xfburn-burn-data-composition-base-dialog.h"
312 diff -ur xfburn-0.4.3/xfburn/xfburn-burn-image-dialog.c xfburn-0.4.3-4ui/xfburn/xfburn-burn-image-dialog.c
313 --- xfburn-0.4.3/xfburn/xfburn-burn-image-dialog.c 2009-10-30 03:47:20.000000000 +0100
314 +++ xfburn-0.4.3-4ui/xfburn/xfburn-burn-image-dialog.c 2011-02-26 20:14:24.039013553 +0100
316 gtk_file_chooser_add_filter (GTK_FILE_CHOOSER (priv->chooser_image), filter);
317 gtk_file_chooser_set_filter (GTK_FILE_CHOOSER (priv->chooser_image), filter);
319 - frame = xfce_create_framebox_with_content (_("Image to burn"), priv->chooser_image);
320 + frame = xfce_gtk_frame_box_new_with_content (_("Image to burn"), priv->chooser_image);
321 gtk_widget_show (frame);
322 gtk_box_pack_start (box, frame, FALSE, FALSE, BORDER);
325 priv->device_box = xfburn_device_box_new (SHOW_CD_WRITERS | SHOW_CDRW_WRITERS | SHOW_DVD_WRITERS | SHOW_MODE_SELECTION | SHOW_SPEED_SELECTION);
326 gtk_widget_show (priv->device_box);
328 - frame = xfce_create_framebox_with_content (_("Burning device"), priv->device_box);
329 + frame = xfce_gtk_frame_box_new_with_content (_("Burning device"), priv->device_box);
330 gtk_widget_show (frame);
331 gtk_box_pack_start (box, frame, FALSE, FALSE, BORDER);
334 vbox = gtk_vbox_new (FALSE, 0);
335 gtk_widget_show (vbox);
337 - frame = xfce_create_framebox_with_content (_("Options"), vbox);
338 + frame = xfce_gtk_frame_box_new_with_content (_("Options"), vbox);
339 gtk_widget_show (frame);
340 gtk_box_pack_start (box, frame, FALSE, FALSE, BORDER);
343 gtk_widget_show (button);
344 gtk_dialog_add_action_widget (GTK_DIALOG (obj), button, GTK_RESPONSE_CANCEL);
346 - priv->burn_button = xfce_create_mixed_button ("xfburn-burn-cd", _("_Burn image"));
347 + priv->burn_button = xfce_gtk_button_new_mixed ("xfburn-burn-cd", _("_Burn image"));
348 gtk_widget_show (priv->burn_button);
349 g_signal_connect (G_OBJECT (priv->burn_button), "clicked", G_CALLBACK (cb_clicked_ok), obj);
350 gtk_container_add (GTK_CONTAINER( GTK_DIALOG(obj)->action_area), priv->burn_button);
353 burn_image_dialog_error (XfburnBurnImageDialog * dialog, const gchar * msg_error)
355 - xfce_err (msg_error);
356 + xfce_dialog_show_error (NULL, NULL, msg_error);
360 diff -ur xfburn-0.4.3/xfburn/xfburn-burn-image-dialog.h xfburn-0.4.3-4ui/xfburn/xfburn-burn-image-dialog.h
361 --- xfburn-0.4.3/xfburn/xfburn-burn-image-dialog.h 2009-10-24 23:18:10.000000000 +0200
362 +++ xfburn-0.4.3-4ui/xfburn/xfburn-burn-image-dialog.h 2011-02-26 16:21:06.859320585 +0100
367 -#include <libxfcegui4/libxfcegui4.h>
368 +#include <libxfce4ui/libxfce4ui.h>
370 #include "xfburn-global.h"
372 diff -ur xfburn-0.4.3/xfburn/xfburn-copy-cd-dialog.h xfburn-0.4.3-4ui/xfburn/xfburn-copy-cd-dialog.h
373 --- xfburn-0.4.3/xfburn/xfburn-copy-cd-dialog.h 2009-10-24 23:18:10.000000000 +0200
374 +++ xfburn-0.4.3-4ui/xfburn/xfburn-copy-cd-dialog.h 2011-02-26 16:21:06.866320585 +0100
379 -#include <libxfcegui4/libxfcegui4.h>
380 +#include <libxfce4ui/libxfce4ui.h>
384 diff -ur xfburn-0.4.3/xfburn/xfburn-copy-dvd-dialog.h xfburn-0.4.3-4ui/xfburn/xfburn-copy-dvd-dialog.h
385 --- xfburn-0.4.3/xfburn/xfburn-copy-dvd-dialog.h 2009-10-24 23:18:10.000000000 +0200
386 +++ xfburn-0.4.3-4ui/xfburn/xfburn-copy-dvd-dialog.h 2011-02-26 16:21:06.869320585 +0100
391 -#include <libxfcegui4/libxfcegui4.h>
392 +#include <libxfce4ui/libxfce4ui.h>
396 diff -ur xfburn-0.4.3/xfburn/xfburn-data-composition.c xfburn-0.4.3-4ui/xfburn/xfburn-data-composition.c
397 --- xfburn-0.4.3/xfburn/xfburn-data-composition.c 2011-02-26 20:25:11.177013553 +0100
398 +++ xfburn-0.4.3-4ui/xfburn/xfburn-data-composition.c 2011-02-26 20:11:15.445153553 +0100
402 #include <libxfce4util/libxfce4util.h>
403 -#include <libxfcegui4/libxfcegui4.h>
404 +#include <libxfce4ui/libxfce4ui.h>
409 GtkTreePath *real_path;
411 if (strlen (newtext) == 0) {
412 - xfce_err (_("You must give a name to the file."));
413 + xfce_dialog_show_error (NULL, NULL, _("You must give a name to the file."));
419 if (gtk_tree_model_get_iter (model, &iter, real_path)) {
420 if (file_exists_on_same_level (model, real_path, TRUE, newtext)) {
421 - xfce_err (_("A file with the same name is already present in the composition."));
422 + xfce_dialog_show_error (NULL, NULL, _("A file with the same name is already present in the composition."));
425 gtk_tree_store_set (GTK_TREE_STORE (model), &iter, DATA_COMPOSITION_COLUMN_CONTENT, newtext, -1);
426 @@ -1116,7 +1116,7 @@
428 gdk_threads_enter ();
429 if (file_exists_on_same_level (model, tree_path, FALSE, name)) {
430 - xfce_err (_("A file with the same name is already present in the composition."));
431 + xfce_dialog_show_error (NULL, NULL, _("A file with the same name is already present in the composition."));
433 gtk_tree_path_free (tree_path);
434 gdk_threads_leave ();
435 @@ -1195,7 +1195,7 @@
437 if (s.st_size > MAXIMUM_ISO_FILE_SIZE) {
438 gdk_threads_enter ();
439 - xfce_err (_("%s cannot be added to the composition, because it exceeds the maximum allowed file size for iso9660."), path);
440 + xfce_dialog_show_error (NULL, NULL, _("%s cannot be added to the composition, because it exceeds the maximum allowed file size for iso9660."), path);
441 gdk_threads_leave ();
444 @@ -1448,7 +1448,7 @@
447 if (file_exists_on_same_level (model, path_level, FALSE, name)) {
448 - xfce_warn (_("A file named \"%s\" already exists in this directory, the file hasn't been added."), name);
449 + xfce_dialog_show_warning(NULL, NULL, _("A file named \"%s\" already exists in this directory, the file hasn't been added."), name);
453 @@ -1861,7 +1861,7 @@
456 /* The first string is the renamed name, the second one the original name */
457 - xfce_warn (_("Duplicate filename '%s' for '%s'"), name, src);
458 + xfce_dialog_show_warning(NULL, NULL, _("Duplicate filename '%s' for '%s'"), name, src);
462 diff -ur xfburn-0.4.3/xfburn/xfburn-data-disc-usage.c xfburn-0.4.3-4ui/xfburn/xfburn-data-disc-usage.c
463 --- xfburn-0.4.3/xfburn/xfburn-data-disc-usage.c 2009-10-24 23:18:10.000000000 +0200
464 +++ xfburn-0.4.3-4ui/xfburn/xfburn-data-disc-usage.c 2011-02-26 16:21:03.628320584 +0100
468 #include <libxfce4util/libxfce4util.h>
469 -#include <libxfcegui4/libxfcegui4.h>
471 #include "xfburn-disc-usage.h"
472 #include "xfburn-data-disc-usage.h"
473 diff -ur xfburn-0.4.3/xfburn/xfburn-device-box.c xfburn-0.4.3-4ui/xfburn/xfburn-device-box.c
474 --- xfburn-0.4.3/xfburn/xfburn-device-box.c 2011-02-26 20:25:11.178013553 +0100
475 +++ xfburn-0.4.3-4ui/xfburn/xfburn-device-box.c 2011-02-26 16:21:03.642320584 +0100
479 #include <libxfce4util/libxfce4util.h>
480 -#include <libxfcegui4/libxfcegui4.h>
482 #include "xfburn-device-list.h"
483 #include "xfburn-device-box.h"
484 diff -ur xfburn-0.4.3/xfburn/xfburn-directory-browser.c xfburn-0.4.3-4ui/xfburn/xfburn-directory-browser.c
485 --- xfburn-0.4.3/xfburn/xfburn-directory-browser.c 2011-02-26 20:25:11.182013553 +0100
486 +++ xfburn-0.4.3-4ui/xfburn/xfburn-directory-browser.c 2011-02-26 16:21:03.667320584 +0100
490 #include <libxfce4util/libxfce4util.h>
491 -#include <libxfcegui4/libxfcegui4.h>
495 diff -ur xfburn-0.4.3/xfburn/xfburn-disc-usage.c xfburn-0.4.3-4ui/xfburn/xfburn-disc-usage.c
496 --- xfburn-0.4.3/xfburn/xfburn-disc-usage.c 2009-10-24 23:18:10.000000000 +0200
497 +++ xfburn-0.4.3-4ui/xfburn/xfburn-disc-usage.c 2011-02-26 20:14:37.314013551 +0100
501 #include <libxfce4util/libxfce4util.h>
502 -#include <libxfcegui4/libxfcegui4.h>
503 +#include <libxfce4ui/libxfce4ui.h>
505 #include "xfburn-disc-usage.h"
506 #include "xfburn-global.h"
508 gtk_box_pack_start (GTK_BOX (disc_usage), disc_usage->combo, FALSE, FALSE, BORDER);
509 gtk_widget_show (disc_usage->combo);
511 - disc_usage->button = xfce_create_mixed_button (XFBURN_STOCK_BURN_CD, _("Proceed to Burn"));
512 + disc_usage->button = xfce_gtk_button_new_mixed (XFBURN_STOCK_BURN_CD, _("Proceed to Burn"));
513 gtk_box_pack_start (GTK_BOX (disc_usage), disc_usage->button, FALSE, FALSE, BORDER);
514 gtk_widget_set_sensitive (disc_usage->button, FALSE);
515 gtk_widget_show (disc_usage->button);
517 if (du->size <= class->labels[gtk_combo_box_get_active (GTK_COMBO_BOX (du->combo))].size) {
518 g_signal_emit (G_OBJECT (du), signals[BEGIN_BURN], 0);
520 - xfce_err (_("You are trying to burn more onto the disc than it can hold."));
521 + xfce_dialog_show_error (NULL, NULL, _("You are trying to burn more onto the disc than it can hold."));
525 diff -ur xfburn-0.4.3/xfburn/xfburn-file-browser.c xfburn-0.4.3-4ui/xfburn/xfburn-file-browser.c
526 --- xfburn-0.4.3/xfburn/xfburn-file-browser.c 2009-10-24 23:18:10.000000000 +0200
527 +++ xfburn-0.4.3-4ui/xfburn/xfburn-file-browser.c 2011-02-26 16:21:03.678320584 +0100
531 #include <libxfce4util/libxfce4util.h>
532 -#include <libxfcegui4/libxfcegui4.h>
534 #include "xfburn-file-browser.h"
535 #include "xfburn-fs-browser.h"
536 diff -ur xfburn-0.4.3/xfburn/xfburn-fs-browser.c xfburn-0.4.3-4ui/xfburn/xfburn-fs-browser.c
537 --- xfburn-0.4.3/xfburn/xfburn-fs-browser.c 2009-10-24 23:18:10.000000000 +0200
538 +++ xfburn-0.4.3-4ui/xfburn/xfburn-fs-browser.c 2011-02-26 16:21:03.684320584 +0100
543 -#include <libxfcegui4/libxfcegui4.h>
544 #include <libxfce4util/libxfce4util.h>
546 #include "xfburn-fs-browser.h"
547 diff -ur xfburn-0.4.3/xfburn/xfburn-main.c xfburn-0.4.3-4ui/xfburn/xfburn-main.c
548 --- xfburn-0.4.3/xfburn/xfburn-main.c 2011-02-26 20:25:11.186013553 +0100
549 +++ xfburn-0.4.3-4ui/xfburn/xfburn-main.c 2011-02-26 20:10:39.291239575 +0100
553 #include <libxfce4util/libxfce4util.h>
554 -#include <libxfcegui4/libxfcegui4.h>
555 +#include <libxfce4ui/libxfce4ui.h>
561 if (!burn_initialize ()) {
562 g_critical ("Unable to initialize libburn");
563 - xfce_err (_("Unable to initialize the burning backend."));
564 + xfce_dialog_show_error (NULL, NULL, _("Unable to initialize the burning backend."));
565 gdk_threads_leave ();
570 error_msg = xfburn_udev_manager_create_global ();
572 - xfce_err (error_msg);
573 + xfce_dialog_show_error (NULL, NULL, error_msg);
574 gdk_threads_leave ();
580 if (!xfburn_transcoder_is_initialized (transcoder, &error)) {
581 - xfce_warn (_("Failed to initialize %s transcoder: %s\n\t(falling back to basic implementation)"), xfburn_transcoder_get_name (transcoder), error->message);
582 + xfce_dialog_show_warning(NULL, NULL, _("Failed to initialize %s transcoder: %s\n\t(falling back to basic implementation)"), xfburn_transcoder_get_name (transcoder), error->message);
583 g_error_free (error);
584 g_object_unref (transcoder);
585 transcoder = XFBURN_TRANSCODER (xfburn_transcoder_basic_new ());
587 if (g_file_test (image_fullname, G_FILE_TEST_EXISTS))
588 xfburn_burn_image_dialog_set_filechooser_name (dialog, image_fullname);
590 - xfce_err ( g_strdup_printf ( _("Image file '%s' does not exist."), image_fullname));
591 + xfce_dialog_show_error (NULL, NULL, g_strdup_printf ( _("Image file '%s' does not exist."), image_fullname));
594 gtk_dialog_run (GTK_DIALOG (dialog));
595 diff -ur xfburn-0.4.3/xfburn/xfburn-main-window.c xfburn-0.4.3-4ui/xfburn/xfburn-main-window.c
596 --- xfburn-0.4.3/xfburn/xfburn-main-window.c 2009-12-04 08:35:12.000000000 +0100
597 +++ xfburn-0.4.3-4ui/xfburn/xfburn-main-window.c 2011-02-26 20:22:57.325013554 +0100
601 #include <libxfce4util/libxfce4util.h>
602 -#include <libxfcegui4/libxfcegui4.h>
603 +#include <libxfce4ui/libxfce4ui.h>
607 @@ -479,79 +479,69 @@
609 action_about (GtkAction * action, XfburnMainWindow * window)
611 - XfceAboutInfo *info;
617 - static const struct
619 - gchar *name, *email, *language;
620 - } translators[] = {
621 - {"Mohamed Magdy", "mohamed.m.k@gmail.com", "ar",},
622 - {"Pau Rul lan Ferragut", "paurullan@bulma.net", "ca",},
623 - {"Michal Várady", "miko.vaji@gmail.com", "cs",},
624 - {"Enrico Tröger", "enrico.troeger@uvena.de", "de",},
625 - {"Fabian Nowak", "timstery@arcor.de", "de",},
626 - {"Nico Schümann", "nico@prog.nico22.de", "de",},
627 - {"Stavros Giannouris", "stavrosg2002@freemail.gr", "el",},
628 - {"Jeff Bailes", "thepizzaking@gmail.com", "en_GB",},
629 - {"Diego Rodriguez", "dieymir@yahoo.es", "es",},
630 - {"Kristjan Siimson", "kristjan.siimson@gmail.com", "et",},
631 - {"Piarres Beobide", "pi@beobide.net", "eu",},
632 - {"Jari Rahkonen", "jari.rahkonen@pp1.inet.fi", "fi",},
633 - {"Etienne Collet", "xanaxlnx@gmail.com", "fr",},
634 - {"Maximilian Schleiss", "maximilian@xfce.org", "fr",},
635 - {"Attila Szervác", "sas@321.hu", "hu",},
636 - {"Daichi Kawahata", "daichi@xfce.org", "ja",},
637 - {"ByungHyun Choi", "byunghyun.choi@debianusers.org", "kr",},
638 - {"Mantas", "mantaz@users.sourceforge.net", "lt",},
639 - {"Rihards Prieditis", "RPrieditis@inbox.lv", "lv",},
640 - {"Terje Uriansrud", "ter@operamail.com", "nb_NO",},
641 - {"Stephan Arts", "psybsd@gmail.com", "nl",},
642 - {"Szymon Kałasz", "szymon_maestro@gazeta.pl", "pl",},
643 - {"Fábio Nogueira", "deb-user-ba@ubuntu.com", "pt_BR",},
644 - {"Og Maciel", "omaciel@xfce.org", "pt_BR",},
645 - {"Nuno Miguel", "nunis@netcabo.pt", "pt_PT",},
646 - {"Sergey Fedoseev", "fedoseev.sergey@gmail.com", "ru",},
647 - {"Besnik Bleta", "besnik@programeshqip.org", "sq",},
648 - {"Maxim V. Dziumanenko", "mvd@mylinux.com.ua", "uk",},
649 - {"Dmitry Nikitin", "", "uk",},
650 - {"ﻢﺤﻣﺩ ﻊﻠﻳ ﺎﻠﻤﻜﻳ", "makki.ma@gmail.com", "ur",},
651 - {"正龙 赵", "longer.zhao@gmail.com", "zh_CN",},
652 - {"Cosmo Chene", "cosmolax@gmail.com", "zh_TW",},
654 + GdkPixbuf *icon = NULL;
655 + const gchar *auth[] = { "David Mohr david@mcbf.net Author/Maintainer",
656 + "Mario Đanić mario@libburnia-project.org Author/Maintainer",
657 + "Jean-François Wauthy pollux@xfce.org Retired author/maintainer",
659 + const gchar *translators =
660 + "Mohamed Magdy mohamed.m.k@gmail.com ar\n"
661 + "Pau Rul lan Ferragut paurullan@bulma.net ca\n"
662 + "Michal Várady miko.vaji@gmail.com cs\n"
663 + "Enrico Tröger enrico.troeger@uvena.de de\n"
664 + "Fabian Nowak timstery@arcor.de de\n"
665 + "Nico Schümann nico@prog.nico22.de de\n"
666 + "Stavros Giannouris stavrosg2002@freemail.gr el\n"
667 + "Jeff Bailes thepizzaking@gmail.com en_GB\n"
668 + "Diego Rodriguez dieymir@yahoo.es es\n"
669 + "Kristjan Siimson kristjan.siimson@gmail.com et\n"
670 + "Piarres Beobide pi@beobide.net eu\n"
671 + "Jari Rahkonen jari.rahkonen@pp1.inet.fi fi\n"
672 + "Etienne Collet xanaxlnx@gmail.com fr\n"
673 + "Maximilian Schleiss maximilian@xfce.org fr\n"
674 + "Attila Szervác sas@321.hu hu\n"
675 + "Daichi Kawahata daichi@xfce.org ja\n"
676 + "ByungHyun Choi byunghyun.choi@debianusers.org kr\n"
677 + "Mantas mantaz@users.sourceforge.net lt\n"
678 + "Rihards Prieditis RPrieditis@inbox.lv lv\n"
679 + "Terje Uriansrud ter@operamail.com nb_NO\n"
680 + "Stephan Arts psybsd@gmail.com nl\n"
681 + "Szymon Kałasz szymon_maestro@gazeta.pl pl\n"
682 + "Fábio Nogueira deb-user-ba@ubuntu.com pt_BR\n"
683 + "Og Maciel omaciel@xfce.org pt_BR\n"
684 + "Nuno Miguel nunis@netcabo.pt pt_PT\n"
685 + "Sergey Fedoseev fedoseev.sergey@gmail.com ru\n"
686 + "Besnik Bleta besnik@programeshqip.org sq\n"
687 + "Maxim V. Dziumanenko mvd@mylinux.com.ua uk\n"
688 + "Dmitry Nikitin uk\n"
689 + "ﻢﺤﻣﺩ ﻊﻠﻳ ﺎﻠﻤﻜﻳ makki.ma@gmail.com ur\n"
690 + "正龙 赵 longer.zhao@gmail.com zh_CN\n"
691 + "Cosmo Chene cosmolax@gmail.com zh_TW\n";
693 gtk_icon_size_lookup (GTK_ICON_SIZE_DIALOG, &x, &y);
694 - icon = xfce_themed_icon_load ("media-optical", x);
695 + icon = gtk_icon_theme_load_icon ( gtk_icon_theme_get_default(), "media-optical", x, GTK_ICON_LOOKUP_GENERIC_FALLBACK, NULL);
697 - icon = xfce_themed_icon_load ("media-cdrom", x);
698 + icon = gtk_icon_theme_load_icon ( gtk_icon_theme_get_default(), "media-cdrom", x, GTK_ICON_LOOKUP_GENERIC_FALLBACK, NULL);
700 - icon = xfce_themed_icon_load (GTK_STOCK_CDROM, x);
702 - info = xfce_about_info_new ("Xfburn", VERSION, _("Another cd burning GUI"),
703 - XFCE_COPYRIGHT_TEXT ("2005-2008", "David Mohr, Mario Đanić, Jean-François Wauthy"), XFCE_LICENSE_GPL);
704 - xfce_about_info_set_homepage (info, "http://www.xfce.org/projects/xfburn");
705 - xfce_about_info_add_credit (info, "David Mohr", "david@mcbf.net", _("Author/Maintainer"));
706 - xfce_about_info_add_credit (info, "Mario Đanić", "mario@libburnia-project.org", _("Author/Maintainer"));
707 - xfce_about_info_add_credit (info, "Jean-François Wauthy", "pollux@xfce.org", _("Retired author/maintainer"));
710 - for (n = 0; n < G_N_ELEMENTS (translators); ++n) {
712 + icon = gtk_icon_theme_load_icon ( gtk_icon_theme_get_default(), GTK_STOCK_CDROM, x, GTK_ICON_LOOKUP_GENERIC_FALLBACK, NULL);
714 - s = g_strdup_printf (_("Translator (%s)"), translators[n].language);
715 - xfce_about_info_add_credit (info, translators[n].name, translators[n].email, s);
719 - dialog = xfce_about_dialog_new_with_values (GTK_WINDOW (window), info, icon);
720 - gtk_widget_set_size_request (GTK_WIDGET (dialog), 400, 300);
721 - gtk_dialog_run (GTK_DIALOG (dialog));
722 - gtk_widget_destroy (dialog);
723 +#if !GTK_CHECK_VERSION (2, 18, 0)
724 + gtk_about_dialog_set_email_hook (exo_gtk_url_about_dialog_hook, NULL, NULL);
725 + gtk_about_dialog_set_url_hook (exo_gtk_url_about_dialog_hook, NULL, NULL);
727 + gtk_show_about_dialog(GTK_WINDOW (window),
729 + "program-name", "Xfburn",
730 + "license", xfce_get_license_text (XFCE_LICENSE_TEXT_GPL),
731 + "version", VERSION,
732 + "comments", _("Another cd burning GUI"),
733 + "website", "http://www.xfce.org/projects/xfburn",
734 + "copyright", "2005-2008 David Mohr, Mario Đanić, Jean-François Wauthy",
736 + "translator-credits", translators,
739 - xfce_about_info_free (info);
740 if (G_LIKELY (icon != NULL))
741 g_object_unref (G_OBJECT (icon));
743 diff -ur xfburn-0.4.3/xfburn/xfburn-perform-burn.h xfburn-0.4.3-4ui/xfburn/xfburn-perform-burn.h
744 --- xfburn-0.4.3/xfburn/xfburn-perform-burn.h 2009-10-30 02:07:24.000000000 +0100
745 +++ xfburn-0.4.3-4ui/xfburn/xfburn-perform-burn.h 2011-02-26 16:21:06.901320585 +0100
750 -#include <libxfcegui4/libxfcegui4.h>
751 +#include <libxfce4ui/libxfce4ui.h>
755 diff -ur xfburn-0.4.3/xfburn/xfburn-preferences-dialog.c xfburn-0.4.3-4ui/xfburn/xfburn-preferences-dialog.c
756 --- xfburn-0.4.3/xfburn/xfburn-preferences-dialog.c 2009-10-24 23:18:10.000000000 +0200
757 +++ xfburn-0.4.3-4ui/xfburn/xfburn-preferences-dialog.c 2011-02-26 20:18:38.177013556 +0100
760 #endif /* !HAVE_CONFIG_H */
762 -#include <libxfcegui4/libxfcegui4.h>
763 +#include <libxfce4ui/libxfce4ui.h>
766 #include "xfburn-preferences-dialog.h"
768 vbox2 = gtk_vbox_new (FALSE, 0);
769 gtk_widget_show (vbox2);
771 - frame = xfce_create_framebox_with_content (_("Temporary directory"), vbox2);
772 + frame = xfce_gtk_frame_box_new_with_content (_("Temporary directory"), vbox2);
773 gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, BORDER);
774 gtk_widget_show (frame);
777 vbox2 = gtk_vbox_new (FALSE, 0);
778 gtk_widget_show (vbox2);
780 - frame = xfce_create_framebox_with_content (_("File browser"), vbox2);
781 + frame = xfce_gtk_frame_box_new_with_content (_("File browser"), vbox2);
782 gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, BORDER);
783 gtk_widget_show (frame);
786 vbox2 = gtk_vbox_new (FALSE, 0);
787 gtk_widget_show (vbox2);
789 - frame = xfce_create_framebox_with_content (_("Detected devices"), vbox2);
790 + frame = xfce_gtk_frame_box_new_with_content (_("Detected devices"), vbox2);
791 gtk_box_pack_start (GTK_BOX (vbox), frame, TRUE, TRUE, BORDER);
792 gtk_widget_show (frame);
794 @@ -292,17 +292,17 @@
795 gtk_box_pack_start (GTK_BOX (vbox2), hbox, FALSE, FALSE, BORDER);
796 gtk_widget_show (hbox);
798 - priv->button_scan = xfce_create_mixed_button (GTK_STOCK_CDROM, _("Sc_an for devices"));
799 + priv->button_scan = xfce_gtk_button_new_mixed (GTK_STOCK_CDROM, _("Sc_an for devices"));
800 gtk_box_pack_end (GTK_BOX (hbox), priv->button_scan, FALSE, FALSE, BORDER);
801 g_signal_connect (G_OBJECT (priv->button_scan), "clicked", G_CALLBACK (scan_button_clicked_cb), obj);
802 gtk_widget_show (priv->button_scan);
804 gtk_icon_size_lookup (GTK_ICON_SIZE_DIALOG, &x, &y);
805 - icon = xfce_themed_icon_load ("media-optical", x);
806 + icon = gtk_icon_theme_load_icon ( gtk_icon_theme_get_default(), "media-optical", x, GTK_ICON_LOOKUP_GENERIC_FALLBACK, NULL);
808 - icon = xfce_themed_icon_load ("media-cdrom", x);
809 + icon = gtk_icon_theme_load_icon ( gtk_icon_theme_get_default(), "media-cdrom", x, GTK_ICON_LOOKUP_GENERIC_FALLBACK, NULL);
811 - icon = xfce_themed_icon_load (GTK_STOCK_CDROM, x);
812 + icon = gtk_icon_theme_load_icon ( gtk_icon_theme_get_default(), GTK_STOCK_CDROM, x, GTK_ICON_LOOKUP_GENERIC_FALLBACK, NULL);
815 gtk_list_store_append (icon_store, &iter);
817 vbox3 = gtk_vbox_new (FALSE, 0);
818 gtk_widget_show (vbox3);
820 - frame = xfce_create_framebox_with_content (_("FIFO buffer size (in kb)"), vbox3);
821 + frame = xfce_gtk_frame_box_new_with_content (_("FIFO buffer size (in kb)"), vbox3);
822 gtk_box_pack_start (GTK_BOX (vbox), frame, TRUE, TRUE, BORDER);
823 gtk_widget_show (frame);
827 cb_show_hidden_clicked (GtkButton * Button, gpointer user_data)
829 - xfce_warn (_("Changing this setting only takes full effect after a program restart."));
830 + xfce_dialog_show_warning(NULL, NULL, _("Changing this setting only takes full effect after a program restart."));
834 diff -ur xfburn-0.4.3/xfburn/xfburn-progress-dialog.c xfburn-0.4.3-4ui/xfburn/xfburn-progress-dialog.c
835 --- xfburn-0.4.3/xfburn/xfburn-progress-dialog.c 2009-10-24 23:18:10.000000000 +0200
836 +++ xfburn-0.4.3-4ui/xfburn/xfburn-progress-dialog.c 2011-02-26 20:10:07.506140054 +0100
841 -#include <libxfcegui4/libxfcegui4.h>
842 +#include <libxfce4ui/libxfce4ui.h>
844 #include "xfburn-progress-dialog.h"
845 #include "xfburn-global.h"
847 xfburn_progress_dialog_set_status_with_text (dialog, XFBURN_PROGRESS_DIALOG_STATUS_FAILED, _("Failure"));
849 gdk_threads_enter ();
850 - xfce_err (msg_error);
851 + xfce_dialog_show_error (NULL, NULL, msg_error);
852 gdk_threads_leave ();
855 diff -ur xfburn-0.4.3/xfburn/xfburn-transcoder-basic.c xfburn-0.4.3-4ui/xfburn/xfburn-transcoder-basic.c
856 --- xfburn-0.4.3/xfburn/xfburn-transcoder-basic.c 2009-10-24 23:18:10.000000000 +0200
857 +++ xfburn-0.4.3-4ui/xfburn/xfburn-transcoder-basic.c 2011-02-26 20:07:07.312282054 +0100
861 #include <libxfce4util/libxfce4util.h>
862 -#include <libxfcegui4/libxfcegui4.h>
863 +#include <libxfce4ui/libxfce4ui.h>
871 - xfce_warn (_("Could not open %s."), path);
872 + xfce_dialog_show_warning(NULL, _("Could not open %s."), path);
876 diff -ur xfburn-0.4.3/xfburn/xfburn-transcoder-gst.c xfburn-0.4.3-4ui/xfburn/xfburn-transcoder-gst.c
877 --- xfburn-0.4.3/xfburn/xfburn-transcoder-gst.c 2009-10-24 23:18:10.000000000 +0200
878 +++ xfburn-0.4.3-4ui/xfburn/xfburn-transcoder-gst.c 2011-02-26 16:21:03.773320584 +0100
882 #include <libxfce4util/libxfce4util.h>
883 -#include <libxfcegui4/libxfcegui4.h>
887 diff -ur xfburn-0.4.3/xfburn/xfburn-udev-manager.c xfburn-0.4.3-4ui/xfburn/xfburn-udev-manager.c
888 --- xfburn-0.4.3/xfburn/xfburn-udev-manager.c 2011-02-26 20:25:11.187013553 +0100
889 +++ xfburn-0.4.3-4ui/xfburn/xfburn-udev-manager.c 2011-02-26 19:59:29.621029555 +0100
893 #include <libxfce4util/libxfce4util.h>
894 -#include <libxfcegui4/libxfcegui4.h>
895 +#include <libxfce4ui/libxfce4ui.h>
897 #include "xfburn-global.h"
898 #include "xfburn-progress-dialog.h"
901 g_message ("Unmounted '%s'", mp);
903 - xfce_err ("Failed to unmount '%s'. Drive cannot be used for burning.", mp);
904 + xfce_dialog_show_error (NULL, NULL, "Failed to unmount '%s'. Drive cannot be used for burning.", mp);
905 DBG ("Failed to unmount '%s'", mp);