Class: Wnck::Application

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.get(xwindow) ⇒ Wnck::Application

Gets the Wnck::Application corresponding to the group leader with xwindow
as X window ID.
xwindow, or nil if there no such Wnck::Application could be found. The
returned Wnck::Application is owned by libwnck and must not be referenced or
unreferenced.

Parameters:

  • xwindow (Wnck::gulong)

    the X window ID of a group leader.

Returns:

Instance Method Details

#iconGdkPixbuf::Pixbuf

Gets the icon to be used for app. If no icon is set for app, a
suboptimal heuristic is used to find an appropriate icon. If no icon was
found, a fallback icon is used.
reference the returned GdkPixbuf if it needs to keep
the icon around.

Returns:

  • (GdkPixbuf::Pixbuf)

    the icon for app. The caller should

#icon_is_fallbackBoolean

Gets whether a default fallback icon is used for app (because none
was set on app).

Returns:

  • (Boolean)

    true if the icon for app is a fallback, false otherwise.

#icon_nameString

Gets the icon name of app (to be used when app is minimized). Since
there is no way to properly find this name, various suboptimal heuristics
are used to find it.
is available.

Returns:

  • (String)

    the icon name of app, or a fallback icon name if no icon name

#mini_iconGdkPixbuf::Pixbuf

Gets the mini-icon to be used for app. If no mini-icon is set for app,
a suboptimal heuristic is used to find an appropriate icon. If no mini-icon
was found, a fallback mini-icon is used.
reference the returned GdkPixbuf if it needs to keep
the mini-icon around.

Returns:

  • (GdkPixbuf::Pixbuf)

    the mini-icon for app. The caller should

#n_windowsInteger

Gets the number of Wnck::Window belonging to app.

Returns:

  • (Integer)

    the number of Wnck::Window belonging to app.

#nameString

Gets the name of app. Since there is no way to properly find this name,
various suboptimal heuristics are used to find it. GTK+ should probably have
a function to allow applications to set the _NET_WM_NAME property on the
group leader as the application name, and the EWMH
should say that this is where the application name goes.

Returns:

  • (String)

    the name of app, or a fallback name if no name is available.

#pidInteger

Gets the process ID of app.

Returns:

  • (Integer)

    the process ID of app, or 0 if none is available.

#startup_idString

Gets the startup sequence ID used for startup notification of app.
or nil if none is available.

Returns:

  • (String)

    the startup sequence ID used for startup notification of app,

#windowsGLib::List<Wnck::Window>

Gets the list of Wnck::Window belonging to app.
Wnck::Window belonging to app, or nil if the application contains no
window. The list should not be modified nor freed, as it is owned by app.

Returns:

#xidWnck::gulong

Gets the X window ID of the group leader window for app.

Returns:

  • (Wnck::gulong)

    the X window ID of the group leader window for app.