2
2
@c %start of fragment
4
4
@deftp Class <gtk-status-icon>
5
This @code{<gobject>} class defines the following properties:
5
Derives from @code{<gobject>}.
7
This class defines the following slots:
9
A GdkPixbuf to display@item file
10
Filename to load and display@item stock
11
Stock ID for a stock image to display@item icon-name
12
The name of the icon from the icon theme@item storage-type
13
The representation being used for image data@item size
14
The size of the icon@item screen
15
The screen where this status icon will be displayed@item visible
16
Whether or not the status icon is visible@item orientation
17
The orientation of the tray@item embedded
18
Whether or not the status icon is embedded@item blinking
19
Whether or not the status icon is blinking@end table
11
A GdkPixbuf to display
14
Filename to load and display
17
Stock ID for a stock image to display
20
The name of the icon from the icon theme
23
The representation being used for image data
29
The screen where this status icon will be displayed
32
Whether or not the status icon is visible
35
The orientation of the tray
38
Whether or not the status icon is embedded
41
Whether or not the status icon is blinking
417
@deffn Function gtk-status-icon-position-menu (menu@tie{}@code{<gtk-menu>}) (user_data@tie{}@code{<gpointer>}) @result{}@tie{} (x@tie{}@code{int}) (y@tie{}@code{int}) (push_in@tie{}@code{bool})
418
Menu positioning function to use with @code{gtk-menu-popup} to position
419
@var{menu} aligned to the status icon @var{user-data}.
423
the @code{<gtk-menu>}
426
return location for the x position
429
return location for the y position
432
return location for whether the menu should be pushed in to be completely inside
433
the screen instead of just clamped to the size to the screen.
436
the status icon to position the menu on
444
@deffn Function gtk-status-icon-get-geometry (self@tie{}@code{<gtk-status-icon>}) (screen@tie{}@code{<gdk-screen**>}) (area@tie{}@code{<gdk-rectangle>}) (orientation@tie{}@code{<gtk-orientation*>}) @result{}@tie{} (ret@tie{}@code{bool})
445
@deffnx Method get-geometry
446
Obtains information about the location of the status icon on screen. This
447
information can be used to e.g. position popups like notification bubbles.
449
See @code{gtk-status-icon-position-menu} for a more convenient alternative for
452
Note that some platforms do not allow GTK+ to provide this information, and even
453
on platforms that do allow it, the information is not reliable unless the status
454
icon is embedded in a notification area, see @code{gtk-status-icon-is-embedded}.
458
a @code{<gtk-status-icon>}
461
return location for the screen, or @samp{@code{#f}} if the information is not
465
return location for the area occupied by the status icon, or @samp{@code{#f}}
468
return location for the orientation of the panel in which the status icon is
469
embedded, or @samp{@code{#f}}. A panel at the top or bottom of the screen is
470
horizontal, a panel at the left or right is vertical.
473
@samp{@code{#t}} if the location information has been filled in
482
442
@c %end of fragment