Colin Walters
fcbbd763cd
[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.
2010-04-03 20:51:53 -04:00
Christian Dywan
ae057dcd12
[doc] Fix the documentation of GtkIconEntry
...
Cast to (GFunc) in example code
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=601383
2009-12-08 05:45:50 +01:00
Matthias Clasen
111dd859ba
Fix a doc comment
2009-11-27 00:45:22 -05:00
Nicola Fontana
1e1131c959
Do not use static GTypeInfo and GInterfaceInfo
...
Either g_type_register_static_simple (used by G_DEFINE_TYPE_EXTENDED)
and G_IMPLEMENT_INTERFACE use automatic variables for GTypeInfo and
GInterfaceInfo structs, while tutorials and source code often use
static variables. This commit consistently adopts the former method.
https://bugzilla.gnome.org/show_bug.cgi?id=600158
2009-11-06 01:21:09 +01:00
Matthew Barnes
13d968adbe
Bug 581150 - GtkIconView tries to paint items with invalid sizes
...
Run gtk_icon_view_layout() if necessary before attempting to paint the
icon view items during an expose event. This ensures all the items have
valid sizes, as some themes don't take kindly to negative dimensions.
2009-10-23 19:32:25 -04:00
Matthias Clasen
894e11e447
Always initialize out params
...
This was causing a crash in the appearance capplet, reported in
bug 596345.
2009-09-28 12:41:29 -04:00
Mart Raudsepp
275001badc
Pack the struct better, should save four bytes per GtkIconView
2009-09-22 11:25:28 +03:00
Matthias Clasen
9ec4fb60f2
Don't return uninitialized pointers
...
This was giving me segfaults somewhere else.
2009-08-13 09:47:20 -04:00
Matthias Clasen
f96d9132d6
Fix make check
2009-08-11 14:18:13 -04:00
Matthias Clasen
549ffcbf5c
Add a GtkIconView::item-padding property
...
The property can be used to fine-tune who much space each column
needs. See bug 586100.
2009-08-06 23:56:30 -04:00
Matthias Clasen
b2c8cb55c2
Fix DND onto an empty icon view
...
This did not work due to a copy and paste bug from the time when
the treeview DND code was turned into iconview DND code. Fixes
bug 599484.
2009-07-17 13:30:37 -04:00
Cody Russell
6060dab77a
fix wrap width calculations that caused item height to be wrong
...
Fix by logari81 to the wrap width calculations fir GtkIconView. #490724
2009-07-01 13:17:51 -05:00
Benjamin Otte
1a385c50f0
fix compile warnings
...
Fallout from running make CFLAGS="-Werror"; mostly missing casts and
constness issues.
2009-06-17 10:28:03 +02:00
Matthias Clasen
e6373738fc
Forward-port a GtkAdjustment compatibility fix
...
We reverted GtkAdjustment to its traditional behaviour wrt. to
clamping in 2.14.3, but the fix was lost between 2.14 and 2.16.
2009-05-03 13:04:06 -04:00
Claudio Saavedra
a982cea9ce
Deselect all other selected items when clicking a selected one
...
When clicking on an GtkIconView item inside a selection, deselect
all other selected items. (#506862 )
2009-04-18 18:47:07 +03:00
Matthias Clasen
b475130e4f
Copy the right string. Pointed out by Tommi Rantala
...
* gtk/gtkiconview.c
(gtk_icon_view_item_accessible_image_set_image_description): Copy
the right string. Pointed out by Tommi Rantala
svn path=/trunk/; revision=22417
2009-02-28 00:15:01 +00:00
Claudio Saavedra
2fa86adfe3
More docstrings improvements regarding reorderable property.
...
2009-01-25 Claudio Saavedra <csaavedra@igalia.com>
* gtk/gtkiconview.c: More docstrings improvements
regarding reorderable property.
svn path=/trunk/; revision=22212
2009-01-24 22:42:05 +00:00
Claudio Saavedra
42f7d03907
Bug 559420 – gtk_icon_view_enable_model_drag_[source|dest] docs wrt.
...
2009-01-24 Claudio Saavedra <csaavedra@igalia.com>
Bug 559420 – gtk_icon_view_enable_model_drag_[source|dest] docs
wrt. reorderable property
* gtk/gtkiconview.c: Improve docstrings regarding reorderable
property. Based on a patch by Björn Lindqvist.
svn path=/trunk/; revision=22211
2009-01-24 22:22:35 +00:00
Matthias Clasen
c871fcb073
Fix markup
...
svn path=/trunk/; revision=22003
2008-12-30 00:52:04 +00:00
Li Yuan
405101d856
Bug #549251 . No need to set name if there is no a11y item object.
...
2008-12-23 Li Yuan <li.yuan@sun.com>
* gtk/gtkiconview.c: (gtk_icon_view_accessible_model_row_changed):
Bug #549251 . No need to set name if there is no a11y item object.
svn path=/trunk/; revision=21926
2008-12-22 09:04:19 +00:00
Yair Hershkovitz
7404704431
Bug 565203: RTL locales: icons are misplaced when horizontal gtkiconview
...
2008-12-21 Yair Hershkovitz <yairhr@gmail.com>
Bug 565203: RTL locales: icons are misplaced when horizontal
gtkiconview is contained in a gtkscrolledwindow.
* gtk/gtkiconview.c (gtk_icon_view_layout_single_row):
Fix horizontal icon positions when in RTL locale.
svn path=/trunk/; revision=21918
2008-12-21 08:10:53 +00:00
Matthias Clasen
797f030cf6
Handle separate append/set for rows. Patch by Li Yuan
...
* gtk/gtkiconview.c (gtk_icon_view_accessible_model_row_changed):
Handle separate append/set for rows. Patch by Li Yuan
svn path=/trunk/; revision=21884
2008-12-13 07:59:58 +00:00
Matthias Clasen
82cdd4b903
Use the new order correctly. Patch by Li Yuan
...
* gtk/gtkiconview.c (gtk_icon_view_accessible_model_rows_reordered):
Use the new order correctly. Patch by Li Yuan
svn path=/trunk/; revision=21878
2008-12-13 05:28:21 +00:00
Sven Herzberg
2b31f26827
Document the "set-scroll-adjustments" signal
...
2008-12-11 Sven Herzberg <sven@imendio.com>
Document the "set-scroll-adjustments" signal
Reviewed by Kristian Rietveld.
* gtk/gtkiconview.c,
* gtk/gtklayout.c,
* gtk/gtktextview.c,
* gtk/gtktreeview.c,
* gtk/gtkviewport.c: added proper documentation for the signal
svn path=/trunk/; revision=21871
2008-12-11 13:09:27 +00:00
Christian Persch
3fe203774b
Bug 558001 – gtk_icon_view_enable_model_drag_[source|dest] problem
...
svn path=/trunk/; revision=21753
2008-11-03 18:40:56 +00:00
Murray Cumming
093d425393
gtk_icon_view_set_tooltip_row(), gtk_icon_view_set_tooltip_item():
...
2008-10-20 Murray Cumming <murrayc@murrayc.com>
* gtk/gtkiconview.c: gtk_icon_view_set_tooltip_row(),
gtk_icon_view_set_tooltip_item():
* gtk/gtktreeview.c: gtk_icon_view_set_tooltip_row(),
gtk_icon_view_set_tooltip_cell():
Documentation: Mention the simple set_tooltip_column()
alternative.
svn path=/trunk/; revision=21689
2008-10-20 12:11:05 +00:00
Denis Washington
f3b6806eda
only draw keyboard focus when keyboard navigation is used, like
...
2008-09-27 Denis Washington <denisw@svn.gnome.org>
* gtk/gtkiconview.c: only draw keyboard focus when keyboard navigation
is used, like GtkTreeView. (Bug #553575 )
svn path=/trunk/; revision=21534
2008-09-27 12:53:05 +00:00
Denis Washington
bbc726431d
draw focus as a rectangle around the complete item, not just the text.
...
2008-09-24 Denis Washington <denisw@svn.gnome.org>
* gtk/gtkiconview.c: draw focus as a rectangle around the
complete item, not just the text. (Bug #38254 )
svn path=/trunk/; revision=21506
2008-09-24 08:04:15 +00:00
Matthias Clasen
26521c87e5
Bug 550528 - IconView DND interface does not work if only used as source
...
2008-09-03 Matthias Clasen <mclasen@redhat.com>
Bug 550528 - IconView DND interface does not work if only used as
source
* gtk/gtkiconview.c: Make source-only DND work.
Found by Alex Simon
svn path=/trunk/; revision=21270
2008-09-04 00:12: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
d9d3379698
gtk/gtkaccellabel.c gtk/gtkcalendar.c gtk/gtkclist.c gtk/gtkentry.c
...
2008-08-12 Michael Natterer <mitch@imendio.com>
* gtk/gtkaccellabel.c
* gtk/gtkcalendar.c
* gtk/gtkclist.c
* gtk/gtkentry.c
* gtk/gtkeventbox.c
* gtk/gtkfilechooserbutton.c
* gtk/gtkfilechooserdefault.c
* gtk/gtkhandlebox.c
* gtk/gtkhsv.c
* gtk/gtkiconview.c
* gtk/gtkimage.c
* gtk/gtklayout.c
* gtk/gtklistitem.c
* gtk/gtkmenuitem.c
* gtk/gtkmessagedialog.c
* gtk/gtknotebook.c
* gtk/gtkpaned.c
* gtk/gtkpathbar.c
* gtk/gtkplug.c
* gtk/gtkprintunixdialog.c
* gtk/gtkrange.c
* gtk/gtkrecentchooserdefault.c
* gtk/gtkruler.c
* gtk/gtksocket.c
* gtk/gtktext.c
* gtk/gtktextview.c
* gtk/gtktoolbar.c
* gtk/gtktreeitem.c
* gtk/gtktreeview.c
* gtk/gtkviewport.c
* gtk/gtkwin32embedwidget.c: chain up unconditionally in
realize(), unrealize(), map(), unmap(), style_set(),
key_press_event() and size_request()
svn path=/trunk/; revision=21088
2008-08-12 09:44:32 +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
0ab00ebc67
gtk/gtkentry.c gtk/gtkentrycompletion.c gtk/gtkhandlebox.c
...
2008-08-11 Sven Neumann <sven@gimp.org>
* gtk/gtkentry.c
* gtk/gtkentrycompletion.c
* gtk/gtkhandlebox.c
* gtk/gtkiconview.c
* gtk/gtkimcontext.c
* gtk/gtkinputdialog.c
* gtk/gtktreeview.c: use canonical signal names.
svn path=/trunk/; revision=21067
2008-08-11 12:54:57 +00:00
Sven Neumann
867a82c36e
gtk/gtkadjustment.c gtk/gtkclist.c gtk/gtkcolorsel.c gtk/gtkiconview.c
...
2008-08-08 Sven Neumann <sven@gimp.org>
* gtk/gtkadjustment.c
* gtk/gtkclist.c
* gtk/gtkcolorsel.c
* gtk/gtkiconview.c
* gtk/gtklayout.c
* gtk/gtkprogress.c
* gtk/gtkrange.c
* gtk/gtkspinbutton.c
* gtk/gtktext.c
* gtk/gtktextview.c
* gtk/gtktreeview.c
* gtk/gtkviewport.c: use the canonical signal name
"value-changed"
instead of "value_changed".
svn path=/trunk/; revision=21041
2008-08-08 13:25:18 +00:00
Michael Natterer
3d75f27801
gtk/gtkcombobox.c gtk/gtkiconview.c gtk/gtkrange.c gtk/gtkscrolledwindow.c
...
2008-08-06 Michael Natterer <mitch@imendio.com>
* gtk/gtkcombobox.c
* gtk/gtkiconview.c
* gtk/gtkrange.c
* gtk/gtkscrolledwindow.c
* gtk/gtktreeview.c: remove CLAMPing from values passed to
gtk_adjustment_set_value() since it does it right now.
svn path=/trunk/; revision=21021
2008-08-06 11:32:33 +00:00
Matthias Clasen
418a348bef
fix a segfault in the a11y code
...
svn path=/trunk/; revision=20813
2008-07-10 16:37:53 +00:00
Matthias Clasen
908aba628a
Doc updates
...
svn path=/trunk/; revision=20772
2008-07-04 22:03:37 +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
Michael Natterer
fee3aa919d
gtk/gtkcellview.c gtk/gtkcolorbutton.c gtk/gtkentrycompletion.c
...
2008-03-04 Michael Natterer <mitch@imendio.com>
* gtk/gtkcellview.c
* gtk/gtkcolorbutton.c
* gtk/gtkentrycompletion.c
* gtk/gtkfontbutton.c
* gtk/gtkiconview.c
* gtk/gtkobject.c
* gtk/gtkpaned.c
* gtk/gtkpreview.c: don't include "gtksignal.h".
* gtk/gtkfilefilter.c
* gtk/gtkrecentchoosermenu.c
* gtk/gtkrecentfilter.c
* gtk/gtktext.c: don't include "gtkobject.h".
svn path=/trunk/; revision=19708
2008-03-04 12:49:40 +00:00
Johan Dahlin
90cba8ffdb
Remove left-over focus_pad variable. ( #490892 , Claudio Saavedra)
...
2008-03-02 Johan Dahlin <johan@gnome.org>
* gtk/gtkiconview.c (gtk_icon_view_paint_item):
Remove left-over focus_pad variable.
(#490892 , Claudio Saavedra)
svn path=/trunk/; revision=19693
2008-03-03 01:13:07 +00:00
Matthias Clasen
0c2788943f
Fix state change reporting for accessibility. ( #499835 , Rich Burridge,
...
2008-02-12 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkiconview.c: Fix state change reporting for
accessibility. (#499835 , Rich Burridge, patch by LiYan Zhang)
svn path=/trunk/; revision=19538
2008-02-12 16:43:04 +00:00
Matthias Clasen
0509519d35
Unify the handling of various "Enter" keysyms all over the place.
...
2008-02-12 Matthias Clasen <mclasen@redhat.com>
* gtk/*.c: Unify the handling of various "Enter" keysyms
all over the place. (#515047 , Christian Persch)
svn path=/trunk/; revision=19528
2008-02-12 15:51:09 +00:00
Kristian Rietveld
defa802d23
gtk/gtkcellview.c (gtk_cell_view_cell_layout_reorder) plug leak wrt. link
...
2008-02-11 Kristian Rietveld <kris@imendio.com>
* gtk/gtkcellview.c (gtk_cell_view_cell_layout_reorder)
* gtk/gtkiconview.c (gtk_icon_view_cell_layout_reorder): plug leak
wrt. link deletion from list; contination of fix for #503569 .
svn path=/trunk/; revision=19513
2008-02-11 15:06:57 +00:00
Michael Natterer
d95069aa1f
gtk/gtkaction.c gtk/gtkassistant.c gtk/gtkbin.c gtk/gtkbox.c
...
2008-02-07 Michael Natterer <mitch@imendio.com>
* gtk/gtkaction.c
* gtk/gtkassistant.c
* gtk/gtkbin.c
* gtk/gtkbox.c
* gtk/gtkcalendar.c
* gtk/gtkcellrenderercombo.c
* gtk/gtkcombobox.c
* gtk/gtkcombo.c
* gtk/gtkdrawingarea.c
* gtk/gtkentrycompletion.c
* gtk/gtkfixed.h
* gtk/gtkgamma.c
* gtk/gtkhpaned.c
* gtk/gtkiconview.c
* gtk/gtkitem.c
* gtk/gtkitemfactory.c: remove g_return_if_fail() from private
functions and virtual function implementations.
svn path=/trunk/; revision=19491
2008-02-07 15:50:39 +00:00
Matthias Clasen
4896e24bb1
Require gtk-doc 1.8
...
2007-11-25 Matthias Clasen <mclasen@redhat.com>
* configure.in: Require gtk-doc 1.8
* */*.c: Use gtk-doc abbreviations for examples in docs.
svn path=/trunk/; revision=19041
2007-11-25 06:51:19 +00:00
Matthias Clasen
14afc3345a
Add a bounding box test that will avoid getting the individual cell boxes
...
2007-09-09 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkiconview.c (gtk_icon_view_item_hit_test): Add a
bounding box test that will avoid getting the individual cell
boxes if they haven't been calculated yet. (#404541 )
svn path=/trunk/; revision=18775
2007-09-10 00:43:58 +00:00
Matthias Clasen
dfe7852586
Fix some doc formatting errors
...
svn path=/trunk/; revision=18530
2007-07-23 18:33:35 +00:00
Matthias Clasen
cb1cfa8b1e
Remove debug spew
...
svn path=/trunk/; revision=18507
2007-07-20 02:36:12 +00:00
Matthias Clasen
7b2e82f5d0
Add new convenience api for tooltips on icon views
...
svn path=/trunk/; revision=18501
2007-07-19 14:59:44 +00:00
Matthias Clasen
bdf50bd4f6
Convenience functions to position tooltips on icon view items or cells.
...
2007-07-16 Matthias Clasen <mclasen@redhat.com>
* gtk/gtk.symbols:
* gtk/gtkiconview.h:
* gtk/gtkiconview.c (gtk_icon_view_set_tooltip_item):
(gtk_icon_view_set_tooltip_cell): Convenience functions to
position tooltips on icon view items or cells.
svn path=/trunk/; revision=18473
2007-07-16 14:04:35 +00:00