Back to index

indicator-appmenu  12.10.0
Defines | Typedefs | Functions
hudsourcelist.h File Reference
#include "hudsource.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


#define HUD_TYPE_SOURCE_LIST   (hud_source_list_get_type ())
#define HUD_SOURCE_LIST(inst)
#define HUD_IS_SOURCE_LIST(inst)


typedef struct _HudSourceList


GType hud_source_list_get_type (void)
HudSourceList * hud_source_list_new (void)
void hud_source_list_add (HudSourceList *list, HudSource *source)
 hud_source_list_add: : a #HudSourceList : a #HudSource to add to the list

Define Documentation

#define HUD_IS_SOURCE_LIST (   inst)
(G_TYPE_CHECK_INSTANCE_TYPE ((inst),                     \

Definition at line 27 of file hudsourcelist.h.

#define HUD_SOURCE_LIST (   inst)
(G_TYPE_CHECK_INSTANCE_CAST ((inst),                     \
                                                             HUD_TYPE_SOURCE_LIST, HudSourceList))

Definition at line 25 of file hudsourcelist.h.

Definition at line 24 of file hudsourcelist.h.

Typedef Documentation

typedef struct _HudSourceList

Definition at line 30 of file hudsourcelist.h.

Function Documentation

void hud_source_list_add ( HudSourceList *  list,
HudSource *  source 

hud_source_list_add: : a #HudSourceList : a #HudSource to add to the list

Adds to .

Future hud_source_search() calls on will include results from .

Definition at line 155 of file hudsourcelist.c.

  g_return_if_fail (HUD_IS_SOURCE_LIST (list));
  g_return_if_fail (HUD_IS_SOURCE (source));

  g_signal_connect_object (source, "changed", G_CALLBACK (hud_source_list_source_changed), list, 0);
  list->list = g_slist_prepend (list->list, g_object_ref (source));

  hud_source_changed (HUD_SOURCE (source));

Here is the call graph for this function:

Here is the caller graph for this function:

GType hud_source_list_get_type ( void  )
HudSourceList* hud_source_list_new ( void  )


Creates a #HudSourceList.

You should probably add some sources to it using hud_source_list_add().

Returns: a new empty #HudSourceList

Definition at line 139 of file hudsourcelist.c.

  return g_object_new (HUD_TYPE_SOURCE_LIST, NULL);

Here is the caller graph for this function: