[gtk+/no-init-args: 2/10] Stop exporting gtk_parse_args
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/no-init-args: 2/10] Stop exporting gtk_parse_args
- Date: Wed, 28 Dec 2016 21:40:47 +0000 (UTC)
commit 1d6435db483c02d9168bf1fd26d2baf0a7e1a92c
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Dec 27 18:36:19 2016 -0500
Stop exporting gtk_parse_args
We want to stop handling commandline arguments, and that is the
sole purpose of this function. So it has to go
gtk/gtkmain.c | 24 +-----------------------
gtk/gtkmain.h | 4 ----
2 files changed, 1 insertions(+), 27 deletions(-)
---
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c
index acdf104..616a6fe 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -899,29 +899,7 @@ gtk_get_option_group (gboolean open_default_display)
return group;
}
-/**
- * gtk_parse_args:
- * @argc: (inout): a pointer to the number of command line arguments
- * @argv: (array length=argc) (inout): a pointer to the array of
- * command line arguments
- *
- * Parses command line arguments, and initializes global
- * attributes of GTK+, but does not actually open a connection
- * to a display. (See gdk_display_open(), gdk_get_display_arg_name())
- *
- * Any arguments used by GTK+ or GDK are removed from the array and
- * @argc and @argv are updated accordingly.
- *
- * There is no need to call this function explicitly if you are using
- * gtk_init(), or gtk_init_check().
- *
- * Note that many aspects of GTK+ require a display connection to
- * function, so this way of initializing GTK+ is really only useful
- * for specialized use cases.
- *
- * Returns: %TRUE if initialization succeeded, otherwise %FALSE
- */
-gboolean
+static gboolean
gtk_parse_args (int *argc,
char ***argv)
{
diff --git a/gtk/gtkmain.h b/gtk/gtkmain.h
index 4754395..79398b2 100644
--- a/gtk/gtkmain.h
+++ b/gtk/gtkmain.h
@@ -73,10 +73,6 @@ const gchar* gtk_check_version (guint required_major,
*/
GDK_AVAILABLE_IN_ALL
-gboolean gtk_parse_args (int *argc,
- char ***argv);
-
-GDK_AVAILABLE_IN_ALL
void gtk_init (int *argc,
char ***argv);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]