qulogic/libgnt
Clone
Summary
Browse
Changes
Graph
Hide more deprecated symbols.
draft
2019-05-19, Elliott Sales de Andrade
58cd94550516
Parents
93fc8c41ded2
Children
Hide more deprecated symbols.
4 files changed, 35 insertions(+), 80 deletions(-)
+28
-12
gntbindable.c
+0
-54
gntbindable.h
+7
-1
gntwm.c
+0
-13
gntwm.h
--- a/gntbindable.c Sun May 19 02:50:51 2019 -0400
+++ b/gntbindable.c Sun May 19 03:52:53 2019 -0400
@@ -54,6 +54,21 @@
GntTree *tree;
} BindingView;
+typedef struct
+{
+ char *name; /* The name of the action */
+ union {
+ GntBindableActionCallback action;
+ GntBindableActionCallbackNoParam action_noparam;
+ } u;
+} GntBindableAction;
+
+typedef struct
+{
+ GntBindableAction *action;
+ GList *list;
+} GntBindableActionParam;
+
/******************************************************************************
* Helpers
*****************************************************************************/
@@ -251,6 +266,19 @@
return p;
}
+static void
+gnt_bindable_action_free(GntBindableAction *action)
+{
+ g_free(action->name);
+ g_free(action);
+}
+
+static void gnt_bindable_action_param_free(GntBindableActionParam *param)
+{
+ g_list_free(param->list); /* XXX: There may be a leak here for string parameters */
+ g_free(param);
+}
+
/******************************************************************************
* GObject Implementation
*****************************************************************************/
@@ -424,18 +452,6 @@
}
}
-void gnt_bindable_action_free(GntBindableAction *action)
-{
- g_free(action->name);
- g_free(action);
-}
-
-void gnt_bindable_action_param_free(GntBindableActionParam *param)
-{
- g_list_free(param->list); /* XXX: There may be a leak here for string parameters */
- g_free(param);
-}
-
GntBindable * gnt_bindable_bindings_view(GntBindable *bind)
{
GntBindable *tree = GNT_BINDABLE(gnt_tree_new_with_columns(2));
--- a/gntbindable.h Sun May 19 02:50:51 2019 -0400
+++ b/gntbindable.h Sun May 19 03:52:53 2019 -0400
@@ -68,60 +68,6 @@
typedef gboolean (*GntBindableActionCallback) (GntBindable *bindable, GList *params);
typedef gboolean (*GntBindableActionCallbackNoParam)(GntBindable *bindable);
-#ifndef GNT_DISABLE_DEPRECATED
-/**
- * GntBindableAction:
- *
- * Deprecated: 2.14.0: This is an internal implementation detail.
- */
-typedef struct _GntBindableAction GntBindableAction;
-/**
- * GntBindableActionParam:
- *
- * Deprecated: 2.14.0: This is an internal implementation detail.
- */
-typedef struct _GntBindableActionParam GntBindableActionParam;
-#endif
-
-struct _GntBindableAction
-{
- char *name; /* The name of the action */
- union {
- GntBindableActionCallback action;
- GntBindableActionCallbackNoParam action_noparam;
- } u;
-};
-
-struct _GntBindableActionParam
-{
- GntBindableAction *action;
- GList *list;
-};
-
-#ifndef GNT_DISABLE_DEPRECATED
-/*GntBindableAction *gnt_bindable_action_parse(const char *name);*/
-
-/**
- * gnt_bindable_action_free:
- * @action: The bindable action.
- *
- * Free a bindable action.
- *
- * Deprecated: 2.14.0: This is an internal implementation detail.
- */
-void gnt_bindable_action_free(GntBindableAction *action);
-
-/**
- * gnt_bindable_action_param_free:
- * @param: The GntBindableActionParam to free.
- *
- * Free a GntBindableActionParam.
- *
- * Deprecated: 2.14.0: This is an internal implementation detail.
- */
-void gnt_bindable_action_param_free(GntBindableActionParam *param);
-#endif
-
/**
* gnt_bindable_class_register_action:
* @klass: The class the binding is for.
--- a/gntwm.c Sun May 19 02:50:51 2019 -0400
+++ b/gntwm.c Sun May 19 03:52:53 2019 -0400
@@ -69,7 +69,13 @@
#define IDLE_CHECK_INTERVAL 5 /* 5 seconds */
-typedef struct _GntListWindow
+typedef struct
+{
+ int x;
+ int y;
+} GntPosition;
+
+typedef struct
{
GntWidget *window;
GntWidget *tree;
--- a/gntwm.h Sun May 19 02:50:51 2019 -0400
+++ b/gntwm.h Sun May 19 03:52:53 2019 -0400
@@ -49,19 +49,6 @@
GntWS *ws;
} GntNode;
-#ifndef GNT_DISABLE_DEPRECATED
-/**
- * GntPosition:
- *
- * Deprecated: 2.14.0: This is an internal implementation detail.
- */
-typedef struct _GntPosition
-{
- int x;
- int y;
-} GntPosition;
-#endif
-
/**
* GntAction:
*