qulogic/libgnt

Move internal GntWM prototypes to private header.

2019-05-10, Elliott Sales de Andrade
83cd39f605a2
Parents c4d01f7c0271
Children 8d378fd7816e
Move internal GntWM prototypes to private header.
  • +4 -1
    gntwm.c
  • +0 -14
    gntwm.h
  • +4 -0
    gntwmprivate.h
  • +2 -0
    gntws.c
  • --- a/gntwm.c Fri May 10 01:29:37 2019 -0400
    +++ b/gntwm.c Fri May 10 01:43:44 2019 -0400
    @@ -140,6 +140,7 @@
    g_free(node);
    }
    +/* Private. */
    void
    gnt_wm_copy_win(GntWidget *widget, GntNode *node)
    {
    @@ -2410,7 +2411,9 @@
    priv->acts = g_list_append(priv->acts, action);
    }
    -void gnt_wm_set_event_stack(GntWM *wm, gboolean set)
    +/* Private. */
    +void
    +gnt_wm_set_event_stack(GntWM *wm, gboolean set)
    {
    wm->event_stack = set;
    }
    --- a/gntwm.h Fri May 10 01:29:37 2019 -0400
    +++ b/gntwm.h Fri May 10 01:43:44 2019 -0400
    @@ -359,20 +359,6 @@
    void gnt_wm_raise_window(GntWM *wm, GntWidget *widget);
    /**
    - * gnt_wm_set_event_stack:
    - *
    - * Internal function -- do not use.
    - */
    -void gnt_wm_set_event_stack(GntWM *wm, gboolean set);
    -
    -/**
    - * gnt_wm_copy_win:
    - *
    - * Internal function -- do not use.
    - */
    -void gnt_wm_copy_win(GntWidget *widget, GntNode *node);
    -
    -/**
    * gnt_wm_get_idle_time:
    *
    * Returns: The idle time of the user.
    --- a/gntwmprivate.h Fri May 10 01:29:37 2019 -0400
    +++ b/gntwmprivate.h Fri May 10 01:43:44 2019 -0400
    @@ -29,6 +29,8 @@
    G_BEGIN_DECLS
    /* Private access to some internals. Contact us if you need these. */
    +void gnt_wm_copy_win(GntWidget *widget, GntNode *node);
    +
    /*
    * gnt_wm_is_list_window:
    * @wm: The window-manager.
    @@ -42,6 +44,8 @@
    void gnt_wm_add_action(GntWM *wm, GntAction *action);
    +void gnt_wm_set_event_stack(GntWM *wm, gboolean set);
    +
    G_END_DECLS
    #endif /* GNT_WM_PRIVATE_H */
    --- a/gntws.c Fri May 10 01:29:37 2019 -0400
    +++ b/gntws.c Fri May 10 01:43:44 2019 -0400
    @@ -29,6 +29,8 @@
    #include "gntwm.h"
    #include "gntws.h"
    +#include "gntwmprivate.h"
    +
    typedef struct
    {
    gchar *name;