Back to index

bamf  0.2.120
Classes | Defines | Typedefs | Functions
bamf-tab.h File Reference
#include "bamf.h"
#include "bamf-view.h"
#include "bamf-tab-source.h"
#include <glib.h>
#include <glib-object.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _BamfTabClass
struct  _BamfTab

Defines

#define BAMF_TYPE_TAB   (bamf_tab_get_type ())
#define BAMF_TAB(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), BAMF_TYPE_TAB, BamfTab))
#define BAMF_IS_TAB(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BAMF_TYPE_TAB))
#define BAMF_TAB_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), BAMF_TYPE_TAB, BamfTabClass))
#define BAMF_IS_TAB_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), BAMF_TYPE_TAB))
#define BAMF_TAB_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), BAMF_TYPE_TAB, BamfTabClass))

Typedefs

typedef struct _BamfTab
typedef struct _BamfTabClass
typedef struct _BamfTabPrivate

Functions

GType bamf_tab_get_type (void) G_GNUC_CONST
char * bamf_tab_current_uri (BamfTab *self)
void bamf_tab_show (BamfTab *self)
guint32 bamf_tab_parent_xid (BamfTab *tab)
gchar * bamf_tab_get_preview (BamfTab *tab)
BamfTab * bamf_tab_new (BamfTabSource *source, const char *tab_id)

Class Documentation

struct _BamfTab

Definition at line 45 of file bamf-tab.h.

Class Members
BamfView parent
BamfTabPrivate * priv

Define Documentation

#define BAMF_IS_TAB (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BAMF_TYPE_TAB))

Definition at line 32 of file bamf-tab.h.

#define BAMF_IS_TAB_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), BAMF_TYPE_TAB))

Definition at line 34 of file bamf-tab.h.

#define BAMF_TAB (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), BAMF_TYPE_TAB, BamfTab))

Definition at line 31 of file bamf-tab.h.

#define BAMF_TAB_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), BAMF_TYPE_TAB, BamfTabClass))

Definition at line 33 of file bamf-tab.h.

#define BAMF_TAB_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), BAMF_TYPE_TAB, BamfTabClass))

Definition at line 35 of file bamf-tab.h.

#define BAMF_TYPE_TAB   (bamf_tab_get_type ())

Definition at line 30 of file bamf-tab.h.


Typedef Documentation

typedef struct _BamfTab

Definition at line 37 of file bamf-tab.h.

typedef struct _BamfTabClass

Definition at line 38 of file bamf-tab.h.

typedef struct _BamfTabPrivate

Definition at line 39 of file bamf-tab.h.


Function Documentation

char* bamf_tab_current_uri ( BamfTab *  self)

Definition at line 49 of file bamf-tab.c.

{
  g_return_val_if_fail (BAMF_IS_TAB (self), NULL);

  return g_strdup (self->priv->uri);
}
gchar* bamf_tab_get_preview ( BamfTab *  tab)

Definition at line 66 of file bamf-tab.c.

{
  g_return_val_if_fail (BAMF_IS_TAB (tab), NULL);
  
  return tab->priv->preview_uri;
}

Here is the call graph for this function:

Here is the caller graph for this function:

GType bamf_tab_get_type ( void  )
BamfTab* bamf_tab_new ( BamfTabSource *  source,
const char *  tab_id 
)

Definition at line 305 of file bamf-tab.c.

{
  BamfTab *self;
  self = (BamfTab *) g_object_new (BAMF_TYPE_TAB,
                                   "source", source,
                                   "id", id,
                                   NULL);

  return self;
}
guint32 bamf_tab_parent_xid ( BamfTab *  tab)

Definition at line 64 of file bamf-tab.c.

{
  g_return_val_if_fail (BAMF_IS_TAB (tab), 0);

  return bamf_tab_source_get_tab_xid (tab->priv->source, tab->priv->id);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void bamf_tab_show ( BamfTab *  self)

Definition at line 102 of file bamf-tab.c.

{
  if (BAMF_TAB_GET_CLASS (self)->show)
    BAMF_TAB_GET_CLASS (self)->show (self);
  else
    g_warning ("Default tab class implementation cannot perform show!\n");
}

Here is the call graph for this function:

Here is the caller graph for this function: