tools: remove useless g_set_prgname() wrapper

This commit is contained in:
Tim-Philipp Müller 2012-06-26 17:04:01 +01:00
parent 5be0a58463
commit 6438a0439d
4 changed files with 3 additions and 13 deletions

View file

@ -1535,7 +1535,7 @@ main (int argc, char *argv[])
textdomain (GETTEXT_PACKAGE);
#endif
gst_tools_set_prgname ("gst-inspect");
g_set_prgname ("gst-inspect-" GST_API_VERSION);
#ifndef GST_DISABLE_OPTION_PARSING
ctx = g_option_context_new ("[ELEMENT-NAME | PLUGIN-NAME]");

View file

@ -949,7 +949,7 @@ main (int argc, char *argv[])
textdomain (GETTEXT_PACKAGE);
#endif
gst_tools_set_prgname ("gst-launch");
g_set_prgname ("gst-launch-" GST_API_VERSION);
#ifndef GST_DISABLE_OPTION_PARSING
ctx = g_option_context_new ("PIPELINE-DESCRIPTION");

View file

@ -153,7 +153,7 @@ main (int argc, char *argv[])
textdomain (GETTEXT_PACKAGE);
#endif
gst_tools_set_prgname ("gst-typefind");
g_set_prgname ("gst-typefind-" GST_API_VERSION);
ctx = g_option_context_new ("FILES");
g_option_context_add_main_entries (ctx, options, GETTEXT_PACKAGE);

View file

@ -57,14 +57,4 @@ gst_tools_print_version (const gchar * tool)
}
}
static void
gst_tools_set_prgname (const gchar * tool)
{
gchar *s;
s = g_strdup_printf ("%s-%u.%u", tool, GST_VERSION_MAJOR, GST_VERSION_MINOR);
g_set_prgname (s);
g_free (s);
}
#endif /* __GST_TOOLS_H__ */