diff --git a/data/80xapp-gtk3-module b/data/80xapp-gtk3-module deleted file mode 100644 index 004cebb..0000000 --- a/data/80xapp-gtk3-module +++ /dev/null @@ -1,9 +0,0 @@ -# This file is sourced by Xsession(5), not executed. - -if [ -z "$GTK_MODULES" ] ; then - GTK_MODULES="xapp-gtk3-module" -else - GTK_MODULES="$GTK_MODULES:xapp-gtk3-module" -fi - -export GTK_MODULES diff --git a/data/80xapp-gtk3-module.sh b/data/80xapp-gtk3-module.sh new file mode 100644 index 0000000..1cf5e86 --- /dev/null +++ b/data/80xapp-gtk3-module.sh @@ -0,0 +1,9 @@ +# This file is sourced by xinit(1) or a display manager's Xsession, not executed. + +if [ -z "$GTK_MODULES" ] ; then + GTK_MODULES="xapp-gtk3-module" +else + GTK_MODULES="$GTK_MODULES:xapp-gtk3-module" +fi + +export GTK_MODULES diff --git a/data/meson.build b/data/meson.build index e3d768a..5e3d464 100644 --- a/data/meson.build +++ b/data/meson.build @@ -1,3 +1,11 @@ -install_data(['80xapp-gtk3-module'], - install_dir: join_paths(get_option('sysconfdir'), 'X11', 'Xsession.d') +xinitrc_dir = join_paths(get_option('sysconfdir'), 'X11', 'xinit', 'xinitrc.d') +filename = '80xapp-gtk3-module.sh' + +install_data([filename], + install_dir: xinitrc_dir ) + +meson.add_install_script(join_paths(meson.source_root(), 'meson-scripts', 'module_xinit_fix_perms.py'), + xinitrc_dir, + filename +) diff --git a/debian/changelog b/debian/changelog index 7d9e3df..0d88947 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,33 @@ +xapp (2.0.1) ulyssa; urgency=medium + + [ Clement Lefebvre ] + * Update docs + + [ Eli Schwartz ] + * fix xorg-server startup variable + + [ Michael Webster ] + * favorites: Make sure initializing favorites also initializes the uri scheme. + * xapp-favorites.c: Add a note about the favorites uri in the class description. + * build/install: Make the favorite gtk module's xinit file executable. + * build: update some dependencies. + * xapp-gtk3-module.c: Override GObject's constructed vfunc to inject the favorites uri into GtkPlacesSidebars rather than hooking onto a signal. + * build: use buildtype=debugoptimized by default. + * sn-item.c: Fix typo. + * various: Fix some previously missed build warnings. + * xapp-gtk3-module.c: Don't add a favorites section if there aren't any favorites. + * favorite-vfs-file.c: Don't assume a GError was passed in for file_query_info. + * favorite-vfs-file-enumerator.c: Fix a couple more places where an error was assumed. + + [ NikoKrause ] + * change favorite icons + + [ Michael Webster ] + * favorite-vfs-file.c: Don't free priv->uri until finalize. + * favorites: Fix some leaks revealed by valgrind. + + -- Clement Lefebvre Tue, 08 Dec 2020 10:07:26 +0000 + xapp (2.0.0) ulyssa; urgency=medium [ Michael Webster ] diff --git a/debian/control b/debian/control index de0fd45..ea2fbbf 100644 --- a/debian/control +++ b/debian/control @@ -11,9 +11,9 @@ intltool (>= 0.40.6), libgdk-pixbuf2.0-dev (>= 2.22.0), libgirepository1.0-dev (>= 0.10.2-1~), - libglib2.0-dev (>= 2.37.3), + libglib2.0-dev (>= 2.44), libgnomekbd-dev, - libgtk-3-dev (>= 3.3.16), + libgtk-3-dev (>= 3.16), libdbusmenu-gtk3-dev, libx11-dev, libxkbfile-dev, diff --git a/debian/rules b/debian/rules index c66b9c5..0429427 100755 --- a/debian/rules +++ b/debian/rules @@ -9,7 +9,8 @@ dh_auto_configure -- \ --libexecdir=/usr/libexec \ -D docs=true \ - -D deprecated_warnings=false + -D deprecated_warnings=false \ + --buildtype=debugoptimized override_dh_strip: dh_strip --dbg-package=libxapp-dbg diff --git a/docs/reference/XAppFavorites.html b/docs/reference/XAppFavorites.html new file mode 100644 index 0000000..cf8ab1a --- /dev/null +++ b/docs/reference/XAppFavorites.html @@ -0,0 +1,734 @@ + + + + +XAppFavorites: XApp Reference Manual + + + + + + + + + + + + + + + + +
+
+
+ + +
+

XAppFavorites

+

XAppFavorites — Keeps track of favorite files.

+
+
+

Functions

+
++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+XAppFavorites * + +xapp_favorites_get_default () +
+GList * + +xapp_favorites_get_favorites () +
+gint + +xapp_favorites_get_n_favorites () +
+XAppFavoriteInfo * + +xapp_favorites_find_by_display_name () +
+XAppFavoriteInfo * + +xapp_favorites_find_by_uri () +
+void + +xapp_favorites_add () +
+void + +xapp_favorites_remove () +
+void + +xapp_favorites_launch () +
+void + +xapp_favorites_rename () +
+XAppFavoriteInfo * + +xapp_favorite_info_copy () +
+void + +xapp_favorite_info_free () +
+void + +(*XAppFavoritesItemSelectedCallback) () +
+GtkWidget * + +xapp_favorites_create_menu () +
+GList * + +xapp_favorites_create_actions () +
+
+
+

Signals

+
+++++ + + + + + +
voidchangedAction
+
+
+

Types and Values

+
++++ + + + + + + + + + + + + + + +
#defineXAPP_TYPE_FAVORITES
structXAppFavoriteInfo
 XAppFavorites
+
+
+

Object Hierarchy

+
    GBoxed
+    ╰── XAppFavoriteInfo
+    GObject
+    ╰── XAppFavorites
+
+
+
+

Description

+

The XAppFavorites class allows applications display frequently-used files and +provide a safe mechanism for launching them.

+

A list of XAppFavoriteInfos can be retrieved in full, or only for specific mimetypes.

+

XAppFavorites are new for 2.0

+
+
+

Functions

+
+

xapp_favorites_get_default ()

+
XAppFavorites *
+xapp_favorites_get_default (void);
+

Returns the XAppFavorites instance.

+
+

Returns

+

the XAppFavorites instance for the process. Do not free.

+

[transfer none]

+
+

Since: 2.0

+
+
+
+

xapp_favorites_get_favorites ()

+
GList *
+xapp_favorites_get_favorites (XAppFavorites *favorites,
+                              const gchar **mimetypes);
+

Gets a list of all favorites. If mimetype is not NULL, the list will +contain only favorites with that mimetype.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

favorites

The XAppFavorites

 

mimetypes

The mimetypes to filter by for results.

[nullable]
+
+
+

Returns

+

a list of XAppFavoriteInfos. +Free the list with g_list_free, free elements with xapp_favorite_info_free.

+

[element-type XAppFavoriteInfo][transfer full]

+
+

Since: 2.0

+
+
+
+

xapp_favorites_get_n_favorites ()

+
gint
+xapp_favorites_get_n_favorites (XAppFavorites *favorites);
+
+

Parameters

+
+++++ + + + + + +

favorites

The XAppFavorites

 
+
+
+

Returns

+

The number of favorite files

+
+

Since: 2.0

+
+
+
+

xapp_favorites_find_by_display_name ()

+
XAppFavoriteInfo *
+xapp_favorites_find_by_display_name (XAppFavorites *favorites,
+                                     const gchar *display_name);
+

Looks for an XAppFavoriteInfo that corresponds to display_name +.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

favorites

The XAppFavorites

 

display_name

The display name to lookup info for.

[not nullable]
+
+
+

Returns

+

an XAppFavoriteInfo or NULL if one was not found. This is owned +by the favorites manager and should not be freed.

+

[transfer none]

+
+

Since: 2.0

+
+
+
+

xapp_favorites_find_by_uri ()

+
XAppFavoriteInfo *
+xapp_favorites_find_by_uri (XAppFavorites *favorites,
+                            const gchar *uri);
+

Looks for an XAppFavoriteInfo that corresponds to uri +.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

favorites

The XAppFavorites

 

uri

The uri to lookup info for.

[not nullable]
+
+
+

Returns

+

an XAppFavoriteInfo or NULL if one was not found. This is owned +by the favorites manager and should not be freed.

+

[transfer none]

+
+

Since: 2.0

+
+
+
+

xapp_favorites_add ()

+
void
+xapp_favorites_add (XAppFavorites *favorites,
+                    const gchar *uri);
+

Adds a new favorite. If the uri already exists, this does nothing.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

favorites

The XAppFavorites

 

uri

The uri the favorite is for

 
+
+

Since: 2.0

+
+
+
+

xapp_favorites_remove ()

+
void
+xapp_favorites_remove (XAppFavorites *favorites,
+                       const gchar *uri);
+

Removes a favorite from the list.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

favorites

The XAppFavorites

 

uri

The uri for the favorite being removed

 
+
+

Since: 2.0

+
+
+
+

xapp_favorites_launch ()

+
void
+xapp_favorites_launch (XAppFavorites *favorites,
+                       const gchar *uri,
+                       guint32 timestamp);
+

Opens a favorite in its default app.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

favorites

The XAppFavorites

 

uri

The uri for the favorite to launch

 

timestamp

The timestamp from an event or 0

 
+
+

Since: 2.0

+
+
+
+

xapp_favorites_rename ()

+
void
+xapp_favorites_rename (XAppFavorites *favorites,
+                       const gchar *old_uri,
+                       const gchar *new_uri);
+

Removes old_uri and adds new_uri. This is mainly for file managers to use as +a convenience instead of add/remove, and guarantees the result, without having to +worry about multiple dbus calls (gsettings).

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

old_uri

the old favorite's uri.

 

new_uri

The new uri.

 
+
+

Since: 2.0

+
+
+
+

xapp_favorite_info_copy ()

+
XAppFavoriteInfo *
+xapp_favorite_info_copy (const XAppFavoriteInfo *info);
+

Makes an exact copy of an existing XAppFavoriteInfo.

+
+

Parameters

+
+++++ + + + + + +

info

The XAppFavoriteInfo to duplicate.

 
+
+
+

Returns

+

a new XAppFavoriteInfo. Free using xapp_favorite_info_free.

+

Since 2.0.

+

[transfer full]

+
+
+
+
+

xapp_favorite_info_free ()

+
void
+xapp_favorite_info_free (XAppFavoriteInfo *info);
+

Destroys the XAppFavoriteInfo.

+

Since 2.0

+
+

Parameters

+
+++++ + + + + + +

info

The XAppFavoriteInfo to free.

 
+
+
+
+
+

XAppFavoritesItemSelectedCallback ()

+
void
+(*XAppFavoritesItemSelectedCallback) (XAppFavorites *favorites,
+                                      const gchar *uri,
+                                      gpointer user_data);
+
+
+
+

xapp_favorites_create_menu ()

+
GtkWidget *
+xapp_favorites_create_menu (XAppFavorites *favorites,
+                            const gchar **mimetypes,
+                            XAppFavoritesItemSelectedCallback callback,
+                            gpointer user_data,
+                            GDestroyNotify func);
+

Generates a GtkMenu widget populated with favorites. The callback will be called when +a menu item has been activated, and will include the uri of the respective item.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + +

favorites

The XAppFavorites instance.

 

mimetypes

The mimetypes to filter for, or NULL to include all favorites.

[nullable]

callback

(closure user_data): The callback to use when a menu item has been selected.

[scope notified]

user_data

The data to pass to the callback.

[closure]

func

Destroy function for user_data

 
+
+
+

Returns

+

a new GtkMenu populated with a list of favorites, or NULL +if there are no favorites.

+

[transfer full]

+
+

Since: 2.0

+
+
+
+

xapp_favorites_create_actions ()

+
GList *
+xapp_favorites_create_actions (XAppFavorites *favorites,
+                               const gchar **mimetypes);
+

Generates a list of favorite GtkActions.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

favorites

The XAppFavorites instance.

 

mimetypes

The mimetypes to filter for, or NULL to include all favorites.

[nullable]
+
+
+

Returns

+

a new GtkActionGroup populated with a list of favorites, or NULL +if there are no favorites.

+

[element-type Gtk.Action][transfer full]

+
+

Since: 2.0

+
+
+
+

Types and Values

+
+

XAPP_TYPE_FAVORITES

+
#define XAPP_TYPE_FAVORITES           (xapp_favorites_get_type ())
+
+
+
+
+

struct XAppFavoriteInfo

+
struct XAppFavoriteInfo {
+    gchar *uri;
+    gchar *display_name;
+    gchar *cached_mimetype;
+};
+
+

Information related to a single favorite file.

+
+

Members

+
+++++ + + + + + + + + + + + + + + + + + +

gchar *uri;

The uri to the favorite file.

 

gchar *display_name;

The name for use when displaying the item. This may not exactly match +the filename if there are files with the same name but in different folders.

 

gchar *cached_mimetype;

The mimetype calculated for the uri when it was added to favorites.

 
+
+
+
+
+

XAppFavorites

+
typedef struct _XAppFavorites XAppFavorites;
+
+
+
+

Signal Details

+
+

The “changed” signal

+
void
+user_function (XAppFavorites *xappfavorites,
+               gpointer       user_data)
+

Notifies when the favorites list has changed.

+
+

Parameters

+
+++++ + + + + + +

user_data

user data set when the signal handler was connected.

 
+
+

Flags: Action

+
+
+
+ + + \ No newline at end of file diff --git a/docs/reference/XAppGtkWindow.html b/docs/reference/XAppGtkWindow.html index c4a8f14..9d77466 100644 --- a/docs/reference/XAppGtkWindow.html +++ b/docs/reference/XAppGtkWindow.html @@ -6,9 +6,9 @@ - + - + @@ -21,7 +21,7 @@ Home Up -Prev +Prev Next
@@ -30,7 +30,7 @@

XAppGtkWindow

XAppGtkWindow — A subclass of GtkWindow that allows additional - communication with the window manager.

+communication with the window manager.

@@ -38,8 +38,8 @@

Functions

--++ @@ -153,8 +153,8 @@

Types and Values

--++ @@ -716,6 +716,6 @@ +
Generated by GTK-Doc V1.32diff --git a/docs/reference/XAppIconChooserButton.html b/docs/reference/XAppIconChooserButton.html index 7d8c803..47d5ede 100644 --- a/docs/reference/XAppIconChooserButton.html +++ b/docs/reference/XAppIconChooserButton.html @@ -8,7 +8,7 @@ - + @@ -38,8 +38,8 @@

Functions

--++ @@ -133,8 +133,8 @@

Types and Values

--++ @@ -380,6 +380,7 @@

The “category” property

  “category”                 gchar *

The category selected by default.

+

Owner: XAppIconChooserButton

Flags: Read / Write

Default value: ""

@@ -390,6 +391,7 @@

The preferred size to use when looking up icons. This only works with icon names. Additionally, there is no guarantee that a selected icon name will exist in a particular size.

+

Owner: XAppIconChooserButton

Flags: Read / Write

Default value: ""

@@ -398,12 +400,13 @@

The “icon-size” property

  “icon-size”                GtkIconSize

The size to use when displaying the icon.

+

Owner: XAppIconChooserButton

Flags: Read / Write

Default value: GTK_ICON_SIZE_DND

+
Generated by GTK-Doc V1.32diff --git a/docs/reference/XAppIconChooserDialog.html b/docs/reference/XAppIconChooserDialog.html index a43cb14..08492df 100644 --- a/docs/reference/XAppIconChooserDialog.html +++ b/docs/reference/XAppIconChooserDialog.html @@ -8,7 +8,7 @@ - + @@ -39,8 +39,8 @@

Functions

--++ @@ -150,9 +150,9 @@

Signals

---+++ @@ -172,8 +172,8 @@

Types and Values

--++ @@ -556,6 +556,7 @@

The “allow-paths” property

  “allow-paths”              gboolean

Whether to allow paths to be searched and selected or only icon names.

+

Owner: XAppIconChooserDialog

Flags: Read / Write

Default value: TRUE

@@ -564,6 +565,7 @@

The “default-icon” property

  “default-icon”             gchar *

The icon to use by default.

+

Owner: XAppIconChooserDialog

Flags: Read / Write

Default value: NULL

@@ -574,6 +576,7 @@

The preferred size to use when looking up icons. This only works with icon names. Additionally, there is no guarantee that a selected icon name will exist in a particular size.

+

Owner: XAppIconChooserDialog

Flags: Read / Write

Default value: XAPP_ICON_SIZE_32

@@ -598,6 +601,6 @@ +
Generated by GTK-Doc V1.32diff --git a/docs/reference/XAppKbdLayoutController.html b/docs/reference/XAppKbdLayoutController.html index fd7e474..f744230 100644 --- a/docs/reference/XAppKbdLayoutController.html +++ b/docs/reference/XAppKbdLayoutController.html @@ -8,7 +8,7 @@ - + @@ -38,8 +38,8 @@

Functions

--++ @@ -200,9 +200,9 @@

Signals

---+++ @@ -709,14 +709,12 @@
-

Types and Values

-
-

Property Details

The “enabled” property

  “enabled”                  gboolean

Whether we're enabled (more than one keyboard layout is installed).

+

Owner: XAppKbdLayoutController

Flags: Read

Default value: FALSE

@@ -742,6 +740,6 @@
+
Generated by GTK-Doc V1.32diff --git a/docs/reference/XAppMonitorBlanker.html b/docs/reference/XAppMonitorBlanker.html index 15a15d4..bc2e093 100644 --- a/docs/reference/XAppMonitorBlanker.html +++ b/docs/reference/XAppMonitorBlanker.html @@ -8,7 +8,7 @@ - + @@ -36,8 +36,8 @@

Functions

--++ @@ -79,8 +79,8 @@

Types and Values

--++ @@ -217,6 +217,6 @@ +
Generated by GTK-Doc V1.32diff --git a/docs/reference/XAppObjectManagerClient.html b/docs/reference/XAppObjectManagerClient.html new file mode 100644 index 0000000..75a34c2 --- /dev/null +++ b/docs/reference/XAppObjectManagerClient.html @@ -0,0 +1,3251 @@ + + + + +XAppObjectManagerClient: XApp Reference Manual + + + + + + + + + +
+ + + + + + +
+
+
+ + +
+

XAppObjectManagerClient

+

XAppObjectManagerClient

+
+
+

Functions

+
++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+GDBusInterfaceInfo * + +xapp_status_icon_interface_interface_info () +
+guint + +xapp_status_icon_interface_override_properties () +
+void + +xapp_status_icon_interface_complete_button_press () +
+void + +xapp_status_icon_interface_complete_button_release () +
+void + +xapp_status_icon_interface_complete_scroll () +
+void + +xapp_status_icon_interface_call_button_press () +
+gboolean + +xapp_status_icon_interface_call_button_press_finish () +
+gboolean + +xapp_status_icon_interface_call_button_press_sync () +
+void + +xapp_status_icon_interface_call_button_release () +
+gboolean + +xapp_status_icon_interface_call_button_release_finish () +
+gboolean + +xapp_status_icon_interface_call_button_release_sync () +
+void + +xapp_status_icon_interface_call_scroll () +
+gboolean + +xapp_status_icon_interface_call_scroll_finish () +
+gboolean + +xapp_status_icon_interface_call_scroll_sync () +
const gchar * + +xapp_status_icon_interface_get_name () +
+gchar * + +xapp_status_icon_interface_dup_name () +
+void + +xapp_status_icon_interface_set_name () +
const gchar * + +xapp_status_icon_interface_get_icon_name () +
+gchar * + +xapp_status_icon_interface_dup_icon_name () +
+void + +xapp_status_icon_interface_set_icon_name () +
const gchar * + +xapp_status_icon_interface_get_tooltip_text () +
+gchar * + +xapp_status_icon_interface_dup_tooltip_text () +
+void + +xapp_status_icon_interface_set_tooltip_text () +
const gchar * + +xapp_status_icon_interface_get_label () +
+gchar * + +xapp_status_icon_interface_dup_label () +
+void + +xapp_status_icon_interface_set_label () +
+gboolean + +xapp_status_icon_interface_get_visible () +
+void + +xapp_status_icon_interface_set_visible () +
+gint + +xapp_status_icon_interface_get_icon_size () +
+void + +xapp_status_icon_interface_set_icon_size () +
+gboolean + +xapp_status_icon_interface_get_primary_menu_is_open () +
+void + +xapp_status_icon_interface_set_primary_menu_is_open () +
+gboolean + +xapp_status_icon_interface_get_secondary_menu_is_open () +
+void + +xapp_status_icon_interface_set_secondary_menu_is_open () +
const gchar * + +xapp_status_icon_interface_get_metadata () +
+gchar * + +xapp_status_icon_interface_dup_metadata () +
+void + +xapp_status_icon_interface_set_metadata () +
+void + +xapp_status_icon_interface_proxy_new () +
+XAppStatusIconInterface * + +xapp_status_icon_interface_proxy_new_finish () +
+XAppStatusIconInterface * + +xapp_status_icon_interface_proxy_new_sync () +
+void + +xapp_status_icon_interface_proxy_new_for_bus () +
+XAppStatusIconInterface * + +xapp_status_icon_interface_proxy_new_for_bus_finish () +
+XAppStatusIconInterface * + +xapp_status_icon_interface_proxy_new_for_bus_sync () +
+XAppStatusIconInterface * + +xapp_status_icon_interface_skeleton_new () +
+XAppStatusIconInterface * + +xapp_object_get_status_icon_interface () +
+XAppStatusIconInterface * + +xapp_object_peek_status_icon_interface () +
+XAppObjectProxy * + +xapp_object_proxy_new () +
+XAppObjectSkeleton * + +xapp_object_skeleton_new () +
+void + +xapp_object_skeleton_set_status_icon_interface () +
+GType + +xapp_object_manager_client_get_proxy_type () +
+void + +xapp_object_manager_client_new () +
+GDBusObjectManager * + +xapp_object_manager_client_new_finish () +
+GDBusObjectManager * + +xapp_object_manager_client_new_sync () +
+void + +xapp_object_manager_client_new_for_bus () +
+GDBusObjectManager * + +xapp_object_manager_client_new_for_bus_finish () +
+GDBusObjectManager * + +xapp_object_manager_client_new_for_bus_sync () +
+
+
+

Properties

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+XAppStatusIconInterface *status-icon-interfaceRead / Write
+gchar *icon-nameRead / Write
ginticon-sizeRead / Write
+gchar *labelRead / Write
+gchar *metadataRead / Write
+gchar *nameRead / Write
gbooleanprimary-menu-is-openRead / Write
gbooleansecondary-menu-is-openRead / Write
+gchar *tooltip-textRead / Write
gbooleanvisibleRead / Write
+
+ +
+

Object Hierarchy

+
    GInterface
+    ├── XAppObject
+    ╰── XAppStatusIconInterface
+    GObject
+    ├── GDBusInterfaceSkeleton
+       ╰── XAppStatusIconInterfaceSkeleton
+    ├── GDBusObjectManagerClient
+       ╰── XAppObjectManagerClient
+    ├── GDBusObjectProxy
+       ╰── XAppObjectProxy
+    ├── GDBusObjectSkeleton
+       ╰── XAppObjectSkeleton
+    ╰── GDBusProxy
+        ╰── XAppStatusIconInterfaceProxy
+
+
+
+

Description

+
+
+

Functions

+
+

xapp_status_icon_interface_interface_info ()

+
GDBusInterfaceInfo *
+xapp_status_icon_interface_interface_info
+                               (void);
+

Gets a machine-readable description of the org.x.StatusIcon D-Bus interface.

+
+

Returns

+

A GDBusInterfaceInfo. Do not free.

+

[transfer none]

+
+
+
+
+

xapp_status_icon_interface_override_properties ()

+
guint
+xapp_status_icon_interface_override_properties
+                               (GObjectClass *klass,
+                                guint property_id_begin);
+

Overrides all GObject properties in the XAppStatusIconInterface interface for a concrete class. +The properties are overridden in the order they are defined.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

klass

The class structure for a GObject derived class.

 

property_id_begin

The property id to assign to the first overridden property.

 
+
+
+

Returns

+

The last property id.

+
+
+
+
+

xapp_status_icon_interface_complete_button_press ()

+
void
+xapp_status_icon_interface_complete_button_press
+                               (XAppStatusIconInterface *object,
+                                GDBusMethodInvocation *invocation);
+

Helper function used in service implementations to finish handling invocations of the ButtonPress() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

+

This method will free invocation +, you cannot use it afterwards.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

object

A XAppStatusIconInterface.

 

invocation

A GDBusMethodInvocation.

[transfer full]
+
+
+
+
+

xapp_status_icon_interface_complete_button_release ()

+
void
+xapp_status_icon_interface_complete_button_release
+                               (XAppStatusIconInterface *object,
+                                GDBusMethodInvocation *invocation);
+

Helper function used in service implementations to finish handling invocations of the ButtonRelease() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

+

This method will free invocation +, you cannot use it afterwards.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

object

A XAppStatusIconInterface.

 

invocation

A GDBusMethodInvocation.

[transfer full]
+
+
+
+
+

xapp_status_icon_interface_complete_scroll ()

+
void
+xapp_status_icon_interface_complete_scroll
+                               (XAppStatusIconInterface *object,
+                                GDBusMethodInvocation *invocation);
+

Helper function used in service implementations to finish handling invocations of the Scroll() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

+

This method will free invocation +, you cannot use it afterwards.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

object

A XAppStatusIconInterface.

 

invocation

A GDBusMethodInvocation.

[transfer full]
+
+
+
+
+

xapp_status_icon_interface_call_button_press ()

+
void
+xapp_status_icon_interface_call_button_press
+                               (XAppStatusIconInterface *proxy,
+                                gint arg_x,
+                                gint arg_y,
+                                guint arg_button,
+                                guint arg_time,
+                                gint arg_panel_position,
+                                GCancellable *cancellable,
+                                GAsyncReadyCallback callback,
+                                gpointer user_data);
+

Asynchronously invokes the ButtonPress() D-Bus method on proxy +. +When the operation is finished, callback + will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). +You can then call xapp_status_icon_interface_call_button_press_finish() to get the result of the operation.

+

See xapp_status_icon_interface_call_button_press_sync() for the synchronous, blocking version of this method.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

proxy

A XAppStatusIconInterfaceProxy.

 

arg_x

Argument to pass with the method invocation.

 

arg_y

Argument to pass with the method invocation.

 

arg_button

Argument to pass with the method invocation.

 

arg_time

Argument to pass with the method invocation.

 

arg_panel_position

Argument to pass with the method invocation.

 

cancellable

A GCancellable or NULL.

[nullable]

callback

A GAsyncReadyCallback to call when the request is satisfied or NULL.

 

user_data

User data to pass to callback +.

 
+
+
+
+
+

xapp_status_icon_interface_call_button_press_finish ()

+
gboolean
+xapp_status_icon_interface_call_button_press_finish
+                               (XAppStatusIconInterface *proxy,
+                                GAsyncResult *res,
+                                GError **error);
+

Finishes an operation started with xapp_status_icon_interface_call_button_press().

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

proxy

A XAppStatusIconInterfaceProxy.

 

res

The GAsyncResult obtained from the GAsyncReadyCallback passed to xapp_status_icon_interface_call_button_press().

 

error

Return location for error or NULL.

 
+
+
+

Returns

+

TRUE if the call succeded, FALSE if error +is set.

+

[skip]

+
+
+
+
+

xapp_status_icon_interface_call_button_press_sync ()

+
gboolean
+xapp_status_icon_interface_call_button_press_sync
+                               (XAppStatusIconInterface *proxy,
+                                gint arg_x,
+                                gint arg_y,
+                                guint arg_button,
+                                guint arg_time,
+                                gint arg_panel_position,
+                                GCancellable *cancellable,
+                                GError **error);
+

Synchronously invokes the ButtonPress() D-Bus method on proxy +. The calling thread is blocked until a reply is received.

+

See xapp_status_icon_interface_call_button_press() for the asynchronous version of this method.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

proxy

A XAppStatusIconInterfaceProxy.

 

arg_x

Argument to pass with the method invocation.

 

arg_y

Argument to pass with the method invocation.

 

arg_button

Argument to pass with the method invocation.

 

arg_time

Argument to pass with the method invocation.

 

arg_panel_position

Argument to pass with the method invocation.

 

cancellable

A GCancellable or NULL.

[nullable]

error

Return location for error or NULL.

 
+
+
+

Returns

+

TRUE if the call succeded, FALSE if error +is set.

+

[skip]

+
+
+
+
+

xapp_status_icon_interface_call_button_release ()

+
void
+xapp_status_icon_interface_call_button_release
+                               (XAppStatusIconInterface *proxy,
+                                gint arg_x,
+                                gint arg_y,
+                                guint arg_button,
+                                guint arg_time,
+                                gint arg_panel_position,
+                                GCancellable *cancellable,
+                                GAsyncReadyCallback callback,
+                                gpointer user_data);
+

Asynchronously invokes the ButtonRelease() D-Bus method on proxy +. +When the operation is finished, callback + will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). +You can then call xapp_status_icon_interface_call_button_release_finish() to get the result of the operation.

+

See xapp_status_icon_interface_call_button_release_sync() for the synchronous, blocking version of this method.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

proxy

A XAppStatusIconInterfaceProxy.

 

arg_x

Argument to pass with the method invocation.

 

arg_y

Argument to pass with the method invocation.

 

arg_button

Argument to pass with the method invocation.

 

arg_time

Argument to pass with the method invocation.

 

arg_panel_position

Argument to pass with the method invocation.

 

cancellable

A GCancellable or NULL.

[nullable]

callback

A GAsyncReadyCallback to call when the request is satisfied or NULL.

 

user_data

User data to pass to callback +.

 
+
+
+
+
+

xapp_status_icon_interface_call_button_release_finish ()

+
gboolean
+xapp_status_icon_interface_call_button_release_finish
+                               (XAppStatusIconInterface *proxy,
+                                GAsyncResult *res,
+                                GError **error);
+

Finishes an operation started with xapp_status_icon_interface_call_button_release().

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

proxy

A XAppStatusIconInterfaceProxy.

 

res

The GAsyncResult obtained from the GAsyncReadyCallback passed to xapp_status_icon_interface_call_button_release().

 

error

Return location for error or NULL.

 
+
+
+

Returns

+

TRUE if the call succeded, FALSE if error +is set.

+

[skip]

+
+
+
+
+

xapp_status_icon_interface_call_button_release_sync ()

+
gboolean
+xapp_status_icon_interface_call_button_release_sync
+                               (XAppStatusIconInterface *proxy,
+                                gint arg_x,
+                                gint arg_y,
+                                guint arg_button,
+                                guint arg_time,
+                                gint arg_panel_position,
+                                GCancellable *cancellable,
+                                GError **error);
+

Synchronously invokes the ButtonRelease() D-Bus method on proxy +. The calling thread is blocked until a reply is received.

+

See xapp_status_icon_interface_call_button_release() for the asynchronous version of this method.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

proxy

A XAppStatusIconInterfaceProxy.

 

arg_x

Argument to pass with the method invocation.

 

arg_y

Argument to pass with the method invocation.

 

arg_button

Argument to pass with the method invocation.

 

arg_time

Argument to pass with the method invocation.

 

arg_panel_position

Argument to pass with the method invocation.

 

cancellable

A GCancellable or NULL.

[nullable]

error

Return location for error or NULL.

 
+
+
+

Returns

+

TRUE if the call succeded, FALSE if error +is set.

+

[skip]

+
+
+
+
+

xapp_status_icon_interface_call_scroll ()

+
void
+xapp_status_icon_interface_call_scroll
+                               (XAppStatusIconInterface *proxy,
+                                gint arg_delta,
+                                gint arg_orientation,
+                                guint arg_time,
+                                GCancellable *cancellable,
+                                GAsyncReadyCallback callback,
+                                gpointer user_data);
+

Asynchronously invokes the Scroll() D-Bus method on proxy +. +When the operation is finished, callback + will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). +You can then call xapp_status_icon_interface_call_scroll_finish() to get the result of the operation.

+

See xapp_status_icon_interface_call_scroll_sync() for the synchronous, blocking version of this method.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

proxy

A XAppStatusIconInterfaceProxy.

 

arg_delta

Argument to pass with the method invocation.

 

arg_orientation

Argument to pass with the method invocation.

 

arg_time

Argument to pass with the method invocation.

 

cancellable

A GCancellable or NULL.

[nullable]

callback

A GAsyncReadyCallback to call when the request is satisfied or NULL.

 

user_data

User data to pass to callback +.

 
+
+
+
+
+

xapp_status_icon_interface_call_scroll_finish ()

+
gboolean
+xapp_status_icon_interface_call_scroll_finish
+                               (XAppStatusIconInterface *proxy,
+                                GAsyncResult *res,
+                                GError **error);
+

Finishes an operation started with xapp_status_icon_interface_call_scroll().

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + +

proxy

A XAppStatusIconInterfaceProxy.

 

res

The GAsyncResult obtained from the GAsyncReadyCallback passed to xapp_status_icon_interface_call_scroll().

 

error

Return location for error or NULL.

 
+
+
+

Returns

+

TRUE if the call succeded, FALSE if error +is set.

+

[skip]

+
+
+
+
+

xapp_status_icon_interface_call_scroll_sync ()

+
gboolean
+xapp_status_icon_interface_call_scroll_sync
+                               (XAppStatusIconInterface *proxy,
+                                gint arg_delta,
+                                gint arg_orientation,
+                                guint arg_time,
+                                GCancellable *cancellable,
+                                GError **error);
+

Synchronously invokes the Scroll() D-Bus method on proxy +. The calling thread is blocked until a reply is received.

+

See xapp_status_icon_interface_call_scroll() for the asynchronous version of this method.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

proxy

A XAppStatusIconInterfaceProxy.

 

arg_delta

Argument to pass with the method invocation.

 

arg_orientation

Argument to pass with the method invocation.

 

arg_time

Argument to pass with the method invocation.

 

cancellable

A GCancellable or NULL.

[nullable]

error

Return location for error or NULL.

 
+
+
+

Returns

+

TRUE if the call succeded, FALSE if error +is set.

+

[skip]

+
+
+
+
+

xapp_status_icon_interface_get_name ()

+
const gchar *
+xapp_status_icon_interface_get_name (XAppStatusIconInterface *object);
+

Gets the value of the "Name" D-Bus property.

+

Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

+

The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where object + was constructed. Use xapp_status_icon_interface_dup_name() if on another thread.

+

[skip]

+
+

Parameters

+
+++++ + + + + + +

object

A XAppStatusIconInterface.

 
+
+
+

Returns

+

The property value or NULL if the property is not set. Do not free the returned value, it belongs to object +.

+

[transfer none][nullable]

+
+
+
+
+

xapp_status_icon_interface_dup_name ()

+
gchar *
+xapp_status_icon_interface_dup_name (XAppStatusIconInterface *object);
+

Gets a copy of the "Name" D-Bus property.

+

Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

+

[skip]

+
+

Parameters

+
+++++ + + + + + +

object

A XAppStatusIconInterface.

 
+
+
+

Returns

+

The property value or NULL if the property is not set. The returned value should be freed with g_free().

+

[transfer full][nullable]

+
+
+
+
+

xapp_status_icon_interface_set_name ()

+
void
+xapp_status_icon_interface_set_name (XAppStatusIconInterface *object,
+                                     const gchar *value);
+

Sets the "Name" D-Bus property to value +.

+

Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.

+

[skip]

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

object

A XAppStatusIconInterface.

 

value

The value to set.

 
+
+
+
+
+

xapp_status_icon_interface_get_icon_name ()

+
const gchar *
+xapp_status_icon_interface_get_icon_name
+                               (XAppStatusIconInterface *object);
+

Gets the value of the "IconName" D-Bus property.

+

Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

+

The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where object + was constructed. Use xapp_status_icon_interface_dup_icon_name() if on another thread.

+

[skip]

+
+

Parameters

+
+++++ + + + + + +

object

A XAppStatusIconInterface.

 
+
+
+

Returns

+

The property value or NULL if the property is not set. Do not free the returned value, it belongs to object +.

+

[transfer none][nullable]

+
+
+
+
+

xapp_status_icon_interface_dup_icon_name ()

+
gchar *
+xapp_status_icon_interface_dup_icon_name
+                               (XAppStatusIconInterface *object);
+

Gets a copy of the "IconName" D-Bus property.

+

Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

+

[skip]

+
+

Parameters

+
+++++ + + + + + +

object

A XAppStatusIconInterface.

 
+
+
+

Returns

+

The property value or NULL if the property is not set. The returned value should be freed with g_free().

+

[transfer full][nullable]

+
+
+
+
+

xapp_status_icon_interface_set_icon_name ()

+
void
+xapp_status_icon_interface_set_icon_name
+                               (XAppStatusIconInterface *object,
+                                const gchar *value);
+

Sets the "IconName" D-Bus property to value +.

+

Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.

+

[skip]

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

object

A XAppStatusIconInterface.

 

value

The value to set.

 
+
+
+
+
+

xapp_status_icon_interface_get_tooltip_text ()

+
const gchar *
+xapp_status_icon_interface_get_tooltip_text
+                               (XAppStatusIconInterface *object);
+

Gets the value of the "TooltipText" D-Bus property.

+

Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

+

The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where object + was constructed. Use xapp_status_icon_interface_dup_tooltip_text() if on another thread.

+

[skip]

+
+

Parameters

+
+++++ + + + + + +

object

A XAppStatusIconInterface.

 
+
+
+

Returns

+

The property value or NULL if the property is not set. Do not free the returned value, it belongs to object +.

+

[transfer none][nullable]

+
+
+
+
+

xapp_status_icon_interface_dup_tooltip_text ()

+
gchar *
+xapp_status_icon_interface_dup_tooltip_text
+                               (XAppStatusIconInterface *object);
+

Gets a copy of the "TooltipText" D-Bus property.

+

Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

+

[skip]

+
+

Parameters

+
+++++ + + + + + +

object

A XAppStatusIconInterface.

 
+
+
+

Returns

+

The property value or NULL if the property is not set. The returned value should be freed with g_free().

+

[transfer full][nullable]

+
+
+
+
+

xapp_status_icon_interface_set_tooltip_text ()

+
void
+xapp_status_icon_interface_set_tooltip_text
+                               (XAppStatusIconInterface *object,
+                                const gchar *value);
+

Sets the "TooltipText" D-Bus property to value +.

+

Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.

+

[skip]

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

object

A XAppStatusIconInterface.

 

value

The value to set.

 
+
+
+
+
+

xapp_status_icon_interface_get_label ()

+
const gchar *
+xapp_status_icon_interface_get_label (XAppStatusIconInterface *object);
+

Gets the value of the "Label" D-Bus property.

+

Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

+

The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where object + was constructed. Use xapp_status_icon_interface_dup_label() if on another thread.

+

[skip]

+
+

Parameters

+
+++++ + + + + + +

object

A XAppStatusIconInterface.

 
+
+
+

Returns

+

The property value or NULL if the property is not set. Do not free the returned value, it belongs to object +.

+

[transfer none][nullable]

+
+
+
+
+

xapp_status_icon_interface_dup_label ()

+
gchar *
+xapp_status_icon_interface_dup_label (XAppStatusIconInterface *object);
+

Gets a copy of the "Label" D-Bus property.

+

Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

+

[skip]

+
+

Parameters

+
+++++ + + + + + +

object

A XAppStatusIconInterface.

 
+
+
+

Returns

+

The property value or NULL if the property is not set. The returned value should be freed with g_free().

+

[transfer full][nullable]

+
+
+
+
+

xapp_status_icon_interface_set_label ()

+
void
+xapp_status_icon_interface_set_label (XAppStatusIconInterface *object,
+                                      const gchar *value);
+

Sets the "Label" D-Bus property to value +.

+

Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.

+

[skip]

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

object

A XAppStatusIconInterface.

 

value

The value to set.

 
+
+
+
+
+

xapp_status_icon_interface_get_visible ()

+
gboolean
+xapp_status_icon_interface_get_visible
+                               (XAppStatusIconInterface *object);
+

Gets the value of the "Visible" D-Bus property.

+

Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

+

[skip]

+
+

Parameters

+
+++++ + + + + + +

object

A XAppStatusIconInterface.

 
+
+
+

Returns

+

The property value.

+
+
+
+
+

xapp_status_icon_interface_set_visible ()

+
void
+xapp_status_icon_interface_set_visible
+                               (XAppStatusIconInterface *object,
+                                gboolean value);
+

Sets the "Visible" D-Bus property to value +.

+

Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.

+

[skip]

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

object

A XAppStatusIconInterface.

 

value

The value to set.

 
+
+
+
+
+

xapp_status_icon_interface_get_icon_size ()

+
gint
+xapp_status_icon_interface_get_icon_size
+                               (XAppStatusIconInterface *object);
+

Gets the value of the "IconSize" D-Bus property.

+

Since this D-Bus property is both readable and writable, it is meaningful to use this function on both the client- and service-side.

+

[skip]

+
+

Parameters

+
+++++ + + + + + +

object

A XAppStatusIconInterface.

 
+
+
+

Returns

+

The property value.

+
+
+
+
+

xapp_status_icon_interface_set_icon_size ()

+
void
+xapp_status_icon_interface_set_icon_size
+                               (XAppStatusIconInterface *object,
+                                gint value);
+

Sets the "IconSize" D-Bus property to value +.

+

Since this D-Bus property is both readable and writable, it is meaningful to use this function on both the client- and service-side.

+

[skip]

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

object

A XAppStatusIconInterface.

 

value

The value to set.

 
+
+
+
+
+

xapp_status_icon_interface_get_primary_menu_is_open ()

+
gboolean
+xapp_status_icon_interface_get_primary_menu_is_open
+                               (XAppStatusIconInterface *object);
+

Gets the value of the "PrimaryMenuIsOpen" D-Bus property.

+

Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

+

[skip]

+
+

Parameters

+
+++++ + + + + + +

object

A XAppStatusIconInterface.

 
+
+
+

Returns

+

The property value.

+
+
+
+
+

xapp_status_icon_interface_set_primary_menu_is_open ()

+
void
+xapp_status_icon_interface_set_primary_menu_is_open
+                               (XAppStatusIconInterface *object,
+                                gboolean value);
+

Sets the "PrimaryMenuIsOpen" D-Bus property to value +.

+

Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.

+

[skip]

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

object

A XAppStatusIconInterface.

 

value

The value to set.

 
+
+
+
+
+

xapp_status_icon_interface_get_secondary_menu_is_open ()

+
gboolean
+xapp_status_icon_interface_get_secondary_menu_is_open
+                               (XAppStatusIconInterface *object);
+

Gets the value of the "SecondaryMenuIsOpen" D-Bus property.

+

Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

+

[skip]

+
+

Parameters

+
+++++ + + + + + +

object

A XAppStatusIconInterface.

 
+
+
+

Returns

+

The property value.

+
+
+
+
+

xapp_status_icon_interface_set_secondary_menu_is_open ()

+
void
+xapp_status_icon_interface_set_secondary_menu_is_open
+                               (XAppStatusIconInterface *object,
+                                gboolean value);
+

Sets the "SecondaryMenuIsOpen" D-Bus property to value +.

+

Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.

+

[skip]

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

object

A XAppStatusIconInterface.

 

value

The value to set.

 
+
+
+
+
+

xapp_status_icon_interface_get_metadata ()

+
const gchar *
+xapp_status_icon_interface_get_metadata
+                               (XAppStatusIconInterface *object);
+

Gets the value of the "Metadata" D-Bus property.

+

Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

+

The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where object + was constructed. Use xapp_status_icon_interface_dup_metadata() if on another thread.

+

[skip]

+
+

Parameters

+
+++++ + + + + + +

object

A XAppStatusIconInterface.

 
+
+
+

Returns

+

The property value or NULL if the property is not set. Do not free the returned value, it belongs to object +.

+

[transfer none][nullable]

+
+
+
+
+

xapp_status_icon_interface_dup_metadata ()

+
gchar *
+xapp_status_icon_interface_dup_metadata
+                               (XAppStatusIconInterface *object);
+

Gets a copy of the "Metadata" D-Bus property.

+

Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

+

[skip]

+
+

Parameters

+
+++++ + + + + + +

object

A XAppStatusIconInterface.

 
+
+
+

Returns

+

The property value or NULL if the property is not set. The returned value should be freed with g_free().

+

[transfer full][nullable]

+
+
+
+
+

xapp_status_icon_interface_set_metadata ()

+
void
+xapp_status_icon_interface_set_metadata
+                               (XAppStatusIconInterface *object,
+                                const gchar *value);
+

Sets the "Metadata" D-Bus property to value +.

+

Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.

+

[skip]

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

object

A XAppStatusIconInterface.

 

value

The value to set.

 
+
+
+
+
+

xapp_status_icon_interface_proxy_new ()

+
void
+xapp_status_icon_interface_proxy_new (GDBusConnection *connection,
+                                      GDBusProxyFlags flags,
+                                      const gchar *name,
+                                      const gchar *object_path,
+                                      GCancellable *cancellable,
+                                      GAsyncReadyCallback callback,
+                                      gpointer user_data);
+

Asynchronously creates a proxy for the D-Bus interface org.x.StatusIcon. See g_dbus_proxy_new() for more details.

+

When the operation is finished, callback + will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). +You can then call xapp_status_icon_interface_proxy_new_finish() to get the result of the operation.

+

See xapp_status_icon_interface_proxy_new_sync() for the synchronous, blocking version of this constructor.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

connection

A GDBusConnection.

 

flags

Flags from the GDBusProxyFlags enumeration.

 

name

A bus name (well-known or unique) or NULL if connection +is not a message bus connection.

[nullable]

object_path

An object path.

 

cancellable

A GCancellable or NULL.

[nullable]

callback

A GAsyncReadyCallback to call when the request is satisfied.

 

user_data

User data to pass to callback +.

 
+
+
+
+
+

xapp_status_icon_interface_proxy_new_finish ()

+
XAppStatusIconInterface *
+xapp_status_icon_interface_proxy_new_finish
+                               (GAsyncResult *res,
+                                GError **error);
+

Finishes an operation started with xapp_status_icon_interface_proxy_new().

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

res

The GAsyncResult obtained from the GAsyncReadyCallback passed to xapp_status_icon_interface_proxy_new().

 

error

Return location for error or NULL

 
+
+
+

Returns

+

The constructed proxy object or NULL if error +is set.

+

[transfer full][type XAppStatusIconInterfaceProxy]

+
+
+
+
+

xapp_status_icon_interface_proxy_new_sync ()

+
XAppStatusIconInterface *
+xapp_status_icon_interface_proxy_new_sync
+                               (GDBusConnection *connection,
+                                GDBusProxyFlags flags,
+                                const gchar *name,
+                                const gchar *object_path,
+                                GCancellable *cancellable,
+                                GError **error);
+

Synchronously creates a proxy for the D-Bus interface org.x.StatusIcon. See g_dbus_proxy_new_sync() for more details.

+

The calling thread is blocked until a reply is received.

+

See xapp_status_icon_interface_proxy_new() for the asynchronous version of this constructor.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

connection

A GDBusConnection.

 

flags

Flags from the GDBusProxyFlags enumeration.

 

name

A bus name (well-known or unique) or NULL if connection +is not a message bus connection.

[nullable]

object_path

An object path.

 

cancellable

A GCancellable or NULL.

[nullable]

error

Return location for error or NULL

 
+
+
+

Returns

+

The constructed proxy object or NULL if error +is set.

+

[transfer full][type XAppStatusIconInterfaceProxy]

+
+
+
+
+

xapp_status_icon_interface_proxy_new_for_bus ()

+
void
+xapp_status_icon_interface_proxy_new_for_bus
+                               (GBusType bus_type,
+                                GDBusProxyFlags flags,
+                                const gchar *name,
+                                const gchar *object_path,
+                                GCancellable *cancellable,
+                                GAsyncReadyCallback callback,
+                                gpointer user_data);
+

Like xapp_status_icon_interface_proxy_new() but takes a GBusType instead of a GDBusConnection.

+

When the operation is finished, callback + will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). +You can then call xapp_status_icon_interface_proxy_new_for_bus_finish() to get the result of the operation.

+

See xapp_status_icon_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

bus_type

A GBusType.

 

flags

Flags from the GDBusProxyFlags enumeration.

 

name

A bus name (well-known or unique).

 

object_path

An object path.

 

cancellable

A GCancellable or NULL.

[nullable]

callback

A GAsyncReadyCallback to call when the request is satisfied.

 

user_data

User data to pass to callback +.

 
+
+
+
+
+

xapp_status_icon_interface_proxy_new_for_bus_finish ()

+
XAppStatusIconInterface *
+xapp_status_icon_interface_proxy_new_for_bus_finish
+                               (GAsyncResult *res,
+                                GError **error);
+

Finishes an operation started with xapp_status_icon_interface_proxy_new_for_bus().

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

res

The GAsyncResult obtained from the GAsyncReadyCallback passed to xapp_status_icon_interface_proxy_new_for_bus().

 

error

Return location for error or NULL

 
+
+
+

Returns

+

The constructed proxy object or NULL if error +is set.

+

[transfer full][type XAppStatusIconInterfaceProxy]

+
+
+
+
+

xapp_status_icon_interface_proxy_new_for_bus_sync ()

+
XAppStatusIconInterface *
+xapp_status_icon_interface_proxy_new_for_bus_sync
+                               (GBusType bus_type,
+                                GDBusProxyFlags flags,
+                                const gchar *name,
+                                const gchar *object_path,
+                                GCancellable *cancellable,
+                                GError **error);
+

Like xapp_status_icon_interface_proxy_new_sync() but takes a GBusType instead of a GDBusConnection.

+

The calling thread is blocked until a reply is received.

+

See xapp_status_icon_interface_proxy_new_for_bus() for the asynchronous version of this constructor.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

bus_type

A GBusType.

 

flags

Flags from the GDBusProxyFlags enumeration.

 

name

A bus name (well-known or unique).

 

object_path

An object path.

 

cancellable

A GCancellable or NULL.

[nullable]

error

Return location for error or NULL

 
+
+
+

Returns

+

The constructed proxy object or NULL if error +is set.

+

[transfer full][type XAppStatusIconInterfaceProxy]

+
+
+
+
+

xapp_status_icon_interface_skeleton_new ()

+
XAppStatusIconInterface *
+xapp_status_icon_interface_skeleton_new
+                               (void);
+

Creates a skeleton object for the D-Bus interface org.x.StatusIcon.

+
+

Returns

+

The skeleton object.

+

[transfer full][type XAppStatusIconInterfaceSkeleton]

+
+
+
+
+

xapp_object_get_status_icon_interface ()

+
XAppStatusIconInterface *
+xapp_object_get_status_icon_interface (XAppObject *object);
+

Gets the XAppStatusIconInterface instance for the D-Bus interface org.x.StatusIcon on object +, if any.

+
+

Parameters

+
+++++ + + + + + +

object

A XAppObject.

 
+
+
+

Returns

+

A XAppStatusIconInterface that must be freed with g_object_unref() or NULL if object +does not implement the interface.

+

[transfer full][nullable]

+
+
+
+
+

xapp_object_peek_status_icon_interface ()

+
XAppStatusIconInterface *
+xapp_object_peek_status_icon_interface
+                               (XAppObject *object);
+

Like xapp_object_get_status_icon_interface() but doesn't increase the reference count on the returned object.

+

It is not safe to use the returned object if you are on another thread than the one where the GDBusObjectManagerClient or GDBusObjectManagerServer for object + is running.

+

[skip]

+
+

Parameters

+
+++++ + + + + + +

object

A XAppObject.

 
+
+
+

Returns

+

A XAppStatusIconInterface or NULL if object +does not implement the interface. Do not free the returned object, it is owned by object +.

+

[transfer none][nullable]

+
+
+
+
+

xapp_object_proxy_new ()

+
XAppObjectProxy *
+xapp_object_proxy_new (GDBusConnection *connection,
+                       const gchar *object_path);
+

Creates a new proxy object.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

connection

A GDBusConnection.

 

object_path

An object path.

 
+
+
+

Returns

+

The proxy object.

+

[transfer full]

+
+
+
+
+

xapp_object_skeleton_new ()

+
XAppObjectSkeleton *
+xapp_object_skeleton_new (const gchar *object_path);
+

Creates a new skeleton object.

+
+

Parameters

+
+++++ + + + + + +

object_path

An object path.

 
+
+
+

Returns

+

The skeleton object.

+

[transfer full]

+
+
+
+
+

xapp_object_skeleton_set_status_icon_interface ()

+
void
+xapp_object_skeleton_set_status_icon_interface
+                               (XAppObjectSkeleton *object,
+                                XAppStatusIconInterface *interface_);
+

Sets the XAppStatusIconInterface instance for the D-Bus interface org.x.StatusIcon on object +.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

object

A XAppObjectSkeleton.

 

interface_

A XAppStatusIconInterface or NULL to clear the interface.

[nullable]
+
+
+
+
+

xapp_object_manager_client_get_proxy_type ()

+
GType
+xapp_object_manager_client_get_proxy_type
+                               (GDBusObjectManagerClient *manager,
+                                const gchar *object_path,
+                                const gchar *interface_name,
+                                gpointer user_data);
+

A GDBusProxyTypeFunc that maps interface_name + to the generated GDBusObjectProxy derived and GDBusProxy derived types.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + +

manager

A GDBusObjectManagerClient.

 

object_path

The object path of the remote object (unused).

 

interface_name

Interface name of the remote object or NULL to get the object proxy GType.

[nullable]

user_data

User data (unused).

 
+
+
+

Returns

+

A GDBusProxy derived GType if interface_name +is not NULL, otherwise the GType for XAppObjectProxy.

+
+
+
+
+

xapp_object_manager_client_new ()

+
void
+xapp_object_manager_client_new (GDBusConnection *connection,
+                                GDBusObjectManagerClientFlags flags,
+                                const gchar *name,
+                                const gchar *object_path,
+                                GCancellable *cancellable,
+                                GAsyncReadyCallback callback,
+                                gpointer user_data);
+

Asynchronously creates GDBusObjectManagerClient using xapp_object_manager_client_get_proxy_type() as the GDBusProxyTypeFunc. See g_dbus_object_manager_client_new() for more details.

+

When the operation is finished, callback + will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). +You can then call xapp_object_manager_client_new_finish() to get the result of the operation.

+

See xapp_object_manager_client_new_sync() for the synchronous, blocking version of this constructor.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

connection

A GDBusConnection.

 

flags

Flags from the GDBusObjectManagerClientFlags enumeration.

 

name

A bus name (well-known or unique) or NULL if connection +is not a message bus connection.

[nullable]

object_path

An object path.

 

cancellable

A GCancellable or NULL.

[nullable]

callback

A GAsyncReadyCallback to call when the request is satisfied.

 

user_data

User data to pass to callback +.

 
+
+
+
+
+

xapp_object_manager_client_new_finish ()

+
GDBusObjectManager *
+xapp_object_manager_client_new_finish (GAsyncResult *res,
+                                       GError **error);
+

Finishes an operation started with xapp_object_manager_client_new().

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

res

The GAsyncResult obtained from the GAsyncReadyCallback passed to xapp_object_manager_client_new().

 

error

Return location for error or NULL

 
+
+
+

Returns

+

The constructed object manager client or NULL if error +is set.

+

[transfer full][type XAppObjectManagerClient]

+
+
+
+
+

xapp_object_manager_client_new_sync ()

+
GDBusObjectManager *
+xapp_object_manager_client_new_sync (GDBusConnection *connection,
+                                     GDBusObjectManagerClientFlags flags,
+                                     const gchar *name,
+                                     const gchar *object_path,
+                                     GCancellable *cancellable,
+                                     GError **error);
+

Synchronously creates GDBusObjectManagerClient using xapp_object_manager_client_get_proxy_type() as the GDBusProxyTypeFunc. See g_dbus_object_manager_client_new_sync() for more details.

+

The calling thread is blocked until a reply is received.

+

See xapp_object_manager_client_new() for the asynchronous version of this constructor.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

connection

A GDBusConnection.

 

flags

Flags from the GDBusObjectManagerClientFlags enumeration.

 

name

A bus name (well-known or unique) or NULL if connection +is not a message bus connection.

[nullable]

object_path

An object path.

 

cancellable

A GCancellable or NULL.

[nullable]

error

Return location for error or NULL

 
+
+
+

Returns

+

The constructed object manager client or NULL if error +is set.

+

[transfer full][type XAppObjectManagerClient]

+
+
+
+
+

xapp_object_manager_client_new_for_bus ()

+
void
+xapp_object_manager_client_new_for_bus
+                               (GBusType bus_type,
+                                GDBusObjectManagerClientFlags flags,
+                                const gchar *name,
+                                const gchar *object_path,
+                                GCancellable *cancellable,
+                                GAsyncReadyCallback callback,
+                                gpointer user_data);
+

Like xapp_object_manager_client_new() but takes a GBusType instead of a GDBusConnection.

+

When the operation is finished, callback + will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). +You can then call xapp_object_manager_client_new_for_bus_finish() to get the result of the operation.

+

See xapp_object_manager_client_new_for_bus_sync() for the synchronous, blocking version of this constructor.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

bus_type

A GBusType.

 

flags

Flags from the GDBusObjectManagerClientFlags enumeration.

 

name

A bus name (well-known or unique).

 

object_path

An object path.

 

cancellable

A GCancellable or NULL.

[nullable]

callback

A GAsyncReadyCallback to call when the request is satisfied.

 

user_data

User data to pass to callback +.

 
+
+
+
+
+

xapp_object_manager_client_new_for_bus_finish ()

+
GDBusObjectManager *
+xapp_object_manager_client_new_for_bus_finish
+                               (GAsyncResult *res,
+                                GError **error);
+

Finishes an operation started with xapp_object_manager_client_new_for_bus().

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

res

The GAsyncResult obtained from the GAsyncReadyCallback passed to xapp_object_manager_client_new_for_bus().

 

error

Return location for error or NULL

 
+
+
+

Returns

+

The constructed object manager client or NULL if error +is set.

+

[transfer full][type XAppObjectManagerClient]

+
+
+
+
+

xapp_object_manager_client_new_for_bus_sync ()

+
GDBusObjectManager *
+xapp_object_manager_client_new_for_bus_sync
+                               (GBusType bus_type,
+                                GDBusObjectManagerClientFlags flags,
+                                const gchar *name,
+                                const gchar *object_path,
+                                GCancellable *cancellable,
+                                GError **error);
+

Like xapp_object_manager_client_new_sync() but takes a GBusType instead of a GDBusConnection.

+

The calling thread is blocked until a reply is received.

+

See xapp_object_manager_client_new_for_bus() for the asynchronous version of this constructor.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

bus_type

A GBusType.

 

flags

Flags from the GDBusObjectManagerClientFlags enumeration.

 

name

A bus name (well-known or unique).

 

object_path

An object path.

 

cancellable

A GCancellable or NULL.

[nullable]

error

Return location for error or NULL

 
+
+
+

Returns

+

The constructed object manager client or NULL if error +is set.

+

[transfer full][type XAppObjectManagerClient]

+
+
+
+
+

Property Details

+
+

The “status-icon-interface” property

+
  “status-icon-interface”    XAppStatusIconInterface *
+

The XAppStatusIconInterface instance corresponding to the D-Bus interface org.x.StatusIcon, if any.

+

Connect to the “notify” signal to get informed of property changes.

+

Owner: XAppObject

+

Flags: Read / Write

+
+
+
+

The “icon-name” property

+
  “icon-name”                gchar *
+

Represents the D-Bus property "IconName".

+

Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

+

Owner: XAppStatusIconInterface

+

Flags: Read / Write

+

Default value: NULL

+
+
+
+

The “icon-size” property

+
  “icon-size”                gint
+

Represents the D-Bus property "IconSize".

+

Since the D-Bus property for this GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.

+

Owner: XAppStatusIconInterface

+

Flags: Read / Write

+

Default value: 0

+
+
+
+

The “label” property

+
  “label”                    gchar *
+

Represents the D-Bus property "Label".

+

Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

+

Owner: XAppStatusIconInterface

+

Flags: Read / Write

+

Default value: NULL

+
+
+
+

The “metadata” property

+
  “metadata”                 gchar *
+

Represents the D-Bus property "Metadata".

+

Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

+

Owner: XAppStatusIconInterface

+

Flags: Read / Write

+

Default value: NULL

+
+
+
+

The “name” property

+
  “name”                     gchar *
+

Represents the D-Bus property "Name".

+

Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

+

Owner: XAppStatusIconInterface

+

Flags: Read / Write

+

Default value: NULL

+
+
+
+

The “primary-menu-is-open” property

+
  “primary-menu-is-open”     gboolean
+

Represents the D-Bus property "PrimaryMenuIsOpen".

+

Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

+

Owner: XAppStatusIconInterface

+

Flags: Read / Write

+

Default value: FALSE

+
+
+
+

The “secondary-menu-is-open” property

+
  “secondary-menu-is-open”   gboolean
+

Represents the D-Bus property "SecondaryMenuIsOpen".

+

Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

+

Owner: XAppStatusIconInterface

+

Flags: Read / Write

+

Default value: FALSE

+
+
+
+

The “tooltip-text” property

+
  “tooltip-text”             gchar *
+

Represents the D-Bus property "TooltipText".

+

Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

+

Owner: XAppStatusIconInterface

+

Flags: Read / Write

+

Default value: NULL

+
+
+
+

The “visible” property

+
  “visible”                  gboolean
+

Represents the D-Bus property "Visible".

+

Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

+

Owner: XAppStatusIconInterface

+

Flags: Read / Write

+

Default value: FALSE

+
+
+
+

Signal Details

+
+

The “handle-button-press” signal

+
gboolean
+user_function (XAppStatusIconInterface *object,
+               GDBusMethodInvocation   *invocation,
+               gint                     arg_x,
+               gint                     arg_y,
+               guint                    arg_button,
+               guint                    arg_time,
+               gint                     arg_panel_position,
+               gpointer                 user_data)
+

Signal emitted when a remote caller is invoking the ButtonPress() D-Bus method.

+

If a signal handler returns TRUE, it means the signal handler will handle the invocation (e.g. take a reference to invocation + and eventually call xapp_status_icon_interface_complete_button_press() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD error is returned.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

object

A XAppStatusIconInterface.

 

invocation

A GDBusMethodInvocation.

 

arg_x

Argument passed by remote caller.

 

arg_y

Argument passed by remote caller.

 

arg_button

Argument passed by remote caller.

 

arg_time

Argument passed by remote caller.

 

arg_panel_position

Argument passed by remote caller.

 

user_data

user data set when the signal handler was connected.

 
+
+
+

Returns

+

TRUE if the invocation was handled, FALSE to let other signal handlers run.

+
+

Flags: Run Last

+
+
+
+

The “handle-button-release” signal

+
gboolean
+user_function (XAppStatusIconInterface *object,
+               GDBusMethodInvocation   *invocation,
+               gint                     arg_x,
+               gint                     arg_y,
+               guint                    arg_button,
+               guint                    arg_time,
+               gint                     arg_panel_position,
+               gpointer                 user_data)
+

Signal emitted when a remote caller is invoking the ButtonRelease() D-Bus method.

+

If a signal handler returns TRUE, it means the signal handler will handle the invocation (e.g. take a reference to invocation + and eventually call xapp_status_icon_interface_complete_button_release() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD error is returned.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

object

A XAppStatusIconInterface.

 

invocation

A GDBusMethodInvocation.

 

arg_x

Argument passed by remote caller.

 

arg_y

Argument passed by remote caller.

 

arg_button

Argument passed by remote caller.

 

arg_time

Argument passed by remote caller.

 

arg_panel_position

Argument passed by remote caller.

 

user_data

user data set when the signal handler was connected.

 
+
+
+

Returns

+

TRUE if the invocation was handled, FALSE to let other signal handlers run.

+
+

Flags: Run Last

+
+
+
+

The “handle-scroll” signal

+
gboolean
+user_function (XAppStatusIconInterface *object,
+               GDBusMethodInvocation   *invocation,
+               gint                     arg_delta,
+               gint                     arg_orientation,
+               guint                    arg_time,
+               gpointer                 user_data)
+

Signal emitted when a remote caller is invoking the Scroll() D-Bus method.

+

If a signal handler returns TRUE, it means the signal handler will handle the invocation (e.g. take a reference to invocation + and eventually call xapp_status_icon_interface_complete_scroll() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD error is returned.

+
+

Parameters

+
+++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

object

A XAppStatusIconInterface.

 

invocation

A GDBusMethodInvocation.

 

arg_delta

Argument passed by remote caller.

 

arg_orientation

Argument passed by remote caller.

 

arg_time

Argument passed by remote caller.

 

user_data

user data set when the signal handler was connected.

 
+
+
+

Returns

+

TRUE if the invocation was handled, FALSE to let other signal handlers run.

+
+

Flags: Run Last

+
+
+
+ + + \ No newline at end of file diff --git a/docs/reference/XAppPreferencesWindow.html b/docs/reference/XAppPreferencesWindow.html index 6e5787f..540ca0c 100644 --- a/docs/reference/XAppPreferencesWindow.html +++ b/docs/reference/XAppPreferencesWindow.html @@ -8,7 +8,7 @@ - + @@ -38,8 +38,8 @@

Functions

--++ @@ -73,9 +73,9 @@

Signals

---+++ @@ -88,8 +88,8 @@

Types and Values

void
--++ @@ -263,6 +263,6 @@ +
Generated by GTK-Doc V1.32diff --git a/docs/reference/XAppStackSidebar.html b/docs/reference/XAppStackSidebar.html index ecfd2ed..9505080 100644 --- a/docs/reference/XAppStackSidebar.html +++ b/docs/reference/XAppStackSidebar.html @@ -8,7 +8,7 @@ - + @@ -38,8 +38,8 @@

Functions

--++ @@ -89,8 +89,8 @@

Types and Values

--++ @@ -130,7 +130,7 @@ to the GtkStack. The XAppStackSidebar is an extended version of the the GtkStackSidebar that allows showing an icon in addition to the text.

-

CSS nodes

+

CSS nodes

XAppStackSidebar has a single CSS node with the name stacksidebar and style class .sidebar

When circumstances require it, XAppStackSidebar adds the @@ -231,11 +231,12 @@

The “stack” property

  “stack”                    GtkStack *

Associated stack for this XAppStackSidebar.

+

Owner: XAppStackSidebar

Flags: Read / Write

+
Generated by GTK-Doc V1.32diff --git a/docs/reference/XAppStatusIcon.html b/docs/reference/XAppStatusIcon.html index 5e2f91b..c8c74ca 100644 --- a/docs/reference/XAppStatusIcon.html +++ b/docs/reference/XAppStatusIcon.html @@ -8,7 +8,7 @@ - + @@ -38,8 +38,8 @@

Functions

--++ @@ -52,6 +52,14 @@ + + + + + + + + @@ -178,6 +194,12 @@ + + + + + - +
+XAppStatusIcon * + +xapp_status_icon_new_with_name () +
void @@ -152,6 +160,14 @@ xapp_status_icon_get_state () +
+void + +xapp_status_icon_set_metadata ()
gint icon-size Read / Write
+gchar *nameRead / Write / Construct
@@ -198,9 +220,9 @@

Signals

---+++ @@ -235,8 +257,8 @@

Types and Values

--++ @@ -284,6 +306,19 @@

Creates a new XAppStatusIcon instance

Returns

+

a new XAppStatusIcon. Use g_object_unref when finished.

+

[transfer full]

+
+

Since: 1.6

+ +
+
+

xapp_status_icon_new_with_name ()

+
XAppStatusIcon *
+xapp_status_icon_new_with_name (const gchar *name);
+

Creates a new XAppStatusIcon instance and sets its name to name.

+
+

Returns

a new XAppStatusIcon. Use g_object_unref when finished.

[transfer full]

@@ -714,6 +749,39 @@

+

xapp_status_icon_set_metadata ()

+
void
+xapp_status_icon_set_metadata (XAppStatusIcon *icon,
+                               const gchar *metadata);
+

Sets metadata to pass to the icon proxy for an applet's use. Right now this is only so +xapp-sn-watcher can tell the applets when the icon is originating from appindicator so panel +button 'highlighting' can behave correctly.

+
+

Parameters

+
+++++ + + + + + + + + + + + + +

icon

an XAppStatusIcon

 

metadata

A json-formatted string of key:values.

[nullable]
+ +

Since: 1.8.7

+ +
+

xapp_status_icon_any_monitors ()

gboolean
 xapp_status_icon_any_monitors (void);
@@ -833,9 +901,25 @@ an icon to be saved as a file and its path sent to the host.

If this value is 0 it has not been set, and its value can be unreliable if the host has multiple XAppStatusIconMonitors active.

+

Owner: XAppStatusIcon

Flags: Read / Write

Allowed values: [0,96]

Default value: 0

+
+
+
+

The “name” property

+
  “name”                     gchar *
+

The name of the icon for sorting purposes. If this is in the form of 'org.x.StatusIcon.foo` +and set immediately upon creation of the icon, it will also attempt to own this dbus name; +this can be useful in sandboxed environments where a well-defined name is required. If + +additional icons are created, only the name given to the initial one will be used for dbus, +though different names can still affect the sort order. This is set to the value of +g_get_application_name() if no other name is provided.

+

Owner: XAppStatusIcon

+

Flags: Read / Write / Construct

+

Default value: NULL


@@ -853,6 +937,7 @@ application (or unref it when finished with it - if you wish to replace the menu, simply call this method again with a new menu.

The same GtkMenu widget can be set as both the primary and secondary.

+

Owner: XAppStatusIcon

Flags: Read / Write


@@ -871,6 +956,7 @@ application (or unref it when finished with it - if you wish to replace the menu, simply call this method again with a new menu.

The same GtkMenu widget can be set as both the primary and secondary.

+

Owner: XAppStatusIcon

Flags: Read / Write

@@ -1136,6 +1222,6 @@ +
Generated by GTK-Doc V1.32 diff --git a/docs/reference/XAppStatusIconInterfaceSkeleton.html b/docs/reference/XAppStatusIconInterfaceSkeleton.html deleted file mode 100644 index b1b1cae..0000000 --- a/docs/reference/XAppStatusIconInterfaceSkeleton.html +++ /dev/null @@ -1,2266 +0,0 @@ - - - - -XAppStatusIconInterfaceSkeleton: XApp Reference Manual - - - - - - - - - - - - - - - - -
-
-
- - -
-

XAppStatusIconInterfaceSkeleton

-

XAppStatusIconInterfaceSkeleton

-
-
-

Functions

-
---- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-GDBusInterfaceInfo * - -xapp_status_icon_interface_interface_info () -
-guint - -xapp_status_icon_interface_override_properties () -
-void - -xapp_status_icon_interface_complete_button_press () -
-void - -xapp_status_icon_interface_complete_button_release () -
-void - -xapp_status_icon_interface_complete_scroll () -
-void - -xapp_status_icon_interface_call_button_press () -
-gboolean - -xapp_status_icon_interface_call_button_press_finish () -
-gboolean - -xapp_status_icon_interface_call_button_press_sync () -
-void - -xapp_status_icon_interface_call_button_release () -
-gboolean - -xapp_status_icon_interface_call_button_release_finish () -
-gboolean - -xapp_status_icon_interface_call_button_release_sync () -
-void - -xapp_status_icon_interface_call_scroll () -
-gboolean - -xapp_status_icon_interface_call_scroll_finish () -
-gboolean - -xapp_status_icon_interface_call_scroll_sync () -
const gchar * - -xapp_status_icon_interface_get_name () -
-gchar * - -xapp_status_icon_interface_dup_name () -
-void - -xapp_status_icon_interface_set_name () -
const gchar * - -xapp_status_icon_interface_get_icon_name () -
-gchar * - -xapp_status_icon_interface_dup_icon_name () -
-void - -xapp_status_icon_interface_set_icon_name () -
const gchar * - -xapp_status_icon_interface_get_tooltip_text () -
-gchar * - -xapp_status_icon_interface_dup_tooltip_text () -
-void - -xapp_status_icon_interface_set_tooltip_text () -
const gchar * - -xapp_status_icon_interface_get_label () -
-gchar * - -xapp_status_icon_interface_dup_label () -
-void - -xapp_status_icon_interface_set_label () -
-gboolean - -xapp_status_icon_interface_get_visible () -
-void - -xapp_status_icon_interface_set_visible () -
-gint - -xapp_status_icon_interface_get_icon_size () -
-void - -xapp_status_icon_interface_set_icon_size () -
-void - -xapp_status_icon_interface_proxy_new () -
-XAppStatusIconInterface * - -xapp_status_icon_interface_proxy_new_finish () -
-XAppStatusIconInterface * - -xapp_status_icon_interface_proxy_new_sync () -
-void - -xapp_status_icon_interface_proxy_new_for_bus () -
-XAppStatusIconInterface * - -xapp_status_icon_interface_proxy_new_for_bus_finish () -
-XAppStatusIconInterface * - -xapp_status_icon_interface_proxy_new_for_bus_sync () -
-XAppStatusIconInterface * - -xapp_status_icon_interface_skeleton_new () -
-
-
-

Properties

-
----- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-gchar *icon-nameRead / Write
ginticon-sizeRead / Write
-gchar *labelRead / Write
-gchar *nameRead / Write
-gchar *tooltip-textRead / Write
gbooleanvisibleRead / Write
-
- -
-

Object Hierarchy

-
    GInterface
-    ╰── XAppStatusIconInterface
-    GObject
-    ├── GDBusInterfaceSkeleton
-       ╰── XAppStatusIconInterfaceSkeleton
-    ╰── GDBusProxy
-        ╰── XAppStatusIconInterfaceProxy
-
-
-
-

Description

-
-
-

Functions

-
-

xapp_status_icon_interface_interface_info ()

-
GDBusInterfaceInfo *
-xapp_status_icon_interface_interface_info
-                               (void);
-

Gets a machine-readable description of the org.x.StatusIcon D-Bus interface.

-
-

Returns

-

A GDBusInterfaceInfo. Do not free.

-

[transfer none]

-
-
-
-
-

xapp_status_icon_interface_override_properties ()

-
guint
-xapp_status_icon_interface_override_properties
-                               (GObjectClass *klass,
-                                guint property_id_begin);
-

Overrides all GObject properties in the XAppStatusIconInterface interface for a concrete class. -The properties are overridden in the order they are defined.

-
-

Parameters

-
----- - - - - - - - - - - - - -

klass

The class structure for a GObject derived class.

 

property_id_begin

The property id to assign to the first overridden property.

 
-
-
-

Returns

-

The last property id.

-
-
-
-
-

xapp_status_icon_interface_complete_button_press ()

-
void
-xapp_status_icon_interface_complete_button_press
-                               (XAppStatusIconInterface *object,
-                                GDBusMethodInvocation *invocation);
-

Helper function used in service implementations to finish handling invocations of the ButtonPress() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

-

This method will free invocation -, you cannot use it afterwards.

-
-

Parameters

-
----- - - - - - - - - - - - - -

object

A XAppStatusIconInterface.

 

invocation

A GDBusMethodInvocation.

[transfer full]
-
-
-
-
-

xapp_status_icon_interface_complete_button_release ()

-
void
-xapp_status_icon_interface_complete_button_release
-                               (XAppStatusIconInterface *object,
-                                GDBusMethodInvocation *invocation);
-

Helper function used in service implementations to finish handling invocations of the ButtonRelease() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

-

This method will free invocation -, you cannot use it afterwards.

-
-

Parameters

-
----- - - - - - - - - - - - - -

object

A XAppStatusIconInterface.

 

invocation

A GDBusMethodInvocation.

[transfer full]
-
-
-
-
-

xapp_status_icon_interface_complete_scroll ()

-
void
-xapp_status_icon_interface_complete_scroll
-                               (XAppStatusIconInterface *object,
-                                GDBusMethodInvocation *invocation);
-

Helper function used in service implementations to finish handling invocations of the Scroll() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

-

This method will free invocation -, you cannot use it afterwards.

-
-

Parameters

-
----- - - - - - - - - - - - - -

object

A XAppStatusIconInterface.

 

invocation

A GDBusMethodInvocation.

[transfer full]
-
-
-
-
-

xapp_status_icon_interface_call_button_press ()

-
void
-xapp_status_icon_interface_call_button_press
-                               (XAppStatusIconInterface *proxy,
-                                gint arg_x,
-                                gint arg_y,
-                                guint arg_button,
-                                guint arg_time,
-                                gint arg_panel_position,
-                                GCancellable *cancellable,
-                                GAsyncReadyCallback callback,
-                                gpointer user_data);
-

Asynchronously invokes the ButtonPress() D-Bus method on proxy -. -When the operation is finished, callback - will be invoked in the thread-default main loop of the thread you are calling this method from. -You can then call xapp_status_icon_interface_call_button_press_finish() to get the result of the operation.

-

See xapp_status_icon_interface_call_button_press_sync() for the synchronous, blocking version of this method.

-
-

Parameters

-
----- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

proxy

A XAppStatusIconInterfaceProxy.

 

arg_x

Argument to pass with the method invocation.

 

arg_y

Argument to pass with the method invocation.

 

arg_button

Argument to pass with the method invocation.

 

arg_time

Argument to pass with the method invocation.

 

arg_panel_position

Argument to pass with the method invocation.

 

cancellable

A GCancellable or NULL.

[nullable]

callback

A GAsyncReadyCallback to call when the request is satisfied or NULL.

 

user_data

User data to pass to callback -.

 
-
-
-
-
-

xapp_status_icon_interface_call_button_press_finish ()

-
gboolean
-xapp_status_icon_interface_call_button_press_finish
-                               (XAppStatusIconInterface *proxy,
-                                GAsyncResult *res,
-                                GError **error);
-

Finishes an operation started with xapp_status_icon_interface_call_button_press().

-
-

Parameters

-
----- - - - - - - - - - - - - - - - - - -

proxy

A XAppStatusIconInterfaceProxy.

 

res

The GAsyncResult obtained from the GAsyncReadyCallback passed to xapp_status_icon_interface_call_button_press().

 

error

Return location for error or NULL.

 
-
-
-

Returns

-

TRUE if the call succeded, FALSE if error -is set.

-

[skip]

-
-
-
-
-

xapp_status_icon_interface_call_button_press_sync ()

-
gboolean
-xapp_status_icon_interface_call_button_press_sync
-                               (XAppStatusIconInterface *proxy,
-                                gint arg_x,
-                                gint arg_y,
-                                guint arg_button,
-                                guint arg_time,
-                                gint arg_panel_position,
-                                GCancellable *cancellable,
-                                GError **error);
-

Synchronously invokes the ButtonPress() D-Bus method on proxy -. The calling thread is blocked until a reply is received.

-

See xapp_status_icon_interface_call_button_press() for the asynchronous version of this method.

-
-

Parameters

-
----- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

proxy

A XAppStatusIconInterfaceProxy.

 

arg_x

Argument to pass with the method invocation.

 

arg_y

Argument to pass with the method invocation.

 

arg_button

Argument to pass with the method invocation.

 

arg_time

Argument to pass with the method invocation.

 

arg_panel_position

Argument to pass with the method invocation.

 

cancellable

A GCancellable or NULL.

[nullable]

error

Return location for error or NULL.

 
-
-
-

Returns

-

TRUE if the call succeded, FALSE if error -is set.

-

[skip]

-
-
-
-
-

xapp_status_icon_interface_call_button_release ()

-
void
-xapp_status_icon_interface_call_button_release
-                               (XAppStatusIconInterface *proxy,
-                                gint arg_x,
-                                gint arg_y,
-                                guint arg_button,
-                                guint arg_time,
-                                gint arg_panel_position,
-                                GCancellable *cancellable,
-                                GAsyncReadyCallback callback,
-                                gpointer user_data);
-

Asynchronously invokes the ButtonRelease() D-Bus method on proxy -. -When the operation is finished, callback - will be invoked in the thread-default main loop of the thread you are calling this method from. -You can then call xapp_status_icon_interface_call_button_release_finish() to get the result of the operation.

-

See xapp_status_icon_interface_call_button_release_sync() for the synchronous, blocking version of this method.

-
-

Parameters

-
----- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

proxy

A XAppStatusIconInterfaceProxy.

 

arg_x

Argument to pass with the method invocation.

 

arg_y

Argument to pass with the method invocation.

 

arg_button

Argument to pass with the method invocation.

 

arg_time

Argument to pass with the method invocation.

 

arg_panel_position

Argument to pass with the method invocation.

 

cancellable

A GCancellable or NULL.

[nullable]

callback

A GAsyncReadyCallback to call when the request is satisfied or NULL.

 

user_data

User data to pass to callback -.

 
-
-
-
-
-

xapp_status_icon_interface_call_button_release_finish ()

-
gboolean
-xapp_status_icon_interface_call_button_release_finish
-                               (XAppStatusIconInterface *proxy,
-                                GAsyncResult *res,
-                                GError **error);
-

Finishes an operation started with xapp_status_icon_interface_call_button_release().

-
-

Parameters

-
----- - - - - - - - - - - - - - - - - - -

proxy

A XAppStatusIconInterfaceProxy.

 

res

The GAsyncResult obtained from the GAsyncReadyCallback passed to xapp_status_icon_interface_call_button_release().

 

error

Return location for error or NULL.

 
-
-
-

Returns

-

TRUE if the call succeded, FALSE if error -is set.

-

[skip]

-
-
-
-
-

xapp_status_icon_interface_call_button_release_sync ()

-
gboolean
-xapp_status_icon_interface_call_button_release_sync
-                               (XAppStatusIconInterface *proxy,
-                                gint arg_x,
-                                gint arg_y,
-                                guint arg_button,
-                                guint arg_time,
-                                gint arg_panel_position,
-                                GCancellable *cancellable,
-                                GError **error);
-

Synchronously invokes the ButtonRelease() D-Bus method on proxy -. The calling thread is blocked until a reply is received.

-

See xapp_status_icon_interface_call_button_release() for the asynchronous version of this method.

-
-

Parameters

-
----- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

proxy

A XAppStatusIconInterfaceProxy.

 

arg_x

Argument to pass with the method invocation.

 

arg_y

Argument to pass with the method invocation.

 

arg_button

Argument to pass with the method invocation.

 

arg_time

Argument to pass with the method invocation.

 

arg_panel_position

Argument to pass with the method invocation.

 

cancellable

A GCancellable or NULL.

[nullable]

error

Return location for error or NULL.

 
-
-
-

Returns

-

TRUE if the call succeded, FALSE if error -is set.

-

[skip]

-
-
-
-
-

xapp_status_icon_interface_call_scroll ()

-
void
-xapp_status_icon_interface_call_scroll
-                               (XAppStatusIconInterface *proxy,
-                                gint arg_delta,
-                                gint arg_orientation,
-                                guint arg_time,
-                                GCancellable *cancellable,
-                                GAsyncReadyCallback callback,
-                                gpointer user_data);
-

Asynchronously invokes the Scroll() D-Bus method on proxy -. -When the operation is finished, callback - will be invoked in the thread-default main loop of the thread you are calling this method from. -You can then call xapp_status_icon_interface_call_scroll_finish() to get the result of the operation.

-

See xapp_status_icon_interface_call_scroll_sync() for the synchronous, blocking version of this method.

-
-

Parameters

-
----- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

proxy

A XAppStatusIconInterfaceProxy.

 

arg_delta

Argument to pass with the method invocation.

 

arg_orientation

Argument to pass with the method invocation.

 

arg_time

Argument to pass with the method invocation.

 

cancellable

A GCancellable or NULL.

[nullable]

callback

A GAsyncReadyCallback to call when the request is satisfied or NULL.

 

user_data

User data to pass to callback -.

 
-
-
-
-
-

xapp_status_icon_interface_call_scroll_finish ()

-
gboolean
-xapp_status_icon_interface_call_scroll_finish
-                               (XAppStatusIconInterface *proxy,
-                                GAsyncResult *res,
-                                GError **error);
-

Finishes an operation started with xapp_status_icon_interface_call_scroll().

-
-

Parameters

-
----- - - - - - - - - - - - - - - - - - -

proxy

A XAppStatusIconInterfaceProxy.

 

res

The GAsyncResult obtained from the GAsyncReadyCallback passed to xapp_status_icon_interface_call_scroll().

 

error

Return location for error or NULL.

 
-
-
-

Returns

-

TRUE if the call succeded, FALSE if error -is set.

-

[skip]

-
-
-
-
-

xapp_status_icon_interface_call_scroll_sync ()

-
gboolean
-xapp_status_icon_interface_call_scroll_sync
-                               (XAppStatusIconInterface *proxy,
-                                gint arg_delta,
-                                gint arg_orientation,
-                                guint arg_time,
-                                GCancellable *cancellable,
-                                GError **error);
-

Synchronously invokes the Scroll() D-Bus method on proxy -. The calling thread is blocked until a reply is received.

-

See xapp_status_icon_interface_call_scroll() for the asynchronous version of this method.

-
-

Parameters

-
----- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

proxy

A XAppStatusIconInterfaceProxy.

 

arg_delta

Argument to pass with the method invocation.

 

arg_orientation

Argument to pass with the method invocation.

 

arg_time

Argument to pass with the method invocation.

 

cancellable

A GCancellable or NULL.

[nullable]

error

Return location for error or NULL.

 
-
-
-

Returns

-

TRUE if the call succeded, FALSE if error -is set.

-

[skip]

-
-
-
-
-

xapp_status_icon_interface_get_name ()

-
const gchar *
-xapp_status_icon_interface_get_name (XAppStatusIconInterface *object);
-

Gets the value of the "Name" D-Bus property.

-

Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

-
The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where object was constructed. Use xapp_status_icon_interface_dup_name() if on another thread.
-

[skip]

-
-

Parameters

-
----- - - - - - -

object

A XAppStatusIconInterface.

 
-
-
-

Returns

-

The property value or NULL if the property is not set. Do not free the returned value, it belongs to object -.

-

[transfer none]

-
-
-
-
-

xapp_status_icon_interface_dup_name ()

-
gchar *
-xapp_status_icon_interface_dup_name (XAppStatusIconInterface *object);
-

Gets a copy of the "Name" D-Bus property.

-

Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

-

[skip]

-
-

Parameters

-
----- - - - - - -

object

A XAppStatusIconInterface.

 
-
-
-

Returns

-

The property value or NULL if the property is not set. The returned value should be freed with g_free().

-

[transfer full]

-
-
-
-
-

xapp_status_icon_interface_set_name ()

-
void
-xapp_status_icon_interface_set_name (XAppStatusIconInterface *object,
-                                     const gchar *value);
-

Sets the "Name" D-Bus property to value -.

-

Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.

-

[skip]

-
-

Parameters

-
----- - - - - - - - - - - - - -

object

A XAppStatusIconInterface.

 

value

The value to set.

 
-
-
-
-
-

xapp_status_icon_interface_get_icon_name ()

-
const gchar *
-xapp_status_icon_interface_get_icon_name
-                               (XAppStatusIconInterface *object);
-

Gets the value of the "IconName" D-Bus property.

-

Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

-
The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where object was constructed. Use xapp_status_icon_interface_dup_icon_name() if on another thread.
-

[skip]

-
-

Parameters

-
----- - - - - - -

object

A XAppStatusIconInterface.

 
-
-
-

Returns

-

The property value or NULL if the property is not set. Do not free the returned value, it belongs to object -.

-

[transfer none]

-
-
-
-
-

xapp_status_icon_interface_dup_icon_name ()

-
gchar *
-xapp_status_icon_interface_dup_icon_name
-                               (XAppStatusIconInterface *object);
-

Gets a copy of the "IconName" D-Bus property.

-

Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

-

[skip]

-
-

Parameters

-
----- - - - - - -

object

A XAppStatusIconInterface.

 
-
-
-

Returns

-

The property value or NULL if the property is not set. The returned value should be freed with g_free().

-

[transfer full]

-
-
-
-
-

xapp_status_icon_interface_set_icon_name ()

-
void
-xapp_status_icon_interface_set_icon_name
-                               (XAppStatusIconInterface *object,
-                                const gchar *value);
-

Sets the "IconName" D-Bus property to value -.

-

Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.

-

[skip]

-
-

Parameters

-
----- - - - - - - - - - - - - -

object

A XAppStatusIconInterface.

 

value

The value to set.

 
-
-
-
-
-

xapp_status_icon_interface_get_tooltip_text ()

-
const gchar *
-xapp_status_icon_interface_get_tooltip_text
-                               (XAppStatusIconInterface *object);
-

Gets the value of the "TooltipText" D-Bus property.

-

Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

-
The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where object was constructed. Use xapp_status_icon_interface_dup_tooltip_text() if on another thread.
-

[skip]

-
-

Parameters

-
----- - - - - - -

object

A XAppStatusIconInterface.

 
-
-
-

Returns

-

The property value or NULL if the property is not set. Do not free the returned value, it belongs to object -.

-

[transfer none]

-
-
-
-
-

xapp_status_icon_interface_dup_tooltip_text ()

-
gchar *
-xapp_status_icon_interface_dup_tooltip_text
-                               (XAppStatusIconInterface *object);
-

Gets a copy of the "TooltipText" D-Bus property.

-

Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

-

[skip]

-
-

Parameters

-
----- - - - - - -

object

A XAppStatusIconInterface.

 
-
-
-

Returns

-

The property value or NULL if the property is not set. The returned value should be freed with g_free().

-

[transfer full]

-
-
-
-
-

xapp_status_icon_interface_set_tooltip_text ()

-
void
-xapp_status_icon_interface_set_tooltip_text
-                               (XAppStatusIconInterface *object,
-                                const gchar *value);
-

Sets the "TooltipText" D-Bus property to value -.

-

Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.

-

[skip]

-
-

Parameters

-
----- - - - - - - - - - - - - -

object

A XAppStatusIconInterface.

 

value

The value to set.

 
-
-
-
-
-

xapp_status_icon_interface_get_label ()

-
const gchar *
-xapp_status_icon_interface_get_label (XAppStatusIconInterface *object);
-

Gets the value of the "Label" D-Bus property.

-

Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

-
The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where object was constructed. Use xapp_status_icon_interface_dup_label() if on another thread.
-

[skip]

-
-

Parameters

-
----- - - - - - -

object

A XAppStatusIconInterface.

 
-
-
-

Returns

-

The property value or NULL if the property is not set. Do not free the returned value, it belongs to object -.

-

[transfer none]

-
-
-
-
-

xapp_status_icon_interface_dup_label ()

-
gchar *
-xapp_status_icon_interface_dup_label (XAppStatusIconInterface *object);
-

Gets a copy of the "Label" D-Bus property.

-

Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

-

[skip]

-
-

Parameters

-
----- - - - - - -

object

A XAppStatusIconInterface.

 
-
-
-

Returns

-

The property value or NULL if the property is not set. The returned value should be freed with g_free().

-

[transfer full]

-
-
-
-
-

xapp_status_icon_interface_set_label ()

-
void
-xapp_status_icon_interface_set_label (XAppStatusIconInterface *object,
-                                      const gchar *value);
-

Sets the "Label" D-Bus property to value -.

-

Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.

-

[skip]

-
-

Parameters

-
----- - - - - - - - - - - - - -

object

A XAppStatusIconInterface.

 

value

The value to set.

 
-
-
-
-
-

xapp_status_icon_interface_get_visible ()

-
gboolean
-xapp_status_icon_interface_get_visible
-                               (XAppStatusIconInterface *object);
-

Gets the value of the "Visible" D-Bus property.

-

Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

-

[skip]

-
-

Parameters

-
----- - - - - - -

object

A XAppStatusIconInterface.

 
-
-
-

Returns

-

The property value.

-
-
-
-
-

xapp_status_icon_interface_set_visible ()

-
void
-xapp_status_icon_interface_set_visible
-                               (XAppStatusIconInterface *object,
-                                gboolean value);
-

Sets the "Visible" D-Bus property to value -.

-

Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.

-

[skip]

-
-

Parameters

-
----- - - - - - - - - - - - - -

object

A XAppStatusIconInterface.

 

value

The value to set.

 
-
-
-
-
-

xapp_status_icon_interface_get_icon_size ()

-
gint
-xapp_status_icon_interface_get_icon_size
-                               (XAppStatusIconInterface *object);
-

Gets the value of the "IconSize" D-Bus property.

-

Since this D-Bus property is both readable and writable, it is meaningful to use this function on both the client- and service-side.

-

[skip]

-
-

Parameters

-
----- - - - - - -

object

A XAppStatusIconInterface.

 
-
-
-

Returns

-

The property value.

-
-
-
-
-

xapp_status_icon_interface_set_icon_size ()

-
void
-xapp_status_icon_interface_set_icon_size
-                               (XAppStatusIconInterface *object,
-                                gint value);
-

Sets the "IconSize" D-Bus property to value -.

-

Since this D-Bus property is both readable and writable, it is meaningful to use this function on both the client- and service-side.

-

[skip]

-
-

Parameters

-
----- - - - - - - - - - - - - -

object

A XAppStatusIconInterface.

 

value

The value to set.

 
-
-
-
-
-

xapp_status_icon_interface_proxy_new ()

-
void
-xapp_status_icon_interface_proxy_new (GDBusConnection *connection,
-                                      GDBusProxyFlags flags,
-                                      const gchar *name,
-                                      const gchar *object_path,
-                                      GCancellable *cancellable,
-                                      GAsyncReadyCallback callback,
-                                      gpointer user_data);
-

Asynchronously creates a proxy for the D-Bus interface org.x.StatusIcon. See g_dbus_proxy_new() for more details.

-

When the operation is finished, callback - will be invoked in the thread-default main loop of the thread you are calling this method from. -You can then call xapp_status_icon_interface_proxy_new_finish() to get the result of the operation.

-

See xapp_status_icon_interface_proxy_new_sync() for the synchronous, blocking version of this constructor.

-
-

Parameters

-
----- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

connection

A GDBusConnection.

 

flags

Flags from the GDBusProxyFlags enumeration.

 

name

A bus name (well-known or unique) or NULL if connection -is not a message bus connection.

[nullable]

object_path

An object path.

 

cancellable

A GCancellable or NULL.

[nullable]

callback

A GAsyncReadyCallback to call when the request is satisfied.

 

user_data

User data to pass to callback -.

 
-
-
-
-
-

xapp_status_icon_interface_proxy_new_finish ()

-
XAppStatusIconInterface *
-xapp_status_icon_interface_proxy_new_finish
-                               (GAsyncResult *res,
-                                GError **error);
-

Finishes an operation started with xapp_status_icon_interface_proxy_new().

-
-

Parameters

-
----- - - - - - - - - - - - - -

res

The GAsyncResult obtained from the GAsyncReadyCallback passed to xapp_status_icon_interface_proxy_new().

 

error

Return location for error or NULL

 
-
-
-

Returns

-

The constructed proxy object or NULL if error -is set.

-

[transfer full][type XAppStatusIconInterfaceProxy]

-
-
-
-
-

xapp_status_icon_interface_proxy_new_sync ()

-
XAppStatusIconInterface *
-xapp_status_icon_interface_proxy_new_sync
-                               (GDBusConnection *connection,
-                                GDBusProxyFlags flags,
-                                const gchar *name,
-                                const gchar *object_path,
-                                GCancellable *cancellable,
-                                GError **error);
-

Synchronously creates a proxy for the D-Bus interface org.x.StatusIcon. See g_dbus_proxy_new_sync() for more details.

-

The calling thread is blocked until a reply is received.

-

See xapp_status_icon_interface_proxy_new() for the asynchronous version of this constructor.

-
-

Parameters

-
----- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

connection

A GDBusConnection.

 

flags

Flags from the GDBusProxyFlags enumeration.

 

name

A bus name (well-known or unique) or NULL if connection -is not a message bus connection.

[nullable]

object_path

An object path.

 

cancellable

A GCancellable or NULL.

[nullable]

error

Return location for error or NULL

 
-
-
-

Returns

-

The constructed proxy object or NULL if error -is set.

-

[transfer full][type XAppStatusIconInterfaceProxy]

-
-
-
-
-

xapp_status_icon_interface_proxy_new_for_bus ()

-
void
-xapp_status_icon_interface_proxy_new_for_bus
-                               (GBusType bus_type,
-                                GDBusProxyFlags flags,
-                                const gchar *name,
-                                const gchar *object_path,
-                                GCancellable *cancellable,
-                                GAsyncReadyCallback callback,
-                                gpointer user_data);
-

Like xapp_status_icon_interface_proxy_new() but takes a GBusType instead of a GDBusConnection.

-

When the operation is finished, callback - will be invoked in the thread-default main loop of the thread you are calling this method from. -You can then call xapp_status_icon_interface_proxy_new_for_bus_finish() to get the result of the operation.

-

See xapp_status_icon_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor.

-
-

Parameters

-
----- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

bus_type

A GBusType.

 

flags

Flags from the GDBusProxyFlags enumeration.

 

name

A bus name (well-known or unique).

 

object_path

An object path.

 

cancellable

A GCancellable or NULL.

[nullable]

callback

A GAsyncReadyCallback to call when the request is satisfied.

 

user_data

User data to pass to callback -.

 
-
-
-
-
-

xapp_status_icon_interface_proxy_new_for_bus_finish ()

-
XAppStatusIconInterface *
-xapp_status_icon_interface_proxy_new_for_bus_finish
-                               (GAsyncResult *res,
-                                GError **error);
-

Finishes an operation started with xapp_status_icon_interface_proxy_new_for_bus().

-
-

Parameters

-
----- - - - - - - - - - - - - -

res

The GAsyncResult obtained from the GAsyncReadyCallback passed to xapp_status_icon_interface_proxy_new_for_bus().

 

error

Return location for error or NULL

 
-
-
-

Returns

-

The constructed proxy object or NULL if error -is set.

-

[transfer full][type XAppStatusIconInterfaceProxy]

-
-
-
-
-

xapp_status_icon_interface_proxy_new_for_bus_sync ()

-
XAppStatusIconInterface *
-xapp_status_icon_interface_proxy_new_for_bus_sync
-                               (GBusType bus_type,
-                                GDBusProxyFlags flags,
-                                const gchar *name,
-                                const gchar *object_path,
-                                GCancellable *cancellable,
-                                GError **error);
-

Like xapp_status_icon_interface_proxy_new_sync() but takes a GBusType instead of a GDBusConnection.

-

The calling thread is blocked until a reply is received.

-

See xapp_status_icon_interface_proxy_new_for_bus() for the asynchronous version of this constructor.

-
-

Parameters

-
----- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

bus_type

A GBusType.

 

flags

Flags from the GDBusProxyFlags enumeration.

 

name

A bus name (well-known or unique).

 

object_path

An object path.

 

cancellable

A GCancellable or NULL.

[nullable]

error

Return location for error or NULL

 
-
-
-

Returns

-

The constructed proxy object or NULL if error -is set.

-

[transfer full][type XAppStatusIconInterfaceProxy]

-
-
-
-
-

xapp_status_icon_interface_skeleton_new ()

-
XAppStatusIconInterface *
-xapp_status_icon_interface_skeleton_new
-                               (void);
-

Creates a skeleton object for the D-Bus interface org.x.StatusIcon.

-
-

Returns

-

The skeleton object.

-

[transfer full][type XAppStatusIconInterfaceSkeleton]

-
-
-
-
-

Types and Values

-
-
-

Property Details

-
-

The “icon-name” property

-
  “icon-name”                gchar *
-

Represents the D-Bus property "IconName".

-

Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

-

Flags: Read / Write

-

Default value: NULL

-
-
-
-

The “icon-size” property

-
  “icon-size”                gint
-

Represents the D-Bus property "IconSize".

-

Since the D-Bus property for this GObject property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.

-

Flags: Read / Write

-

Default value: 0

-
-
-
-

The “label” property

-
  “label”                    gchar *
-

Represents the D-Bus property "Label".

-

Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

-

Flags: Read / Write

-

Default value: NULL

-
-
-
-

The “name” property

-
  “name”                     gchar *
-

Represents the D-Bus property "Name".

-

Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

-

Flags: Read / Write

-

Default value: NULL

-
-
-
-

The “tooltip-text” property

-
  “tooltip-text”             gchar *
-

Represents the D-Bus property "TooltipText".

-

Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

-

Flags: Read / Write

-

Default value: NULL

-
-
-
-

The “visible” property

-
  “visible”                  gboolean
-

Represents the D-Bus property "Visible".

-

Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

-

Flags: Read / Write

-

Default value: FALSE

-
-
-
-

Signal Details

-
-

The “handle-button-press” signal

-
gboolean
-user_function (XAppStatusIconInterface *object,
-               GDBusMethodInvocation   *invocation,
-               gint                     arg_x,
-               gint                     arg_y,
-               guint                    arg_button,
-               guint                    arg_time,
-               gint                     arg_panel_position,
-               gpointer                 user_data)
-

Signal emitted when a remote caller is invoking the ButtonPress() D-Bus method.

-

If a signal handler returns TRUE, it means the signal handler will handle the invocation (e.g. take a reference to invocation - and eventually call xapp_status_icon_interface_complete_button_press() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD error is returned.

-
-

Parameters

-
----- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

object

A XAppStatusIconInterface.

 

invocation

A GDBusMethodInvocation.

 

arg_x

Argument passed by remote caller.

 

arg_y

Argument passed by remote caller.

 

arg_button

Argument passed by remote caller.

 

arg_time

Argument passed by remote caller.

 

arg_panel_position

Argument passed by remote caller.

 

user_data

user data set when the signal handler was connected.

 
-
-
-

Returns

-

TRUE if the invocation was handled, FALSE to let other signal handlers run.

-
-

Flags: Run Last

-
-
-
-

The “handle-button-release” signal

-
gboolean
-user_function (XAppStatusIconInterface *object,
-               GDBusMethodInvocation   *invocation,
-               gint                     arg_x,
-               gint                     arg_y,
-               guint                    arg_button,
-               guint                    arg_time,
-               gint                     arg_panel_position,
-               gpointer                 user_data)
-

Signal emitted when a remote caller is invoking the ButtonRelease() D-Bus method.

-

If a signal handler returns TRUE, it means the signal handler will handle the invocation (e.g. take a reference to invocation - and eventually call xapp_status_icon_interface_complete_button_release() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD error is returned.

-
-

Parameters

-
----- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

object

A XAppStatusIconInterface.

 

invocation

A GDBusMethodInvocation.

 

arg_x

Argument passed by remote caller.

 

arg_y

Argument passed by remote caller.

 

arg_button

Argument passed by remote caller.

 

arg_time

Argument passed by remote caller.

 

arg_panel_position

Argument passed by remote caller.

 

user_data

user data set when the signal handler was connected.

 
-
-
-

Returns

-

TRUE if the invocation was handled, FALSE to let other signal handlers run.

-
-

Flags: Run Last

-
-
-
-

The “handle-scroll” signal

-
gboolean
-user_function (XAppStatusIconInterface *object,
-               GDBusMethodInvocation   *invocation,
-               gint                     arg_delta,
-               gint                     arg_orientation,
-               guint                    arg_time,
-               gpointer                 user_data)
-

Signal emitted when a remote caller is invoking the Scroll() D-Bus method.

-

If a signal handler returns TRUE, it means the signal handler will handle the invocation (e.g. take a reference to invocation - and eventually call xapp_status_icon_interface_complete_scroll() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD error is returned.

-
-

Parameters

-
----- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

object

A XAppStatusIconInterface.

 

invocation

A GDBusMethodInvocation.

 

arg_delta

Argument passed by remote caller.

 

arg_orientation

Argument passed by remote caller.

 

arg_time

Argument passed by remote caller.

 

user_data

user data set when the signal handler was connected.

 
-
-
-

Returns

-

TRUE if the invocation was handled, FALSE to let other signal handlers run.

-
-

Flags: Run Last

-
-
-
- - - \ No newline at end of file diff --git a/docs/reference/XAppStatusIconMonitor.html b/docs/reference/XAppStatusIconMonitor.html index 681c51c..714d31e 100644 --- a/docs/reference/XAppStatusIconMonitor.html +++ b/docs/reference/XAppStatusIconMonitor.html @@ -7,8 +7,8 @@ - - + + @@ -22,7 +22,7 @@
Home Up PrevNextNext
@@ -38,8 +38,8 @@

Functions

--++ @@ -65,9 +65,9 @@

Signals

---+++ @@ -87,8 +87,8 @@

Types and Values

--++ @@ -114,7 +114,7 @@ to display info about an app.

The simplest way to use is to make a new instance of this monitor, and connect to the “icon-added” and “icon-removed” signals. -The received object for both of these signals is an XAppStatusIconInterfaceProxy. +The received object for both of these signals is an XAppStatusIconInterfaceProxy. It represents an application's XAppStatusIcon, and has properties available for describing the icon name, tooltip, label and visibility.

The proxy also provides methods to handle clicks, which can be called by the applet, @@ -182,7 +182,7 @@

The “icon-added” signal

void
 user_function (XAppStatusIconMonitor        *monitor,
-               XAppStatusIconInterfaceProxy *proxy,
+               XAppStatusIconInterfaceProxy *proxy,
                gpointer                      user_data)

This signal is emitted by the monitor when it has discovered a new XAppStatusIcon on the bus.

@@ -220,7 +220,7 @@

The “icon-removed” signal

void
 user_function (XAppStatusIconMonitor        *monitor,
-               XAppStatusIconInterfaceProxy *proxy,
+               XAppStatusIconInterfaceProxy *proxy,
                gpointer                      user_data)

This signal is emitted by the monitor when an XAppStatusIcon has disappeared from the bus.

@@ -256,6 +256,6 @@ +
Generated by GTK-Doc V1.32diff --git a/docs/reference/annotation-glossary.html b/docs/reference/annotation-glossary.html index 380401d..f8eb4e0 100644 --- a/docs/reference/annotation-glossary.html +++ b/docs/reference/annotation-glossary.html @@ -7,12 +7,14 @@ - +
- +
@@ -35,8 +35,8 @@

Functions

--++
@@ -66,11 +66,8 @@

Since: 1.8

-
-

Types and Values

-
+
Generated by GTK-Doc V1.32 diff --git a/docs/reference/libxapp.devhelp2 b/docs/reference/libxapp.devhelp2 index 804f1a3..96f9a51 100644 --- a/docs/reference/libxapp.devhelp2 +++ b/docs/reference/libxapp.devhelp2 @@ -2,6 +2,7 @@ + @@ -11,7 +12,7 @@ - + @@ -20,6 +21,24 @@ + + + + + + + + + + + + + + + + + + @@ -105,6 +124,7 @@ + @@ -118,12 +138,14 @@ + + @@ -137,52 +159,75 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -197,5 +242,8 @@ + + + diff --git a/docs/reference/object-tree.html b/docs/reference/object-tree.html index f2fe349..5b5889d 100644 --- a/docs/reference/object-tree.html +++ b/docs/reference/object-tree.html @@ -8,7 +8,7 @@ - + @@ -24,6 +24,7 @@ Object Hierarchy
     GObject
+    ├── XAppFavorites
     ├── GInitiallyUnowned
        ╰── GtkWidget
            ╰── GtkContainer
@@ -37,14 +38,23 @@
                    ╰── XAppStackSidebar
     ├── XAppKbdLayoutController
     ├── XAppMonitorBlanker
+    ├── GDBusObjectManagerClient
+       ╰── XAppObjectManagerClient
+    ├── GDBusObjectProxy
+       ╰── XAppObjectProxy
+    ├── GDBusObjectSkeleton
+       ╰── XAppObjectSkeleton
     ├── XAppStatusIcon
     ├── GDBusProxy
-       ╰── XAppStatusIconInterfaceProxy
+       ╰── XAppStatusIconInterfaceProxy
     ├── GDBusInterfaceSkeleton
-       ╰── XAppStatusIconInterfaceSkeleton
+       ╰── XAppStatusIconInterfaceSkeleton
     ╰── XAppStatusIconMonitor
     GInterface
-    ╰── XAppStatusIconInterface
+    ├── XAppObject
+    ╰── XAppStatusIconInterface
+    GBoxed
+    ╰── XAppFavoriteInfo
     GEnum
     ├── XAppIconSize
     ├── XAppScrollDirection
@@ -52,6 +62,6 @@
 
+
Generated by GTK-Doc V1.32 diff --git a/docs/reference/style.css b/docs/reference/style.css index 3675420..b4a1493 100644 --- a/docs/reference/style.css +++ b/docs/reference/style.css @@ -28,6 +28,10 @@ .variablelist td:first-child { vertical-align: top; +} + +span.nowrap { + white-space: nowrap; } div.gallery-float @@ -289,28 +293,10 @@ font-weight: normal; } -acronym,abbr +acronym,abbr { border-bottom: 1px dotted gray; } - -/* code listings */ - -.listing_code .programlisting .normal, -.listing_code .programlisting .normal a, -.listing_code .programlisting .number, -.listing_code .programlisting .cbracket, -.listing_code .programlisting .symbol { color: #555753; } -.listing_code .programlisting .comment, -.listing_code .programlisting .linenum { color: #babdb6; } /* tango: aluminium 3 */ -.listing_code .programlisting .function, -.listing_code .programlisting .function a, -.listing_code .programlisting .preproc { color: #204a87; } /* tango: sky blue 3 */ -.listing_code .programlisting .string { color: #ad7fa8; } /* tango: plum */ -.listing_code .programlisting .keyword, -.listing_code .programlisting .usertype, -.listing_code .programlisting .type, -.listing_code .programlisting .type a { color: #4e9a06; } /* tango: chameleon 3 */ .listing_frame { /* tango:sky blue 1 */ @@ -477,3 +463,71 @@ } } +.hll { background-color: #ffffcc } +.c { color: #408080; font-style: italic } /* Comment */ +.err { border: 1px solid #FF0000 } /* Error */ +.k { color: #008000; font-weight: bold } /* Keyword */ +.o { color: #666666 } /* Operator */ +.ch { color: #408080; font-style: italic } /* Comment.Hashbang */ +.cm { color: #408080; font-style: italic } /* Comment.Multiline */ +.cp { color: #BC7A00 } /* Comment.Preproc */ +.cpf { color: #408080; font-style: italic } /* Comment.PreprocFile */ +.c1 { color: #408080; font-style: italic } /* Comment.Single */ +.cs { color: #408080; font-style: italic } /* Comment.Special */ +.gd { color: #A00000 } /* Generic.Deleted */ +.ge { font-style: italic } /* Generic.Emph */ +.gr { color: #FF0000 } /* Generic.Error */ +.gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.gi { color: #00A000 } /* Generic.Inserted */ +.go { color: #888888 } /* Generic.Output */ +.gp { color: #000080; font-weight: bold } /* Generic.Prompt */ +.gs { font-weight: bold } /* Generic.Strong */ +.gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.gt { color: #0044DD } /* Generic.Traceback */ +.kc { color: #008000; font-weight: bold } /* Keyword.Constant */ +.kd { color: #008000; font-weight: bold } /* Keyword.Declaration */ +.kn { color: #008000; font-weight: bold } /* Keyword.Namespace */ +.kp { color: #008000 } /* Keyword.Pseudo */ +.kr { color: #008000; font-weight: bold } /* Keyword.Reserved */ +.kt { color: #B00040 } /* Keyword.Type */ +.m { color: #666666 } /* Literal.Number */ +.s { color: #BA2121 } /* Literal.String */ +.na { color: #7D9029 } /* Name.Attribute */ +.nb { color: #008000 } /* Name.Builtin */ +.nc { color: #0000FF; font-weight: bold } /* Name.Class */ +.no { color: #880000 } /* Name.Constant */ +.nd { color: #AA22FF } /* Name.Decorator */ +.ni { color: #999999; font-weight: bold } /* Name.Entity */ +.ne { color: #D2413A; font-weight: bold } /* Name.Exception */ +.nf { color: #0000FF } /* Name.Function */ +.nl { color: #A0A000 } /* Name.Label */ +.nn { color: #0000FF; font-weight: bold } /* Name.Namespace */ +.nt { color: #008000; font-weight: bold } /* Name.Tag */ +.nv { color: #19177C } /* Name.Variable */ +.ow { color: #AA22FF; font-weight: bold } /* Operator.Word */ +.w { color: #bbbbbb } /* Text.Whitespace */ +.mb { color: #666666 } /* Literal.Number.Bin */ +.mf { color: #666666 } /* Literal.Number.Float */ +.mh { color: #666666 } /* Literal.Number.Hex */ +.mi { color: #666666 } /* Literal.Number.Integer */ +.mo { color: #666666 } /* Literal.Number.Oct */ +.sa { color: #BA2121 } /* Literal.String.Affix */ +.sb { color: #BA2121 } /* Literal.String.Backtick */ +.sc { color: #BA2121 } /* Literal.String.Char */ +.dl { color: #BA2121 } /* Literal.String.Delimiter */ +.sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */ +.s2 { color: #BA2121 } /* Literal.String.Double */ +.se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */ +.sh { color: #BA2121 } /* Literal.String.Heredoc */ +.si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */ +.sx { color: #008000 } /* Literal.String.Other */ +.sr { color: #BB6688 } /* Literal.String.Regex */ +.s1 { color: #BA2121 } /* Literal.String.Single */ +.ss { color: #19177C } /* Literal.String.Symbol */ +.bp { color: #008000 } /* Name.Builtin.Pseudo */ +.fm { color: #0000FF } /* Name.Function.Magic */ +.vc { color: #19177C } /* Name.Variable.Class */ +.vg { color: #19177C } /* Name.Variable.Global */ +.vi { color: #19177C } /* Name.Variable.Instance */ +.vm { color: #19177C } /* Name.Variable.Magic */ +.il { color: #666666 } /* Literal.Number.Integer.Long */ \ No newline at end of file diff --git a/icons/hicolor/scalable/actions/xapp-favorite-symbolic.svg b/icons/hicolor/scalable/actions/xapp-favorite-symbolic.svg index c052e5f..063c2ab 100644 --- a/icons/hicolor/scalable/actions/xapp-favorite-symbolic.svg +++ b/icons/hicolor/scalable/actions/xapp-favorite-symbolic.svg @@ -5,40 +5,24 @@ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" - xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" - xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" id="svg4060" height="16" width="16" - version="1.1" - sodipodi:docname="xapp-favorite-symbolic.svg" - inkscape:version="0.92.5 (2060ec1f9f, 2020-04-08)"> - - - + version="1.1"> + id="defs4062"> + + + + @@ -51,8 +35,15 @@ - + + + + diff --git a/icons/hicolor/scalable/actions/xapp-unfavorite-symbolic.svg b/icons/hicolor/scalable/actions/xapp-unfavorite-symbolic.svg index 84f1e3f..335bdb1 100644 --- a/icons/hicolor/scalable/actions/xapp-unfavorite-symbolic.svg +++ b/icons/hicolor/scalable/actions/xapp-unfavorite-symbolic.svg @@ -5,64 +5,12 @@ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" - xmlns:xlink="http://www.w3.org/1999/xlink" - xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" - xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" id="svg4060" height="16" width="16" - version="1.1" - sodipodi:docname="xapp-unfavorite-symbolic.svg" - inkscape:version="0.92.5 (2060ec1f9f, 2020-04-08)"> - - - + version="1.1"> - - - - - - + id="defs4062" /> @@ -75,8 +23,15 @@ - + + + + diff --git a/icons/hicolor/scalable/categories/xapp-favorites-symbolic.svg b/icons/hicolor/scalable/categories/xapp-favorites-symbolic.svg deleted file mode 100644 index bc4418e..0000000 --- a/icons/hicolor/scalable/categories/xapp-favorites-symbolic.svg +++ /dev/null @@ -1,95 +0,0 @@ - - - - - - image/svg+xml - - - - - - - - - - - - - - - - - - - - diff --git a/icons/hicolor/scalable/categories/xapp-favorites.svg b/icons/hicolor/scalable/categories/xapp-favorites.svg deleted file mode 100644 index 939a7e3..0000000 --- a/icons/hicolor/scalable/categories/xapp-favorites.svg +++ /dev/null @@ -1,559 +0,0 @@ - - - - - - image/svg+xml - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/icons/hicolor/scalable/emblems/emblem-xapp-favorite.svg b/icons/hicolor/scalable/emblems/emblem-xapp-favorite.svg index a1420c8..84e90b5 100644 --- a/icons/hicolor/scalable/emblems/emblem-xapp-favorite.svg +++ b/icons/hicolor/scalable/emblems/emblem-xapp-favorite.svg @@ -1,22 +1,40 @@ + xmlns:xlink="http://www.w3.org/1999/xlink" + id="svg3883" + height="32" + width="32" + version="1.1"> + + + + + + + + id="metadata3888"> @@ -27,167 +45,8 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + d="m 16.000037,2.4961357 c 0.978784,0 4.13436,7.9108813 4.926214,8.4882713 0.791851,0.577387 9.263652,1.14474 9.566113,2.078973 0.302461,0.934234 -6.219087,6.39078 -6.521548,7.325013 -0.30246,0.934233 1.777824,9.195756 0.985972,9.773145 -0.791853,0.577387 -7.977967,-3.961163 -8.956752,-3.961163 -0.978783,0 -8.1648972,4.53855 -8.9567501,3.961163 C 6.251434,29.584149 8.331718,21.322625 8.0292575,20.388393 7.7267971,19.45416 1.2052494,13.997613 1.5077102,13.063378 1.810171,12.129147 10.281971,11.561794 11.073825,10.984407 c 0.791852,-0.57739 3.947429,-8.4882713 4.926212,-8.4882713 z" + id="path1307" + style="display:inline;overflow:visible;visibility:visible;fill:url(#linearGradient851);fill-opacity:1;fill-rule:nonzero;stroke:#ad5f00;stroke-width:1;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.498039;marker:none" /> diff --git a/icons/hicolor/scalable/places/xapp-user-favorites-symbolic.svg b/icons/hicolor/scalable/places/xapp-user-favorites-symbolic.svg new file mode 100644 index 0000000..3ef02cf --- /dev/null +++ b/icons/hicolor/scalable/places/xapp-user-favorites-symbolic.svg @@ -0,0 +1,60 @@ + + + + + + + image/svg+xml + + + + + + + + + diff --git a/icons/hicolor/scalable/places/xapp-user-favorites.svg b/icons/hicolor/scalable/places/xapp-user-favorites.svg new file mode 100644 index 0000000..73a87c5 --- /dev/null +++ b/icons/hicolor/scalable/places/xapp-user-favorites.svg @@ -0,0 +1,74 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + diff --git a/libxapp/favorite-vfs-file-enumerator.c b/libxapp/favorite-vfs-file-enumerator.c index 0f7dc31..220f9f5 100644 --- a/libxapp/favorite-vfs-file-enumerator.c +++ b/libxapp/favorite-vfs-file-enumerator.c @@ -32,42 +32,42 @@ FavoriteVfsFileEnumeratorPrivate *priv = favorite_vfs_file_enumerator_get_instance_private (self); GFileInfo *info; - if (cancellable) - { - if (g_cancellable_is_cancelled (cancellable)) - { - *error = g_error_new (G_IO_ERROR, G_IO_ERROR_CANCELLED, "Enumerate canceled"); - return NULL; - } + if (g_cancellable_set_error_if_cancelled (cancellable, error)) + { + return NULL; } info = NULL; while (priv->current_pos != NULL && info == NULL) { - GFile *file; gchar *uri; uri = path_to_fav_uri ((const gchar *) priv->current_pos->data); if (!xapp_favorites_find_by_display_name (xapp_favorites_get_default (), (gchar *) priv->current_pos->data)) { - *error = g_error_new (G_IO_ERROR, G_IO_ERROR_NOT_FOUND, "File not found"); + if (error) + { + *error = g_error_new (G_IO_ERROR, G_IO_ERROR_NOT_FOUND, "File not found"); + } g_warn_if_reached (); } else { + GFile *file; + file = g_file_new_for_uri (uri); - info = g_file_query_info (file, priv->attributes, priv->flags, cancellable, error); + + g_object_unref (file); } g_free (uri); - g_object_unref (file); } if (priv->current_pos) diff --git a/libxapp/favorite-vfs-file-monitor.c b/libxapp/favorite-vfs-file-monitor.c index 58cf926..c35c39c 100644 --- a/libxapp/favorite-vfs-file-monitor.c +++ b/libxapp/favorite-vfs-file-monitor.c @@ -288,6 +288,9 @@ g_object_unref (file); } + g_list_free (added); + g_list_free (removed); + GList *tmp = priv->infos; priv->infos = new_infos; diff --git a/libxapp/favorite-vfs-file.c b/libxapp/favorite-vfs-file.c index 7a9504b..eceb42f 100644 --- a/libxapp/favorite-vfs-file.c +++ b/libxapp/favorite-vfs-file.c @@ -370,14 +370,13 @@ GFileInfo *info; GIcon *icon; + info = NULL; + if (priv->info != NULL) { if (!priv->info->uri) { - if (error != NULL) - { - *error = g_error_new (G_IO_ERROR, G_IO_ERROR_NOT_FOUND, "File not found"); - } + g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND, "File not found"); return NULL; } @@ -467,7 +466,7 @@ if (g_file_attribute_matcher_matches (matcher, G_FILE_ATTRIBUTE_STANDARD_ICON)) { - icon = g_themed_icon_new ("xapp-favorites"); + icon = g_themed_icon_new ("xapp-user-favorites"); g_file_info_set_icon (info, icon); g_object_unref (icon); @@ -475,7 +474,7 @@ if (g_file_attribute_matcher_matches (matcher, G_FILE_ATTRIBUTE_STANDARD_SYMBOLIC_ICON)) { - icon = g_themed_icon_new ("xapp-favorites-symbolic"); + icon = g_themed_icon_new ("xapp-user-favorites-symbolic"); g_file_info_set_symbolic_icon (info, icon); g_object_unref (icon); } @@ -526,6 +525,10 @@ g_file_attribute_matcher_unref (matcher); } + else + { + g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_FAILED, "Can't retrieve info for favorite file"); + } return info; } @@ -732,7 +735,9 @@ break; } default: - break; + g_warn_if_reached (); + g_strfreev (old_metadata); + return; } exists = FALSE; @@ -1364,9 +1369,16 @@ priv->info = NULL; } + G_OBJECT_CLASS (favorite_vfs_file_parent_class)->dispose (object); +} + +static void favorite_vfs_file_finalize (GObject *object) +{ + FavoriteVfsFilePrivate *priv = favorite_vfs_file_get_instance_private (FAVORITE_VFS_FILE (object)); + g_clear_pointer (&priv->uri, g_free); - G_OBJECT_CLASS (favorite_vfs_file_parent_class)->dispose (object); + G_OBJECT_CLASS (favorite_vfs_file_parent_class)->finalize (object); } static void @@ -1391,6 +1403,7 @@ GObjectClass *gobject_class = G_OBJECT_CLASS (klass); gobject_class->dispose = favorite_vfs_file_dispose; + gobject_class->finalize = favorite_vfs_file_finalize; } static void favorite_vfs_file_init (FavoriteVfsFile *self) @@ -1491,11 +1504,17 @@ void init_favorite_vfs (void) { - GVfs *vfs; - vfs = g_vfs_get_default (); - - g_vfs_register_uri_scheme (vfs, "favorites", - favorite_vfs_lookup, NULL, NULL, - favorite_vfs_lookup, NULL, NULL); -} - + static gsize once_init_value = 0; + + if (g_once_init_enter (&once_init_value)) + { + GVfs *vfs; + vfs = g_vfs_get_default (); + + g_vfs_register_uri_scheme (vfs, "favorites", + favorite_vfs_lookup, NULL, NULL, + favorite_vfs_lookup, NULL, NULL); + + g_once_init_leave (&once_init_value, 1); + } +} diff --git a/libxapp/meson.build b/libxapp/meson.build index 7c7013e..24fa2ce 100644 --- a/libxapp/meson.build +++ b/libxapp/meson.build @@ -1,8 +1,8 @@ -glib_min_ver = '>=2.37.3' +glib_min_ver = '>=2.44.0' gio_dep = dependency('gio-2.0', version: glib_min_ver, required: true) glib_dep = dependency('glib-2.0', version: glib_min_ver, required: true) -gtk3_dep = dependency('gtk+-3.0', version: '>=3.3.16', required: true) +gtk3_dep = dependency('gtk+-3.0', version: '>=3.16', required: true) libdeps = [] libdeps += gio_dep diff --git a/libxapp/xapp-favorites.c b/libxapp/xapp-favorites.c index 6379d09..cd35c5d 100644 --- a/libxapp/xapp-favorites.c +++ b/libxapp/xapp-favorites.c @@ -34,6 +34,9 @@ * provide a safe mechanism for launching them. * * A list of #XAppFavoriteInfos can be retrieved in full, or only for specific mimetypes. + * + * A favorites uri scheme is also available if the xapp gtk3 module is loaded and this also makes the + * uri available as a shortcut in file dialogs. * * XAppFavorites are new for 2.0 */ @@ -263,7 +266,7 @@ g_debug ("XAppFavorites: store_favorites: favorites saved"); - g_free (new_settings); + g_strfreev (new_settings); } static void @@ -775,6 +778,7 @@ { if (global_favorites == NULL) { + init_favorite_vfs (); global_favorites = g_object_new (XAPP_TYPE_FAVORITES, NULL); } diff --git a/libxapp/xapp-gtk3-module.c b/libxapp/xapp-gtk3-module.c index 389ff98..99ac9e4 100644 --- a/libxapp/xapp-gtk3-module.c +++ b/libxapp/xapp-gtk3-module.c @@ -9,73 +9,55 @@ * The sole purpose of this module currently is to add a 'Favorites' * shortcut to GtkFileChooser dialogs. * - * In gtk_module_init, the XAppFavorites singleton is initialized, and - * the 'favorites' uri scheme is added to the default vfs. Ordinarily - * non-file:// schemes aren't supported in these dialogs unless their - * 'local-only' property is set to FALSE. Since favorites are shortcuts - * to locally-available files, we lie to the chooser setup by returning - * "/" instead of NULL when g_file_get_path ("favorites:///") is called. + * In gtk_module_init, the 'favorites' uri scheme is added to the default + * vfs. Ordinarily, non-file:// schemes aren't supported in these dialogs + * unless their 'local-only' property is set to FALSE. Since favorites + * are shortcuts to locally-available files, we lie to the chooser setup + * by returning "/" instead of NULL when g_file_get_path ("favorites:///") + * is called. */ +void gtk_module_init (gint *argc, gchar ***argv[]); +static void (* original_sidebar_constructed) (GObject *object); -/* Make sure GCC doesn't warn us about a missing prototype for this - * exported function */ -void gtk_module_init (gint *argc, gchar ***argv[]); +static void +xapp_sidebar_constructed (GObject *object) +{ + GtkPlacesSidebar *sidebar = GTK_PLACES_SIDEBAR (object); + GSettings *fav_settings; + gchar **list; -static gboolean -selection_changed_cb (GSignalInvocationHint *ihint, - guint n_param_values, - const GValue *param_values, - gpointer data) -{ - GtkFileChooser *chooser = GTK_FILE_CHOOSER (g_value_get_object (¶m_values[0])); - GSList *list, *i; - gboolean already_applied = FALSE; - list = gtk_file_chooser_list_shortcut_folder_uris (chooser); + (* original_sidebar_constructed) (object); - for (i = list; i != NULL; i = i->next) + // This is better than initializing favorites to count. + // That way if there aren't any favorites, fav_settings + // will go away. XAppFavorites is a singleton. + fav_settings = g_settings_new ("org.x.apps.favorites"); + list = g_settings_get_strv (fav_settings, "list"); + + if (g_strv_length (list) > 0) { - if (g_strcmp0 ((gchar *) i->data, "favorites:///") == 0) - { - already_applied = TRUE; - break; - } + GFile *favorites = g_file_new_for_uri ("favorites:///"); + gtk_places_sidebar_add_shortcut (sidebar, favorites); + g_object_unref (favorites); } - g_slist_free_full (list, g_free); - - if (!already_applied) - { - xapp_favorites_get_default (); - gtk_file_chooser_add_shortcut_folder_uri (chooser, "favorites:///", NULL); - } - - return TRUE; -} - -static void -add_chooser_hook (GType type) -{ - GTypeClass *type_class; - guint sigid; - - type_class = g_type_class_ref (type); - - sigid = g_signal_lookup ("selection-changed", type); - g_signal_add_emission_hook (sigid, 0, selection_changed_cb, NULL, NULL); - - g_type_class_unref (type_class); + g_strfreev (list); + g_object_unref (fav_settings); } G_MODULE_EXPORT void gtk_module_init (gint *argc, gchar ***argv[]) { + GObjectClass *object_class; + // This won't instantiate XAppFavorites but will register the uri so // it can be used by apps (like pix which doesn't use the favorites api, // but just adds favorites:/// to its sidebar.) init_favorite_vfs (); - add_chooser_hook (GTK_TYPE_FILE_CHOOSER_WIDGET); - add_chooser_hook (GTK_TYPE_FILE_CHOOSER_DIALOG); - add_chooser_hook (GTK_TYPE_FILE_CHOOSER_BUTTON); + object_class = g_type_class_ref (GTK_TYPE_PLACES_SIDEBAR); + + original_sidebar_constructed = object_class->constructed; + object_class->constructed = xapp_sidebar_constructed; } G_MODULE_EXPORT gchar* g_module_check_init (GModule *module); diff --git a/libxapp/xapp-icon-chooser-dialog.c b/libxapp/xapp-icon-chooser-dialog.c index 21f0fce..8a93e0f 100644 --- a/libxapp/xapp-icon-chooser-dialog.c +++ b/libxapp/xapp-icon-chooser-dialog.c @@ -178,7 +178,7 @@ static void on_cancel_button_clicked (GtkButton *button, gpointer user_data); -static gboolean on_default_button_clicked (GtkButton *button, +static void on_default_button_clicked (GtkButton *button, gpointer user_data); static gboolean on_search_bar_key_pressed (GtkWidget *widget, @@ -2026,7 +2026,7 @@ return FALSE; } -static gboolean +static void on_default_button_clicked (GtkButton *button, gpointer user_data) { @@ -2035,5 +2035,4 @@ priv = xapp_icon_chooser_dialog_get_instance_private (user_data); gtk_entry_set_text (GTK_ENTRY (priv->search_bar), priv->default_icon); - -} +} diff --git a/libxapp/xapp-status-icon.c b/libxapp/xapp-status-icon.c index 4153a44..5e6773f 100644 --- a/libxapp/xapp-status-icon.c +++ b/libxapp/xapp-status-icon.c @@ -221,12 +221,6 @@ fy = y - self->priv->icon_size; *rect_anchor = GDK_GRAVITY_SOUTH_WEST; *menu_anchor = GDK_GRAVITY_NORTH_WEST; - break; - case GTK_POS_BOTTOM: - fx = x; - fy = y; - *rect_anchor = GDK_GRAVITY_NORTH_WEST; - *menu_anchor = GDK_GRAVITY_SOUTH_WEST; break; case GTK_POS_LEFT: fx = x - self->priv->icon_size; @@ -239,6 +233,13 @@ fy = y; *rect_anchor = GDK_GRAVITY_NORTH_WEST; *menu_anchor = GDK_GRAVITY_NORTH_EAST; + break; + case GTK_POS_BOTTOM: + default: + fx = x; + fy = y; + *rect_anchor = GDK_GRAVITY_NORTH_WEST; + *menu_anchor = GDK_GRAVITY_SOUTH_WEST; break; } @@ -631,6 +632,8 @@ button, _time, orientation); + + return GDK_EVENT_PROPAGATE; } static void diff --git a/meson-scripts/install_generated_header.py b/meson-scripts/install_generated_header.py old file mode 100644 new file mode 100755 index d487ad9..d487ad9 100755 diff --git a/meson-scripts/module_xinit_fix_perms.py b/meson-scripts/module_xinit_fix_perms.py new file mode 100755 index 0000000..80f4f25 --- /dev/null +++ b/meson-scripts/module_xinit_fix_perms.py @@ -0,0 +1,14 @@ +#!/usr/bin/python3 + +import os +import sys +import subprocess + +if os.environ.get('DESTDIR'): + file = "%s/%s/%s" % (os.environ.get('DESTDIR'), sys.argv[1], sys.argv[2]) +else: + file = os.path.join(sys.argv[1], sys.argv[2]) + +subprocess.call(['sh', '-c', 'chmod +x %s' % file]) + +exit(0) diff --git a/meson.build b/meson.build index aab0afc..3c26d8a 100644 --- a/meson.build +++ b/meson.build @@ -1,6 +1,7 @@ project('xapp', 'c', - version : '2.0.0' + version : '2.0.1', + default_options : [ 'buildtype=debugoptimized' ], ) gnome = import('gnome') diff --git a/xapp-sn-watcher/sn-item.c b/xapp-sn-watcher/sn-item.c index ca6d1c5..9d39b42 100644 --- a/xapp-sn-watcher/sn-item.c +++ b/xapp-sn-watcher/sn-item.c @@ -294,6 +294,8 @@ return surface; } + + return NULL; } static cairo_surface_t * @@ -323,7 +325,7 @@ while (g_variant_iter_loop (iter, "(ii@ay)", &width, &height, &byte_array_var)) { - if (width > 0 & height > 0 && byte_array_var != NULL && + if (width > 0 && height > 0 && byte_array_var != NULL && ((width * height) > (largest_width * largest_height))) { gsize data_size = g_variant_get_size (byte_array_var);