PhoshActivity

PhoshActivity — An app in the favorites overview

Functions

Properties

char * app-id Read / Write / Construct Only
gboolean maximized Read / Write
char * title Read / Write / Construct Only
int win-height Read / Write
int win-width Read / Write

Signals

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);

phosh_activity_set_thumbnail ()

void
phosh_activity_set_thumbnail (PhoshActivity *self,
                              PhoshThumbnail *thumbnail);

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”                   char *

The application id.

Owner: PhoshActivity

Flags: Read / Write / Construct Only

Default value: ""


The “maximized” property

  “maximized”                gboolean

Whether the window is maximized.

Owner: PhoshActivity

Flags: Read / Write

Default value: FALSE


The “title” property

  “title”                    char *

The window's title.

Owner: PhoshActivity

Flags: Read / Write / Construct Only

Default value: ""


The “win-height” property

  “win-height”               int

The window's height.

Owner: PhoshActivity

Flags: Read / Write

Allowed values: >= 0

Default value: 300


The “win-width” property

  “win-width”                int

The window's width.

Owner: PhoshActivity

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