Back to index

bamf  0.2.120
Functions
bamf-legacy-window-test.c File Reference
#include "bamf-legacy-window-test.h"

Go to the source code of this file.

Functions

 G_DEFINE_TYPE (BamfLegacyWindowTest, bamf_legacy_window_test, BAMF_TYPE_LEGACY_WINDOW)
gint bamf_legacy_window_test_get_pid (BamfLegacyWindow *legacy_window)
guint32 bamf_legacy_window_test_get_xid (BamfLegacyWindow *legacy_window)
void bamf_legacy_window_test_set_attention (BamfLegacyWindowTest *self, gboolean val)
gboolean bamf_legacy_window_test_needs_attention (BamfLegacyWindow *legacy_window)
void bamf_legacy_window_test_set_active (BamfLegacyWindowTest *self, gboolean val)
gboolean bamf_legacy_window_test_is_active (BamfLegacyWindow *legacy_window)
void bamf_legacy_window_test_set_desktop (BamfLegacyWindowTest *self, gboolean val)
gboolean bamf_legacy_window_test_is_desktop (BamfLegacyWindow *legacy_window)
void bamf_legacy_window_test_set_skip (BamfLegacyWindowTest *self, gboolean val)
gboolean bamf_legacy_window_test_is_skip_tasklist (BamfLegacyWindow *legacy_window)
void bamf_legacy_window_test_set_name (BamfLegacyWindowTest *self, char *val)
static const char * bamf_legacy_window_test_get_name (BamfLegacyWindow *legacy_window)
static const char * bamf_legacy_window_test_get_class (BamfLegacyWindow *legacy_window)
char * bamf_legacy_window_test_get_exec_string (BamfLegacyWindow *legacy_window)
char * bamf_legacy_window_test_get_app_id (BamfLegacyWindow *legacy_window)
char * bamf_legacy_window_test_get_unique_bus_name (BamfLegacyWindow *legacy_window)
char * bamf_legacy_window_test_get_menu_object_path (BamfLegacyWindow *legacy_window)
void bamf_legacy_window_test_get_geometry (BamfLegacyWindow *legacy_window, gint *x, gint *y, gint *width, gint *height)
BamfWindowMaximizationType bamf_legacy_window_test_maximized (BamfLegacyWindow *legacy_window)
void bamf_legacy_window_test_close (BamfLegacyWindowTest *self)
void bamf_legacy_window_test_set_geometry (BamfLegacyWindowTest *self, int x, int y, int width, int height)
void bamf_legacy_window_test_set_maximized (BamfLegacyWindowTest *self, BamfWindowMaximizationType maximized)
void bamf_legacy_window_test_set_application_id (BamfLegacyWindowTest *self, const char *id)
void bamf_legacy_window_test_set_unique_bus_name (BamfLegacyWindowTest *self, const char *bus_name)
void bamf_legacy_window_test_set_dbus_menu_object_path (BamfLegacyWindowTest *self, const char *object_path)
void bamf_legacy_window_test_dispose (GObject *object)
void bamf_legacy_window_test_class_init (BamfLegacyWindowTestClass *klass)
void bamf_legacy_window_test_init (BamfLegacyWindowTest *self)
BamfLegacyWindowTest * bamf_legacy_window_test_new (guint32 xid, gchar *name, gchar *klass, gchar *exec)

Function Documentation

void bamf_legacy_window_test_class_init ( BamfLegacyWindowTestClass *  klass)

Definition at line 290 of file bamf-legacy-window-test.c.

{
  BamfLegacyWindowClass *win_class = BAMF_LEGACY_WINDOW_CLASS (klass);
  GObjectClass *obj_class = G_OBJECT_CLASS (klass);

  obj_class->dispose          = bamf_legacy_window_test_dispose;
  win_class->get_name         = bamf_legacy_window_test_get_name;
  win_class->get_class_name   = bamf_legacy_window_test_get_class;
  win_class->get_exec_string  = bamf_legacy_window_test_get_exec_string;
  win_class->get_xid          = bamf_legacy_window_test_get_xid;
  win_class->get_pid          = bamf_legacy_window_test_get_pid;
  win_class->needs_attention  = bamf_legacy_window_test_needs_attention;
  win_class->is_skip_tasklist = bamf_legacy_window_test_is_skip_tasklist;
  win_class->is_desktop       = bamf_legacy_window_test_is_desktop;
  win_class->is_active        = bamf_legacy_window_test_is_active;
  win_class->get_app_id       = bamf_legacy_window_test_get_app_id;
  win_class->get_unique_bus_name = bamf_legacy_window_test_get_unique_bus_name;
  win_class->get_menu_object_path = bamf_legacy_window_test_get_menu_object_path;
  win_class->get_geometry     = bamf_legacy_window_test_get_geometry;
  win_class->maximized        = bamf_legacy_window_test_maximized;
}

Here is the call graph for this function:

void bamf_legacy_window_test_close ( BamfLegacyWindowTest *  self)

Definition at line 230 of file bamf-legacy-window-test.c.

{
  g_signal_emit_by_name (self, "closed");
}

Here is the caller graph for this function:

void bamf_legacy_window_test_dispose ( GObject *  object)

Definition at line 284 of file bamf-legacy-window-test.c.

{
  G_OBJECT_CLASS (bamf_legacy_window_test_parent_class)->dispose (object);
}

Here is the caller graph for this function:

char* bamf_legacy_window_test_get_app_id ( BamfLegacyWindow *  legacy_window)

Definition at line 170 of file bamf-legacy-window-test.c.

{
  BamfLegacyWindowTest *self;
  g_return_val_if_fail (BAMF_IS_LEGACY_WINDOW_TEST (legacy_window), NULL);

  self = BAMF_LEGACY_WINDOW_TEST (legacy_window);

  return self->application_id;
}

Here is the caller graph for this function:

static const char* bamf_legacy_window_test_get_class ( BamfLegacyWindow *  legacy_window) [static]

Definition at line 150 of file bamf-legacy-window-test.c.

{
  BamfLegacyWindowTest *self;

  self = BAMF_LEGACY_WINDOW_TEST (legacy_window);

  return  self->klass;
}

Here is the caller graph for this function:

char* bamf_legacy_window_test_get_exec_string ( BamfLegacyWindow *  legacy_window)

Definition at line 160 of file bamf-legacy-window-test.c.

{
  BamfLegacyWindowTest *self;

  self = BAMF_LEGACY_WINDOW_TEST (legacy_window);

  return self->exec;
}

Here is the caller graph for this function:

void bamf_legacy_window_test_get_geometry ( BamfLegacyWindow *  legacy_window,
gint *  x,
gint *  y,
gint *  width,
gint *  height 
)

Definition at line 203 of file bamf-legacy-window-test.c.

{
  BamfLegacyWindowTest *self;
  g_return_if_fail (BAMF_IS_LEGACY_WINDOW_TEST (legacy_window));

  self = BAMF_LEGACY_WINDOW_TEST (legacy_window);

  *x = self->geometry.x;
  *y = self->geometry.y;
  *width = self->geometry.width;
  *height = self->geometry.height;
}

Here is the caller graph for this function:

char* bamf_legacy_window_test_get_menu_object_path ( BamfLegacyWindow *  legacy_window)

Definition at line 192 of file bamf-legacy-window-test.c.

{
  BamfLegacyWindowTest *self;
  g_return_val_if_fail (BAMF_IS_LEGACY_WINDOW_TEST (legacy_window), NULL);

  self = BAMF_LEGACY_WINDOW_TEST (legacy_window);

  return self->dbus_menu_object_path;
}

Here is the caller graph for this function:

static const char* bamf_legacy_window_test_get_name ( BamfLegacyWindow *  legacy_window) [static]

Definition at line 140 of file bamf-legacy-window-test.c.

{
  BamfLegacyWindowTest *self;

  self = BAMF_LEGACY_WINDOW_TEST (legacy_window);

  return  self->name;
}

Here is the caller graph for this function:

gint bamf_legacy_window_test_get_pid ( BamfLegacyWindow *  legacy_window)

Definition at line 25 of file bamf-legacy-window-test.c.

{
  BamfLegacyWindowTest *self;

  self = BAMF_LEGACY_WINDOW_TEST (legacy_window);

  return  self->pid;
}

Here is the caller graph for this function:

char* bamf_legacy_window_test_get_unique_bus_name ( BamfLegacyWindow *  legacy_window)

Definition at line 181 of file bamf-legacy-window-test.c.

{
  BamfLegacyWindowTest *self;
  g_return_val_if_fail (BAMF_IS_LEGACY_WINDOW_TEST (legacy_window), NULL);

  self = BAMF_LEGACY_WINDOW_TEST (legacy_window);

  return self->unique_bus_name;
}

Here is the caller graph for this function:

guint32 bamf_legacy_window_test_get_xid ( BamfLegacyWindow *  legacy_window)

Definition at line 35 of file bamf-legacy-window-test.c.

{
  BamfLegacyWindowTest *self;

  self = BAMF_LEGACY_WINDOW_TEST (legacy_window);

  return self->xid;
}

Here is the caller graph for this function:

void bamf_legacy_window_test_init ( BamfLegacyWindowTest *  self)

Definition at line 314 of file bamf-legacy-window-test.c.

{
  self->pid = g_random_int_range (1, 100000);
  self->maximized = BAMF_WINDOW_FLOATING;
}
gboolean bamf_legacy_window_test_is_active ( BamfLegacyWindow *  legacy_window)

Definition at line 77 of file bamf-legacy-window-test.c.

{
  BamfLegacyWindowTest *self;

  self = BAMF_LEGACY_WINDOW_TEST (legacy_window);

  return self->is_active;
}

Here is the caller graph for this function:

gboolean bamf_legacy_window_test_is_desktop ( BamfLegacyWindow *  legacy_window)

Definition at line 98 of file bamf-legacy-window-test.c.

{
  BamfLegacyWindowTest *self;

  self = BAMF_LEGACY_WINDOW_TEST (legacy_window);

  return self->is_desktop;
}

Here is the caller graph for this function:

gboolean bamf_legacy_window_test_is_skip_tasklist ( BamfLegacyWindow *  legacy_window)

Definition at line 119 of file bamf-legacy-window-test.c.

{
  BamfLegacyWindowTest *self;

  self = BAMF_LEGACY_WINDOW_TEST (legacy_window);

  return self->is_skip;
}

Here is the caller graph for this function:

BamfWindowMaximizationType bamf_legacy_window_test_maximized ( BamfLegacyWindow *  legacy_window)

Definition at line 219 of file bamf-legacy-window-test.c.

{
  BamfLegacyWindowTest *self;
  g_return_val_if_fail (BAMF_IS_LEGACY_WINDOW_TEST (legacy_window), BAMF_WINDOW_FLOATING);

  self = BAMF_LEGACY_WINDOW_TEST (legacy_window);

  return self->maximized;
}

Here is the caller graph for this function:

gboolean bamf_legacy_window_test_needs_attention ( BamfLegacyWindow *  legacy_window)

Definition at line 56 of file bamf-legacy-window-test.c.

{
  BamfLegacyWindowTest *self;

  self = BAMF_LEGACY_WINDOW_TEST (legacy_window);

  return self->needs_attention;
}

Here is the caller graph for this function:

BamfLegacyWindowTest* bamf_legacy_window_test_new ( guint32  xid,
gchar *  name,
gchar *  klass,
gchar *  exec 
)

Definition at line 322 of file bamf-legacy-window-test.c.

{
  BamfLegacyWindowTest *self;

  self = g_object_new (BAMF_TYPE_LEGACY_WINDOW_TEST, NULL);
  self->xid = xid;
  self->name = g_strdup (name);
  self->klass = g_strdup (klass);
  self->exec = g_strdup (exec);

  return self;
}

Here is the caller graph for this function:

void bamf_legacy_window_test_set_active ( BamfLegacyWindowTest *  self,
gboolean  val 
)

Definition at line 66 of file bamf-legacy-window-test.c.

{
  if (self->is_active == val)
    return;

  self->is_active = val;

  g_signal_emit_by_name (self, "state-changed");
}

Here is the caller graph for this function:

void bamf_legacy_window_test_set_application_id ( BamfLegacyWindowTest *  self,
const char *  id 
)

Definition at line 260 of file bamf-legacy-window-test.c.

{
  g_return_if_fail (BAMF_IS_LEGACY_WINDOW_TEST (self));

  self->application_id = g_strdup (id);
}
void bamf_legacy_window_test_set_attention ( BamfLegacyWindowTest *  self,
gboolean  val 
)

Definition at line 45 of file bamf-legacy-window-test.c.

{
  if (self->needs_attention == val)
    return;

  self->needs_attention = val;

  g_signal_emit_by_name (self, "state-changed");
}

Here is the caller graph for this function:

void bamf_legacy_window_test_set_dbus_menu_object_path ( BamfLegacyWindowTest *  self,
const char *  object_path 
)

Definition at line 276 of file bamf-legacy-window-test.c.

{
  g_return_if_fail (BAMF_IS_LEGACY_WINDOW_TEST (self));

  self->dbus_menu_object_path = g_strdup (object_path);
}
void bamf_legacy_window_test_set_desktop ( BamfLegacyWindowTest *  self,
gboolean  val 
)

Definition at line 87 of file bamf-legacy-window-test.c.

{
  if (self->is_desktop == val)
    return;

  self->is_desktop = val;

  g_signal_emit_by_name (self, "state-changed");
}
void bamf_legacy_window_test_set_geometry ( BamfLegacyWindowTest *  self,
int  x,
int  y,
int  width,
int  height 
)

Definition at line 236 of file bamf-legacy-window-test.c.

{
  g_return_if_fail (BAMF_IS_LEGACY_WINDOW_TEST (self));

  self->geometry.x = x;
  self->geometry.y = y;
  self->geometry.width = width;
  self->geometry.height = height;
  g_signal_emit_by_name (self, BAMF_LEGACY_WINDOW_SIGNAL_GEOMETRY_CHANGED);
}

Here is the caller graph for this function:

void bamf_legacy_window_test_set_maximized ( BamfLegacyWindowTest *  self,
BamfWindowMaximizationType  maximized 
)

Definition at line 249 of file bamf-legacy-window-test.c.

{
  g_return_if_fail (BAMF_IS_LEGACY_WINDOW_TEST (self));

  self->maximized = maximized;
  g_signal_emit_by_name (self, BAMF_LEGACY_WINDOW_SIGNAL_GEOMETRY_CHANGED);
  g_signal_emit_by_name (self, BAMF_LEGACY_WINDOW_SIGNAL_STATE_CHANGED);
}

Here is the caller graph for this function:

void bamf_legacy_window_test_set_name ( BamfLegacyWindowTest *  self,
char *  val 
)

Definition at line 129 of file bamf-legacy-window-test.c.

{
  if (g_strcmp0 (self->name, val) == 0)
    return;

  self->name = val;

  g_signal_emit_by_name (self, "name-changed");
}
void bamf_legacy_window_test_set_skip ( BamfLegacyWindowTest *  self,
gboolean  val 
)

Definition at line 108 of file bamf-legacy-window-test.c.

{
  if (self->is_skip == val)
    return;

  self->is_skip = val;

  g_signal_emit_by_name (self, "state-changed");
}

Here is the caller graph for this function:

void bamf_legacy_window_test_set_unique_bus_name ( BamfLegacyWindowTest *  self,
const char *  bus_name 
)

Definition at line 268 of file bamf-legacy-window-test.c.

{
  g_return_if_fail (BAMF_IS_LEGACY_WINDOW_TEST (self));

  self->unique_bus_name = g_strdup (bus_name);
}
G_DEFINE_TYPE ( BamfLegacyWindowTest  ,
bamf_legacy_window_test  ,
BAMF_TYPE_LEGACY_WINDOW   
)