Benjamin Otte
fd20ac0751
Revert "Deprecate the GdkRegion API"
...
This reverts commit 821dd33918
.
2010-05-26 09:25:35 +02:00
Benjamin Otte
821dd33918
Deprecate the GdkRegion API
...
Includes fixing all callers to use the cairo region API instead. This is
usually just replacing the function names, the only difference is
gdk_region_get_rectangles() being replaced by
cairo_region_num_rectangles() and cairo_region_get_rectangle() which
required a bit more work.
https://bugzilla.gnome.org/show_bug.cgi?id=613284
2010-05-23 23:27:15 +02:00
Javier Jardón
32b9aeaadd
Don't use GTK_WIDGET_STATE in internal code anymore
...
Use gtk_widget_get/set_state() instead
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-03-09 02:40:17 +01:00
Javier Jardón
24bafd8693
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_NO_WINDOW)
...
Use new API instead: gtk_widget_set_has_window ()
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-03-06 11:37:06 +01: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
1fe7d3cefd
Deprecate widget flag: GTK_WIDGET_MAPPED
...
Use gtk_widget_get_mapped() instead.
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-03-03 20:19:03 +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
Javier Jardón
214a023e91
Deprecate widget flag: GTK_WIDGET_VISIBLE
...
Use gtk_widget_get_visible() instead
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-03-01 07:52:07 +01:00
Javier Jardón
4232115e22
Deprecate widget flag: GTK_WIDGET_HAS_FOCUS
...
Use gtk_widget_has_focus() instead
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-03-01 06:11:01 +01:00
Javier Jardón
a27d5a2c9e
Deprecate widget flag: GTK_WIDGET_IS_SENSITIVE
...
Use gtk_widget_is_sensitive() instead
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-03-01 05:32:51 +01:00
Javier Jardón
4f78f70b15
Deprecate widget flag: GTK_WIDGET_DRAWABLE
...
Use gtk_widget_is_drawable() instead.
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-03-01 04:55:55 +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
b242c02e71
Reset effective_attrs when necessary
...
This fixes both bug 607217 and bug 607269.
2010-01-17 23:33:19 -05:00
Javier Jardón
56a893ca8c
Deprecate widget flag: GTK_WIDGET_CAN_FOCUS
...
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-01-07 10:05:08 +01:00
Javier Jardón
aa63be61d9
Fix compilation warning: use const *gchar variable
...
https://bugzilla.gnome.org/show_bug.cgi?id=605090
2010-01-04 11:47:40 +01:00
Christian Dywan
bb1824c131
Deprecate flag macros for toplevel, state, no window and composite child
...
Deprecate widget flag macros GTK_WIDGET_STATE, GTK_WIDGET_SAVED_STATE,
GTK_WIDGET_FLAGS, GTK_WIDGET_TOPLEVEL, GTK_WIDGET_NO_WINDOW and
GTK_WIDGET_COMPOSITE_CHILD.
Also deprecate the type macros GTK_WIDGET_TYPE, GTK_OBJECT_TYPE_NAME and
GTK_OBJECT_TYPE which have become redundant.
Instances of GTK_WIDGET_TOPLEVEL are replaced with gtk_widget_is_toplevel,
GTK_WIDGET_TYPE is replaced with G_OBJECT_TYPE, GTK_WIDGET_COMPOSITE_CHILD
is replaced with use of the "composite-child" property and uses of
GTK_WIDGET_NO_WINDOW are adjusted to use gtk_widget_get_has_window.
Uses of GTK_WIDGET_SAVED_STATE and GTK_WIDGET_FLAGS inside GtkWidget are
changed to direct flag usage.
Documentation is updated to refer to gtk_widget_set_has_window and
gtk_widget_get_has_window.
Gail and tests are updated as well.
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-01-04 07:57:05 +01:00
Matthias Clasen
23a5381cba
Make mnemonic hiding work in all cases
...
Both gtk-enable-mnemonics and gtk-auto-mnemonis did not work with
gtk_label_set_markup_with_mnemonic(). Also, fix gtk_label_set_pattern().
2010-01-03 00:57:14 -05:00
Jonh Wendell
da113b8312
Fix a memory leak in gtk_label_compose_effective_attrs()
2009-12-22 11:46:08 -03:00
Matthias Clasen
72e41b41f5
More auto-mnemonics tweaks
...
When auto-mnemonics are on, hide mnemonics with insensitive target.
2009-12-20 19:17:24 -05:00
Matthias Clasen
c59f76fda2
Only show the mnemonic underline when pressing Alt
...
...and show them in menus when navigating the menu with the keyboard.
This is similar to what other platforms do, and reduces visual clutter.
There is a setting to control this. Most of the work on this patch was
done by Thomas Wood. See bug 588554.
2009-12-20 03:11:05 -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
Matthias Clasen
6abb399ef4
Trivial doc typo fix
2009-11-29 19:00:10 -05:00
Matthias Clasen
324ff48edc
Avoid a harmless warning
...
In labels with colored, underlined text, the link handling code
would spit out a warning, even if no links are around.
See 603302.
2009-11-29 17:19:58 -05:00
Matthias Clasen
088baaec31
Make selecting the last character work again
...
This broke when I added link support. git bisect helped to track it
down.
2009-10-09 07:08:54 +02:00
Matthias Clasen
2bb2820272
Make link coloring in labels optional
...
Turns out that link coloring is expected for actual hypertext-like
use, but when using links just as 'mutant button', then it gets
in the way.
2009-07-09 13:59:35 -04:00
Federico Mena Quintero
26c10075f9
Merge fix for bgo#315462 - Make GtkLabel deal with too-small height allocations gracefully
...
Merge branch 'gtk-2-16'
2009-05-12 19:13:33 -05:00
Federico Mena Quintero
67e0a44100
bgo#315462 - Make GtkLabel deal with too-small height allocations gracefully
...
Previously we would always align the top of the text with the label's allocation-plus-padding.
However, this makes a single-line label inside a GtkButton look badly clipped when the button
has a smaller allocation than its requisition. So, for single-line labels we respect the
alignment even if it doesn't fit within the label's allocation. But for multi-line labels, we
give preference to showing the first line, to give the user some context.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
2009-05-12 19:12:55 -05:00
Matthias Clasen
ae94c371d1
Add a separate keybinding signal for activating links
...
Keeping the keybinding signal and the regular signal separate is
cleaner and allows us to pass the uri as a parameter to the
activate-link signal.
2009-05-11 02:44:12 -04:00
Matthias Clasen
9dbb30482b
Add link support to GtkLabel
...
This patch is based on SexyUrlLabel, but with significantly enhanced
functionality: keynav, tooltips, context menu, theming.
2009-05-11 01:23:13 -04:00
Matthew Barnes
302cc82c71
Accept a NULL string.
...
2009-02-06 Matthew Barnes <mbarnes@redhat.com>
* gtk/gtklabel.c (gtk_label_set_label): Accept a NULL string.
svn path=/trunk/; revision=22289
2009-02-06 15:49:26 +00:00
Matthias Clasen
52f0975370
Implement select-by-words for selectable labels
...
svn path=/trunk/; revision=22168
2009-01-22 00:33:54 +00:00
Matthias Clasen
3baf9b5e21
Correct some copy-and-paste mistakes in keybinding signal docs. Pointed
...
* gtk/gtkentry.c:
* gtk/gtklabel.c:
* gtk/gtktextview.c: Correct some copy-and-paste mistakes in
keybinding signal docs. Pointed out by Pascal Terjan.
svn path=/trunk/; revision=22140
2009-01-19 05:01:35 +00:00
Matthias Clasen
469acf2844
Doc additions
...
svn path=/trunk/; revision=22001
2008-12-29 21:20:18 +00:00
Tristan Van Berkom
8e56120e5a
gtk_label_set_attributes() now applies attributes on top of any markup or
...
* gtk/gtklabel.c: gtk_label_set_attributes() now applies attributes
on top of any markup or mnemonic attributes (bug 558409).
* README: Updated and added release notes for 2.16
svn path=/trunk/; revision=21764
2008-11-06 16:36:16 +00:00
Michael Natterer
7c0e3091fe
gtk/gtkcellrenderertext.h gtk/gtkentry.[ch] gtk/gtkimcontext.h
...
2008-10-30 Michael Natterer <mitch@gimp.org>
* gtk/gtkcellrenderertext.h
* gtk/gtkentry.[ch]
* gtk/gtkimcontext.h
* gtk/gtklabel.c
* gtk/gtkstyle.h: <pango/pango.h> is pulled in by <gdk/gdk.h>,
remove its inclusion here.
svn path=/trunk/; revision=21735
2008-10-30 18:38:06 +00:00
Sven Neumann
b699ac5853
gtk/gtkaccellabel.c gtk/gtkaction.c gtk/gtkclist.c gtk/gtkcolorbutton.c
...
2008-08-12 Sven Neumann <sven@gimp.org>
* gtk/gtkaccellabel.c
* gtk/gtkaction.c
* gtk/gtkclist.c
* gtk/gtkcolorbutton.c
* gtk/gtkctree.c
* gtk/gtkdialog.c
* gtk/gtkdnd-quartz.c
* gtk/gtkdnd.c
* gtk/gtkentry.c
* gtk/gtkfilechooserdefault.c
* gtk/gtkfilesel.c
* gtk/gtkgamma.c
* gtk/gtkiconview.c
* gtk/gtkkeyhash.c
* gtk/gtklabel.c
* gtk/gtkmenu.c
* gtk/gtkmenubar.c
* gtk/gtkpaned.c
* gtk/gtkrecentchooserdialog.c
* gtk/gtkrecentchooserutils.c
* gtk/gtkselection.c
* gtk/gtksizegroup.c
* gtk/gtktextbtree.c
* gtk/gtktextbuffer.c
* gtk/gtktextview.c
* gtk/gtktoolbar.c
* gtk/gtktreemodel.c
* gtk/gtkuimanager.c
* gtk/gtkwindow-decorate.c
* gtk/gtkwindow.c: use canonical signal names in some more places
that I missed earlier. Also changed this in the documentation and
comments.
svn path=/trunk/; revision=21094
2008-08-12 14:37:03 +00:00
Michael Natterer
e18d3c6fd3
consistently chain up using GTK_FOO_CLASS(parent_class)->bar(instance)
...
2008-08-12 Michael Natterer <mitch@imendio.com>
* gtk/*.c: consistently chain up using
GTK_FOO_CLASS(parent_class)->bar(instance) instead of
(*GTK_FOO_CLASS(parent_class))->bar(instance).
svn path=/trunk/; revision=21085
2008-08-12 09:06:34 +00:00
Sven Neumann
b138ccc8aa
gtk/gtklabel.c gtk/gtklayout.c gtk/gtklist.c use canonical signal names.
...
2008-08-11 Sven Neumann <sven@gimp.org>
* gtk/gtklabel.c
* gtk/gtklayout.c
* gtk/gtklist.c
* gtk/gtklistitem.c: use canonical signal names.
svn path=/trunk/; revision=21064
2008-08-11 11:59:17 +00:00
Matthias Clasen
8af098a54d
Trivial doc fix
...
svn path=/trunk/; revision=20829
2008-07-15 03:00:04 +00:00
Cody Russell
57223c9a05
Revert name change
...
svn path=/trunk/; revision=20724
2008-07-01 22:57:50 +00:00
Cody Russell
fce9c8b7d4
Practically everything changed.
...
2008-06-30 Cody Russell <bratsche@gnome.org>
* Practically everything changed.
Change all references of GIMP Toolkit (and variations of it)
to GTK+ Toolkit, showing no mercy at all to our beloved
ancestry. (#540529 )
svn path=/trunk/; revision=20709
2008-06-30 23:01:56 +00:00
Behdad Esfahbod
e670565932
Bug 530255 – GtkAboutDialog cuts off comments label Followup patch from
...
2008-06-29 Behdad Esfahbod <behdad@gnome.org>
Bug 530255 – GtkAboutDialog cuts off comments label
Followup patch from Jan Arne Petersen
* gtk/gtklabel.c (gtk_label_get_layout_offsets): Ensure layout.
svn path=/trunk/; revision=20703
2008-06-29 17:17:09 +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
cafd4ffab2
Remove an unused variable.
...
2008-06-19 Johan Dahlin <jdahlin@async.com.br>
* gtk/gtklabel.c (gtk_label_set_text_with_mnemonic): Remove
an unused variable.
svn path=/trunk/; revision=20460
2008-06-19 12:15:55 +00:00
Matthias Clasen
49a42ac0f0
2.13.1
...
svn path=/trunk/; revision=20246
2008-05-30 05:08:50 +00:00
Jan Arne Petersen
0fb31a06bb
Bug 56355 – GtkLabel - Not all changes propagate correctly
...
2008-05-29 Jan Arne Petersen <jpetersen@jpetersen.org>
Bug 56355 – GtkLabel - Not all changes propagate correctly
* gtk/gtklabel.c: (gtk_label_recalculate), (gtk_label_set_label),
(gtk_label_set_markup_with_mnemonic), (gtk_label_parse_uline),
(gtk_label_set_text_with_mnemonic), (gtk_label_set_use_underline):
Call gtk_label_setup_mnemonic from gtk_label_recalculate. Add
notifications of mnemonic-keyval changes.
svn path=/trunk/; revision=20237
2008-05-29 18:09:01 +00:00
Jan Arne Petersen
0fea8c56d2
Subtract logical.x from x to fix the wrong position for right and center
...
2008-05-25 Jan Arne Petersen <jpetersen@jpetersen.org>
* gtk/gtklabel.c: (get_layout_location): Subtract logical.x from x to
fix the wrong position for right and center justified labels with
logical.x > 0 (#530255 ).
svn path=/trunk/; revision=20146
2008-05-25 12:29:19 +00:00
Tristan Van Berkom
58f712f7ed
Added <attributes> / <attribute> custom tags to parse pango attributes
...
* gtk/gtklabel.c: Added <attributes> / <attribute>
custom tags to parse pango attributes into labels.
* tests/buildertest.c: Added tests for GtkLabel custom
tag parsing.
svn path=/trunk/; revision=19995
2008-04-11 16:56:26 +00:00
Matthias Clasen
13277493eb
Use gtk_drag_*_add_{text,uri}_targets instead of hardcoded target tables.
...
2008-02-15 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkentry.c:
* gtk/gtkfilesel.c:
* gtk/gtklabel.c:
* gtk/gtkpathbar.c: Use gtk_drag_*_add_{text,uri}_targets
instead of hardcoded target tables. (#516092 , Christian Persch)
svn path=/trunk/; revision=19590
2008-02-16 02:31:33 +00:00
Michael Natterer
ac6c371997
gtk/gtkcellview.c gtk/gtklabel.c gtk/gtklayout.c gtk/gtklist.c
...
2008-02-07 Michael Natterer <mitch@imendio.com>
* gtk/gtkcellview.c
* gtk/gtklabel.c
* gtk/gtklayout.c
* gtk/gtklist.c
* gtk/gtkmenu.c
* gtk/gtkmenushell.c
* gtk/gtkmisc.c
* gtk/gtkoptionmenu.c
* gtk/gtkplug.c
* gtk/gtkpreview.c
* gtk/gtkprogress.c
* gtk/gtkradiomenuitem.c
* gtk/gtkscale.c
* gtk/gtkscrolledwindow.c
* gtk/gtksocket.c: remove g_return_if_fail() from private
functions and virtual function implementations.
svn path=/trunk/; revision=19492
2008-02-07 16:59:42 +00:00