[brasero] 2009-05-06 Philippe Rouquier <bonfire-app wanadoo fr>
- From: Philippe Rouquier <philippr src gnome org>
- To: svn-commits-list gnome org
- Subject: [brasero] 2009-05-06 Philippe Rouquier <bonfire-app wanadoo fr>
- Date: Wed, 6 May 2009 14:42:54 -0400 (EDT)
commit 9119a8eece27bf109f483fa51b66301666b0635d
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date: Wed May 6 13:49:11 2009 +0200
2009-05-06 Philippe Rouquier <bonfire-app wanadoo fr>
Implemented brasero_burn_library_get_option_group () and use it in brasero
* libbrasero-burn/burn-debug.c
(brasero_burn_library_get_option_group):
* src/main.c (main):
---
ChangeLog | 8 ++++++++
libbrasero-burn/burn-debug.c | 30 ++++++++++++++++++++++++++++++
src/main.c | 4 +---
3 files changed, 39 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index e49a7e5..76b9bf7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2009-05-06 Philippe Rouquier <bonfire-app wanadoo fr>
+
+ Implemented brasero_burn_library_get_option_group () and use it in brasero
+
+ * libbrasero-burn/burn-debug.c
+ (brasero_burn_library_get_option_group):
+ * src/main.c (main):
+
2009-05-05 Philippe Rouquier <bonfire-app wanadoo fr>
Don't set some threads joinable if we won't try to join them
diff --git a/libbrasero-burn/burn-debug.c b/libbrasero-burn/burn-debug.c
index 392fba5..a8a6a25 100644
--- a/libbrasero-burn/burn-debug.c
+++ b/libbrasero-burn/burn-debug.c
@@ -35,6 +35,7 @@
#include <string.h>
#include <glib.h>
+#include <glib/gi18n-lib.h>
#include <gmodule.h>
#include "brasero-media-private.h"
@@ -45,12 +46,41 @@
static gboolean debug = FALSE;
+static const GOptionEntry options [] = {
+ { "brasero-burn-debug", 0, 0, G_OPTION_ARG_NONE, &debug,
+ N_("Display debug statements on stdout for Brasero burn library"),
+ NULL }
+};
+
void
brasero_burn_set_debug (gboolean debug_value)
{
debug = debug_value;
}
+/**
+ * brasero_burn_library_get_option_group:
+ *
+ * Returns a GOptionGroup for the commandline arguments recognized by libbrasero-burn.
+ * You should add this to your GOptionContext if your are using g_option_context_parse ()
+ * to parse your commandline arguments.
+ *
+ * Return value: a #GOptionGroup *
+ **/
+GOptionGroup *
+brasero_burn_library_get_option_group (void)
+{
+ GOptionGroup *group;
+
+ group = g_option_group_new ("brasero-burn",
+ N_("Brasero media burning library"),
+ N_("Display options for Brasero-burn library"),
+ NULL,
+ NULL);
+ g_option_group_add_entries (group, options);
+ return group;
+}
+
void
brasero_burn_debug_setup_module (GModule *handle)
{
diff --git a/src/main.c b/src/main.c
index 5a54333..fca34b5 100644
--- a/src/main.c
+++ b/src/main.c
@@ -48,8 +48,6 @@
#include "brasero-utils.h"
#include "brasero-app.h"
-#include "burn-debug.h"
-
#include "brasero-burn-lib.h"
#include "brasero-session.h"
@@ -514,6 +512,7 @@ main (int argc, char **argv)
g_option_context_add_group (context, egg_sm_client_get_option_group ());
g_option_context_add_group (context, gtk_get_option_group (TRUE));
g_option_context_add_group (context, brasero_media_get_option_group ());
+ g_option_context_add_group (context, brasero_burn_library_get_option_group ());
g_option_context_add_group (context, gst_init_get_option_group ());
if (g_option_context_parse (context, &argc, &argv, NULL) == FALSE) {
g_print (_("Please type %s --help to see all available options\n"), argv [0]);
@@ -534,7 +533,6 @@ main (int argc, char **argv)
GCONF_CLIENT_PRELOAD_NONE,
NULL);
- brasero_burn_set_debug (debug);
brasero_burn_library_start ();
brasero_enable_multi_DND ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]