[gstreamermm] Plugin Generator: Use Glib::OptionContext instead of GOptionContext.
- From: José Alburquerque <jaalburqu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gstreamermm] Plugin Generator: Use Glib::OptionContext instead of GOptionContext.
- Date: Mon, 18 Apr 2011 05:17:18 +0000 (UTC)
commit c57da90d904b647438b2dfad96fe3bfab2a1fb89
Author: José Alburquerque <jaalburqu svn gnome org>
Date: Sun Apr 17 23:52:36 2011 -0400
Plugin Generator: Use Glib::OptionContext instead of GOptionContext.
* tools/extra_defs_gen/generate_plugin_gmmproc_file.cc: Use the
available glibmm API for option parsing instead of the C API where
possible.
ChangeLog | 8 +++++++
.../extra_defs_gen/generate_plugin_gmmproc_file.cc | 23 ++++++++-----------
2 files changed, 18 insertions(+), 13 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 902d094..c91adb0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2011-04-17 José Alburquerque <jaalburqu svn gnome org>
+
+ Plugin Generator: Use Glib::OptionContext instead of GOptionContext.
+
+ * tools/extra_defs_gen/generate_plugin_gmmproc_file.cc: Use the
+ available glibmm API for option parsing instead of the C API where
+ possible.
+
2011-04-15 Murray Cumming <murrayc murrayc com>
Require a newer gmmproc.
diff --git a/tools/extra_defs_gen/generate_plugin_gmmproc_file.cc b/tools/extra_defs_gen/generate_plugin_gmmproc_file.cc
index 39d8397..7f29d00 100644
--- a/tools/extra_defs_gen/generate_plugin_gmmproc_file.cc
+++ b/tools/extra_defs_gen/generate_plugin_gmmproc_file.cc
@@ -806,21 +806,18 @@ int main(int argc, char** argv)
{ 0, '\0', 0, G_OPTION_ARG_NONE, 0, 0, 0 }
};
- GOptionContext* gContext =
- g_option_context_new("<plugin-name> [CppPluginClassName]");
- g_option_context_set_summary(gContext, "Outputs a GStreamer plugin's "
- "gmmproc files to be processed by gmmproc for\nwrapping in gstreamermm. "
- "Use the same syntax for the plugin name as in\ngst-inspect and supply "
- "the desired C++ class name unless the\n--confirm-existence option is "
- "used. The generated files are preliminary\nfiles that need to be run "
- "through m4 including the macros in the\nplugingen*.m4 files to get the "
- "final .hg or .ccg file."
+ Glib::OptionContext optionContext("<plugin-name> [CppPluginClassName]");
+ optionContext.set_summary(
+ "Outputs a GStreamer plugin's gmmproc files to be processed by gmmproc "
+ "for\nwrapping in gstreamermm. Use the same syntax for the plugin name "
+ "as in\ngst-inspect and supply the desired C++ class name unless "
+ "the\n--confirm-existence option is used. The generated files are "
+ "preliminary\nfiles that need to be run through m4 including the macros "
+ "in the\nplugingen*.m4 files to get the final .hg or .ccg file."
);
- g_option_context_add_main_entries(gContext, optionEntries, 0);
- g_option_context_add_group(gContext, gst_init_get_option_group());
-
- Glib::OptionContext optionContext(gContext, true);
+ g_option_context_add_main_entries(optionContext.gobj(), optionEntries, 0);
+ g_option_context_add_group(optionContext.gobj(), gst_init_get_option_group());
try
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]