Back to index

indicator-session  12.10.0
Classes | Defines | Typedefs | Functions
session-menu-mgr.h File Reference
#include <glib-object.h>
#include "session-dbus.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _SessionMenuMgrClass

Defines

#define SESSION_TYPE_MENU_MGR   (session_menu_mgr_get_type ())
#define SESSION_MENU_MGR(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), SESSION_TYPE_MENU_MGR, SessionMenuMgr))
#define SESSION_MENU_MGR_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), SESSION_TYPE_MENU_MGR, SessionMenuMgrClass))
#define IS_SESSION_MENU_MGR(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SESSION_TYPE_MENU_MGR))
#define IS_SESSION_MENU_MGR_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), SESSION_TYPE_MENU_MGR))
#define SESSION_MENU_MGR_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), SESSION_TYPE_MENU_MGR, SessionMenuMgrClass))

Typedefs

typedef struct _SessionMenuMgrClass
typedef struct _SessionMenuMgr

Functions

GType session_menu_mgr_get_type (void) G_GNUC_CONST
SessionMenuMgr * session_menu_mgr_new (SessionDbus *session_dbus, gboolean greeter_mode)
DbusmenuMenuitem * session_menu_mgr_get_menu (SessionMenuMgr *mgr)
 session_menu_mgr_get_menu:

Class Documentation

struct _SessionMenuMgrClass

Definition at line 40 of file session-menu-mgr.h.

Class Members
GObjectClass parent_class

Define Documentation

#define IS_SESSION_MENU_MGR (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SESSION_TYPE_MENU_MGR))

Definition at line 33 of file session-menu-mgr.h.

#define IS_SESSION_MENU_MGR_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), SESSION_TYPE_MENU_MGR))

Definition at line 34 of file session-menu-mgr.h.

#define SESSION_MENU_MGR (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), SESSION_TYPE_MENU_MGR, SessionMenuMgr))

Definition at line 31 of file session-menu-mgr.h.

#define SESSION_MENU_MGR_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), SESSION_TYPE_MENU_MGR, SessionMenuMgrClass))

Definition at line 32 of file session-menu-mgr.h.

#define SESSION_MENU_MGR_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), SESSION_TYPE_MENU_MGR, SessionMenuMgrClass))

Definition at line 35 of file session-menu-mgr.h.

Definition at line 30 of file session-menu-mgr.h.


Typedef Documentation

typedef struct _SessionMenuMgr

Definition at line 38 of file session-menu-mgr.h.

typedef struct _SessionMenuMgrClass

Definition at line 37 of file session-menu-mgr.h.


Function Documentation

DbusmenuMenuitem* session_menu_mgr_get_menu ( SessionMenuMgr *  mgr)

session_menu_mgr_get_menu:

Returns: (transfer none): the manager's menu.

Definition at line 1167 of file session-menu-mgr.c.

{
  g_return_val_if_fail (IS_SESSION_MENU_MGR(mgr), NULL);

  return mgr->top_mi;
}

Here is the caller graph for this function:

GType session_menu_mgr_get_type ( void  )
SessionMenuMgr* session_menu_mgr_new ( SessionDbus *  session_dbus,
gboolean  greeter_mode 
)

Definition at line 1147 of file session-menu-mgr.c.

{
  SessionMenuMgr* mgr = g_object_new (SESSION_TYPE_MENU_MGR, NULL);
  mgr->greeter_mode = greeter_mode;
  mgr->session_dbus = g_object_ref (session_dbus);
  build_admin_menuitems (mgr);
  const guint n = g_list_length (dbusmenu_menuitem_get_children (mgr->top_mi));
  mgr->user_menuitem_index = n;
  update_user_menuitems (mgr);
  build_session_menuitems (mgr);
  return mgr;
}

Here is the call graph for this function:

Here is the caller graph for this function: