PhoshActivity

PhoshActivity — An app in the faovorites overview

Functions

GtkWidget * phosh_activity_new ()
const char * phosh_activity_get_app_id ()
const char * phosh_activity_get_title ()
void phosh_activity_set_title ()

Properties

gchar * app-id Read / Write / Construct Only
gchar * title Read / Write / Construct Only
gint win-height Read / Write
gint win-width Read / Write

Signals

void close-clicked Run Last

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkWidget
            ╰── GtkContainer
                ╰── GtkBin
                    ╰── GtkButton
                        ╰── PhoshActivity

Implemented Interfaces

PhoshActivity implements AtkImplementorIface, GtkBuildable, GtkActionable and GtkActivatable.

Description

The PhoshActivity is used to select a running application in the overview.

Functions

phosh_activity_new ()

GtkWidget *
phosh_activity_new (const char *app_id,
                    const char *title);

phosh_activity_get_app_id ()

const char *
phosh_activity_get_app_id (PhoshActivity *self);

phosh_activity_get_title ()

const char *
phosh_activity_get_title (PhoshActivity *self);

phosh_activity_set_title ()

void
phosh_activity_set_title (PhoshActivity *self,
                          const char *title);

Types and Values

PHOSH_TYPE_ACTIVITY

#define PHOSH_TYPE_ACTIVITY (phosh_activity_get_type())

PhoshActivity

typedef struct _PhoshActivity PhoshActivity;

Property Details

The “app-id” property

  “app-id”                   gchar *

The application id.

Flags: Read / Write / Construct Only

Default value: ""


The “title” property

  “title”                    gchar *

The window's title.

Flags: Read / Write / Construct Only

Default value: ""


The “win-height” property

  “win-height”               gint

The window's height.

Flags: Read / Write

Allowed values: >= 0

Default value: 300


The “win-width” property

  “win-width”                gint

The window's width.

Flags: Read / Write

Allowed values: >= 0

Default value: 300

Signal Details

The “close-clicked” signal

void
user_function (PhoshActivity *phoshactivity,
               gpointer       user_data)

Flags: Run Last