Commit Graph

93 Commits

Author SHA1 Message Date
Hans Breuer
9452b271a0 Bug 609622 - disappearing statusicon
Windows 7 is managing status icon visibility across process lifetime,
which did not work with GTK+ create icons. Apparently the mechanism
does not require use of new API (like suggested by MSDN), but it is
enough to give a "unique" tooltip at creation time.
Formerly this initial tooltip was not set at all, later setting via
gtk_status_icon_set_tooltip_text() is not enough, but luckily
different follow-up tooltips don't disturb the intended behavior.
(cherry picked from commit ae0544c636)
(cherry picked from commit 8a9d458baf)
2010-11-07 23:58:29 +01:00
Benjamin Otte
d9c9259861 Move GtkSizeRequest into GtkWidget
It doesn't make sense to keep them separate as GtkSizeRequest requires a
GtkWidget and GtkWidget implements GtkSizeRequest, so you can never have
one without the other.
It also makes the code a lot easier because no casts are required when
calling functions.

Also, the names would translate to gtk_widget_get_width() and people
agreed that this would be a too generic name, so a "preferred" was added
to the names.

So this patch moves the functions:
gtk_size_request_get_request_mode() => gtk_widget_get_request_mode()
gtk_size_request_get_width() => gtk_widget_get_preferred_width()
gtk_size_request_get_height() => gtk_widget_get_preferred_height()
gtk_size_request_get_size() => gtk_widget_get_preferred_size()
gtk_size_request_get_width_for_height() =>
  gtk_widget_get_preferred_width_for_height()
gtk_size_request_get_height_for_width() =>
  gtk_widget_get_preferred_height_for_width()
... and moves the corresponding vfuncs to the GtkWidgetClass.

The patch also renames the implementations of the vfuncs in widgets to
include the word "preferrred".
2010-09-26 15:11:45 +02:00
Matthias Clasen
e0aa12eb0a Tons of transfer annotations 2010-09-21 00:18:11 -04:00
Javier Jardón
b140884fec Use gtk_size_request_get_size() instead deprecated gtk_widget_size_request()
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=629598

Signed-off-by: Javier Jardón <jjardon@gnome.org>
Signed-off-by: Tristan Van Berkom <tristanvb@openismus.com>
2010-09-15 03:02:58 +02:00
Colin Walters
913cdf3be7 GDK: Prefix key names with KEY_
The keysyms create a lot of potential namespace conflicts for
C, and are especially problematic for introspection, where we take
constants into the namespace, so GDK_Display conflicts with GdkDisplay.

For C application compatiblity, add gdkkeysyms-compat.h which uses
the old names.

Just one user in GTK+ continues to use gdkkeysyms-compat.h, which is
the gtkimcontextsimple.c, since porting that requires porting more
custom Perl code.
2010-09-08 18:51:44 -04:00
Matthias Clasen
18b47b6cd0 Remove blinking from status icons
This feature was just a bad idea.
2010-09-02 09:37:06 -04:00
Javier Jardón
af8efa0b46 Use accessor functions to access GtkPlug 2010-08-27 23:12:12 +02:00
Javier Jardón
f43610e110 gtk/gtkstatusicon.c: use accessor functions to access GtkWidget 2010-08-22 21:25:24 +02:00
Philip Withnall
3eb197b51f Bug 596125 — Property string fixes 2010-08-10 09:23:49 +01:00
Matthias Clasen
92d34337f7 Re-add a lost Since: line
Pointed out in bug 579583
2010-08-04 22:58:14 -04:00
Javier Jardón
978a031b76 Use accessor functions to access GtkMisc 2010-07-13 19:40:49 +02:00
Javier Jardón
0a07e9733b gtk/: fully remove gtkalias hacks
https://bugzilla.gnome.org/show_bug.cgi?id=623845
2010-07-10 02:51:26 +02:00
Matthias Clasen
a4d4b54a7d Add padding around the status icons
The amount of padding is determined by reading a _NET_SYSTEM_TRAY_PADDING
property off the manager window, in the same way that orientation and visual
are obtained.

Signed-off-by: Richard Hughes <richard@hughsie.com>
2010-05-10 15:26:44 +01:00
Christian Dywan
bb475d5d2e Remove deprecated GtkStatusIcon functions 2010-05-03 01:40:41 +02:00
Matthias Clasen
556531b16f Get symbolic colors for statusicons from systray
Uses the X property _NET_SYSTEM_TRAY_COLORS.
2010-04-29 17:01:25 -04:00
Javier Jardón
16a59ad912 Deprecate widget flag: GTK_WIDGET_REALIZED
Use gtk_widget_get_realized() instead

https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-03-03 20:41:05 +01:00
Javier Jardón
483a5a9e1a Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_CAN_FOCUS)
Use new API instead: gtk_widget_set_can_focus ()
2010-03-02 04:42:54 +01:00
Johan Dahlin
fe85272112 [annotations] Add allow-none
This commit was created using a script that searched for all docstrings
containing a parameter and the string 'or %NULL'.
Gdk backends and demos excluded as they are not part of a public API

https://bugzilla.gnome.org/show_bug.cgi?id=610474
2010-02-19 17:57:51 -02:00
Matthias Clasen
97a1a28bcb Add a way to set wm_class on statusicons
Since the shell uses wm_class for sorting statusicons.
2010-01-20 12:25:24 -05:00
Colin Walters
6529c07614 [introspection] Merge in Gtk-custom.c annotations
The Gtk-custom.c file in gir-repository contained a number of
introspection annotations.  Merge those into the GTK source files.

Some documentation was moved from the tmpl/ files to accomodate
the addition of annotations.
2009-12-16 17:22:01 -02:00
Javier Jardón
d0f2cd73b0 Use G_STRLOC instead __FILE__ and __LINE__ 2009-10-27 00:21:51 +01:00
Matthias Clasen
9f11bb0ff6 Don't omit GTK_ICON_SIZE_DIALOG 2009-10-18 02:07:58 -04:00
Matthias Clasen
24df69b283 Add a note about tooltip limitations
Apparently Windows only shows the first 64 characters of tooltips
on statusicons. Bug 594600.
2009-09-11 12:47:32 -04:00
Hans Breuer
b11c4d9fae gtk_status_icon_get_title() must return a value 2009-07-04 12:19:06 +02:00
Matthias Clasen
374aa04954 Add a title property to GtkStatusIcon
This can be used to give ATs a string to display for tray icons.
See bug 585802.
2009-06-20 13:53:32 -04:00
Daniel Elstner
21594f5574 Terminate case with break in switch statement
* gtk/gtkstatusicon.c (gtk_status_icon_set_property): Add missing
break statements to unterminated case blocks inside switch.
2009-06-15 22:07:50 +02:00
Christian Persch
3b437b016c Bug 577224 – crash when setting new icon after setting icon in
2009-03-29  Christian Persch  <chpe@gnome.org>

	Bug 577224 – crash when setting new icon after setting icon in
	gtkstatusicon

	* gtk/gtkstatusicon.c: (gtk_status_icon_reset_image_data),
	(gtk_status_icon_set_from_gicon): Retain a reference when setting
	from a GIcon, and use g_object_unref on GIcon, not g_free.

svn path=/trunk/; revision=22594
2009-03-29 21:25:13 +00:00
Matthias Clasen
03879f4c1f Avoid warnings
svn path=/trunk/; revision=22424
2009-02-28 06:32:27 +00:00
Matthias Clasen
f6212513f8 Fix the build on OS X
svn path=/trunk/; revision=22044
2009-01-02 20:59:37 +00:00
Matthias Clasen
9f7e7c435b Documentation fixes
2008-12-28  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkhsv.c:
        * gtk/gtkwidget.c:
        * gtk/gtkaccelgroup.c: Documentation fixes

        * gtk/gtkstatusicon.c:
        * gtk/gtkentry.c:
        * gtk/gtkeditable.[hc]: Make parameter names match to make gtk-doc
        happy.


svn path=/trunk/; revision=21953
2008-12-28 06:58:09 +00:00
Matthias Clasen
51d8bd494e Fix the build
svn path=/trunk/; revision=21915
2008-12-19 18:33:27 +00:00
Matthias Clasen
a3fad19994 Destroy the image too. Patch by Carlos Garcia Campos
* gtk/gtkstatusicon.c (gtk_status_icon_finalize): Destroy the
        image too. Patch by Carlos Garcia Campos


svn path=/trunk/; revision=21882
2008-12-13 05:42:46 +00:00
Johan Dahlin
e2d2ea6fd7 Add missing space in gtk-doc deprecated syntax
2008-12-04  Johan Dahlin  <jdahlin@async.com.br>

        * gtk/gtkstatusicon.c:
        Add missing space in gtk-doc deprecated syntax


svn path=/trunk/; revision=21845
2008-12-04 19:56:42 +00:00
Richard Hult
43c5ef3128 Fix build for win32 and quartz.
2008-11-05  Richard Hult  <richard@imendio.com>

	* gtk/gtkstatusicon.c: (gtk_status_icon_set_has_tooltip),
	(gtk_status_icon_get_tooltip_markup): Fix build for win32 and
	quartz.

svn path=/trunk/; revision=21758
2008-11-05 10:24:30 +00:00
Matthias Clasen
d06e67023c Add new statusicon tooltip api
svn path=/trunk/; revision=21754
2008-11-03 19:46:21 +00:00
Matthias Clasen
fdb141c40b Fix the build
svn path=/trunk/; revision=21752
2008-11-03 04:45:18 +00:00
Matthias Clasen
1ffab34fee Add support for button press/release and scroll events. Patch by Ed Catmur
* gtk/gtkstatusicon.[hc]: Add support for button press/release and
scroll events. Patch by Ed Catmur

svn path=/trunk/; revision=21746
2008-11-01 05:33:26 +00:00
Michael Natterer
f385a771e1 use g_return_val_if_fail() now that the function has a return value.
2008-08-12  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkstatusicon.c (gtk_status_icon_get_gicon): use
	g_return_val_if_fail() now that the function has a return value.


svn path=/trunk/; revision=21095
2008-08-12 14:45:35 +00:00
Matthias Clasen
a862e0dfcd Fix some new api
svn path=/trunk/; revision=21083
2008-08-12 07:25:08 +00:00
Sven Neumann
1b34902d33 gtk/gtkscale.c gtk/gtkscrolledwindow.c gtk/gtksocket.c gtk/gtkspinbutton.c
2008-08-08  Sven Neumann  <sven@gimp.org>

	* gtk/gtkscale.c
	* gtk/gtkscrolledwindow.c
	* gtk/gtksocket.c
	* gtk/gtkspinbutton.c
	* gtk/gtkstatusbar.c
	* gtk/gtkstatusicon.c: use canonical signal names.


svn path=/trunk/; revision=21046
2008-08-08 14:36:41 +00:00
Tor Lillqvist
6ecaa61a1c Fix typo in Win32 and Quartz code:
2008-08-04  Tor Lillqvist  <tml@novell.com>

	* gtk/gtkstatusicon.c: Fix typo in Win32 and Quartz code:
	s/gtk_icon_icon_info_load_icon/gtk_icon_info_load_icon/ .


svn path=/trunk/; revision=20955
2008-08-03 23:16:31 +00:00
Matthias Clasen
d2fc1c7ee0 Add GIcon support to GtkStatusIcon
svn path=/trunk/; revision=20940
2008-08-02 05:07:02 +00:00
Murray Cumming
72bf940716 Documented the activate and popup-menu signals as being for use by
2008-07-25  Murray Cumming  <murrayc@murrayc.com>

* gtk/gtkstatusicon.c (gtk_status_icon_class_init):
Documented the activate and popup-menu signals as being for use 
by applications and language bindings, though they are G_SIGNAL_ACTION, 
as stated in bug #361561.

svn path=/trunk/; revision=20905
2008-07-25 15:42:41 +00:00
Matthias Clasen
183f651cd1 Tiny doc fix
svn path=/trunk/; revision=20803
2008-07-07 03:32:58 +00:00
Johan Dahlin
d97cdbdf53 Include "config.h" instead of <config.h> Command used: find -name
2008-06-21  Johan Dahlin  <jdahlin@async.com.br>

    * *.[ch]: Include "config.h" instead of <config.h>
    Command used:
    find -name \*.[ch]|xargs perl -p -i -e 's/^#include <config.h>/#include "config.h"/g'
    Rubberstamped by Mitch and Tim


svn path=/trunk/; revision=20669
2008-06-22 14:28:52 +00:00
Johan Dahlin
9276cf5a06 Remove svn:executable property
svn path=/trunk/; revision=20475
2008-06-19 20:40:06 +00:00
Colin Walters
8ade45013c Bug 535303 – add _get_implementation to GtkStatusIcon
2008-06-03  Colin Walters  <walters@redhat.com>
	
	Bug 535303 – add _get_implementation to GtkStatusIcon

	* gtk/gtkstatusicon.c (gtk_status_icon_get_x11_window_id): New
	function to retrieve internal X11 window ID, useful for libnotify.
	* gtk/gtkstatusicon.h: Prototype it.
	* docs/reference/gtk/gtk-sections.txt: Add to docs.
	* gtk/gtk.symbols: Export it.


svn path=/trunk/; revision=20304
2008-06-03 17:39:20 +00:00
Tor Lillqvist
4217ebbf78 Remove one extraneous space.
svn path=/trunk/; revision=19793
2008-03-12 19:41:30 +00:00
Tor Lillqvist
0cc4738b0c Bug 510000 - GtkStatusIcon doesn't reshow after explorer.exe crash
2008-03-12  Tor Lillqvist  <tml@novell.com>

	Bug 510000 - GtkStatusIcon doesn't reshow after explorer.exe crash

	* gtk/gtkstatusicon.c [Win32]: Keep a list of status icons. Check
	for the TaskbarCreated message in the window procedure for the
	dummy "tray observer" window we create. When we get a
	TaskbarCreated message, iterate over the status icons and re-add
	them to the task bar, and update them by calling
	gtk_status_icon_update_image().

	Move some ifdefs around to avoid unused functions.


svn path=/trunk/; revision=19792
2008-03-12 19:34:38 +00:00
Michael Natterer
697a50929e #include "gtkmain.h" for gtk_get_current_event_time().
2008-02-12  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkstatusicon.c: #include "gtkmain.h" for
	gtk_get_current_event_time().


svn path=/trunk/; revision=19522
2008-02-12 10:26:42 +00:00