Back to index

indicator-appmenu  12.10.0
Functions
gdk-get-func.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

gboolean egg_xid_get_functions (Window window, GdkWMFunction *functions)
 gdk_window_get_functions: : The toplevel #X11Window to get the functions for : The window functions will be written here

Function Documentation

gboolean egg_xid_get_functions ( Window  window,
GdkWMFunction *  functions 
)

gdk_window_get_functions: : The toplevel #X11Window to get the functions for : The window functions will be written here

Returns the functions set on the GdkWindow with #gdk_window_set_functions Returns: TRUE if the window has functions set, FALSE otherwise.

Definition at line 123 of file gdk-get-func.c.

{
  MotifWmHints *hints;
  gboolean result = FALSE;

  hints = gdk_xid_get_mwm_hints (window);
  
  if (hints)
    {
      if (hints->flags & MWM_HINTS_FUNCTIONS)
        {
          if (functions)
            *functions = hints->functions;
          result = TRUE;
        }
      
      XFree (hints);
    }

  return result;
}

Here is the call graph for this function: