summaryrefslogtreecommitdiff
path: root/gtk/gtkarrow.c
Commit message (Collapse)AuthorAgeFilesLines
* Move GtkSizeRequest into GtkWidgetBenjamin Otte2010-09-261-23/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | 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".
* API: Rename gtk_cairo_paint_*() to gtk_paint_*()Benjamin Otte2010-09-261-1/+1
| | | | | | Large patch, but just renaming. Indentation should still mostly be correct because I took care of keeping the indentation for this function name.
* arrow: Port to draw vfuncBenjamin Otte2010-09-261-65/+58
|
* gtk/gtkarrow.c: use accessor functions to access GtkWidgetJavier Jardón2010-09-081-9/+13
|
* Completely removed requisition cache from GtkWidget instance structure.Tristan Van Berkom2010-09-081-6/+51
| | | | | | | | | | | | | | Since we have a new mechanism for requesting sizes: GtkSizeRequestIface; it makes no sense to maintain this cache on the GtkWidget structure... removing the requisition cache however does not break the old "size-request" signal which is there for backwards compatability reasons. In any case widget->requisition should not have been accessed, gtk_widget_get_child_requisition() would have been the correct way to consult the cache. This commit also deprecates the newly added gtk_widget_get_requisition() API and makes it fallback on gtk_size_request_get_size().
* Use GtkFooPrivate instead GtkFooPrivJavier Jardón2010-08-271-9/+9
|
* Use accessor functions to access GtkMiscJavier Jardón2010-07-131-13/+17
|
* gtkarrow: Move public members to private structureJavier Jardón2010-07-131-18/+42
|
* gtk/: fully remove gtkalias hacksJavier Jardón2010-07-101-4/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=623845
* [docs] Move documentation to inline comments: GtkArrowJavier Jardón2010-04-181-0/+37
| | | | | | Fixes https://bugzilla.gnome.org/show_bug.cgi?id=611957 Signed-off-by: Javier Jardón <jjardon@gnome.org>
* Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_NO_WINDOW)Javier Jardón2010-03-061-1/+1
| | | | | | Use new API instead: gtk_widget_set_has_window () https://bugzilla.gnome.org/show_bug.cgi?id=69872
* Deprecate widget flag: GTK_WIDGET_DRAWABLEJavier Jardón2010-03-011-3/+6
| | | | | | Use gtk_widget_is_drawable() instead. https://bugzilla.gnome.org/show_bug.cgi?id=69872
* expose-event returns gboolean not gint, reindented static prototypes andMichael Natterer2008-09-031-30/+28
| | | | | | | | | | 2008-09-03 Michael Natterer <mitch@imendio.com> * gtk/gtkarrow.c: expose-event returns gboolean not gint, reindented static prototypes and did some minor cleanups. svn path=/trunk/; revision=21265
* Revert name changeCody Russell2008-07-011-1/+1
| | | | svn path=/trunk/; revision=20724
* Practically everything changed.Cody Russell2008-06-301-1/+1
| | | | | | | | | | | | | 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
* Include "config.h" instead of <config.h> Command used: find -nameJohan Dahlin2008-06-221-1/+1
| | | | | | | | | | | | 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
* gtk/gtkalignment.c gtk/gtkarrow.c gtk/gtkbbox.c gtk/gtkcalendar.c removeMichael Natterer2008-05-211-4/+1
| | | | | | | | | | | | | 2008-05-21 Michael Natterer <mitch@imendio.com> * gtk/gtkalignment.c * gtk/gtkarrow.c * gtk/gtkbbox.c * gtk/gtkcalendar.c * gtk/gtkscrolledwindow.c: remove PROP_LAST enum values. svn path=/trunk/; revision=20121
* Fix a typo in the docs. (#390423, David Lodge)Matthias Clasen2006-12-281-1/+1
| | | | | | | 2006-12-28 Matthias Clasen <mclasen@redhat.com> * gtk/gtkarrow.c: Fix a typo in the docs. (#390423, David Lodge)
* added GtkArrow::arrow-scaling style property to control the arrow/borderTim Janik2006-09-191-6/+12
| | | | | | | | | | | Tue Sep 19 17:00:04 2006 Tim Janik <timj@imendio.com> * gtk/gtkarrow.c: added GtkArrow::arrow-scaling style property to control the arrow/border ratio within the allocation. * tests/testgtk.c: added a GtkArrow to handle box test. * tests/testgtkrc: test ::arrow-scaling property.
* More of the sameMatthias Clasen2006-05-141-1/+1
|
* Boilerplate reductionMatthias Clasen2006-05-021-26/+1
|
* Intern some more strings.Matthias Clasen2005-09-011-1/+1
| | | | | | | | | 2005-09-01 Matthias Clasen <mclasen@redhat.com> * gdk/*.c: Intern some more strings. * gtk/gtkintl.h: * gtk/*.c: Define an I_() macro and use it instead of the bulky g_intern_static_string().
* Intern type names in code generated by glib-mkenums, too.Matthias Clasen2005-08-311-1/+1
| | | | | | | | | | | | | 2005-08-31 Matthias Clasen <mclasen@redhat.com> * gdk/Makefile.am: * gtk/Makefile.am: Intern type names in code generated by glib-mkenums, too. * gtk/*.c: * gdk/x11/*.c: * gdk/*.c: Intern type names before registering the type to avoid unnecessary copies.
* Modify all of the GtkMisc widgets to round down on centering calculationsMatthias Clasen2005-06-211-4/+2
| | | | | | | | | | | 2005-06-21 Matthias Clasen <mclasen@redhat.com> * gtk/gtkarrow.c: * gtk/gtkimage.c: * gtk/gtklabel.c: * gtk/gtkpixmap.c: Modify all of the GtkMisc widgets to round down on centering calculations to match the behaviour of other parts of GTK+. (#307419, Ryan Lortie)
* Use canonical names for g_object_notify() as well.Matthias Clasen2005-03-261-2/+2
| | | | | | | | 2005-03-26 Matthias Clasen <mclasen@redhat.com> * gtk/*.c: * gdk/gdkdisplaymanager.c: Use canonical names for g_object_notify() as well.
* Define macros GTK_PARAM_READABLE, GTK_PARAM_WRITABLE, GTK_PARAM_READWRITEMatthias Clasen2005-03-221-4/+3
| | | | | | | | | | | | 2005-03-21 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprivate.h: Define macros GTK_PARAM_READABLE, GTK_PARAM_WRITABLE, GTK_PARAM_READWRITE which are like their G_ counterparts, but also mark the name, nick and blurb as static. * gtk/*.c: Mark param spec strings as static, using the new macros.
* : Mark param spec strings as static.Matthias Clasen2005-03-211-2/+4
|
* Make PLT-reduction work with gcc4, and don't include everything inMatthias Clasen2005-03-201-1/+4
| | | | | | | | | | | | | | | | | | 2005-03-20 Matthias Clasen <mclasen@redhat.com> Make PLT-reduction work with gcc4, and don't include everything in gdkalias.h: * gtk/grk.symbols: Group symbols by header and source file. * gtk/makegtkalias.pl: Protect definitions by the same preprocessor symbols used to guard the headers. Move the alias declarations to a separate file which is produced when calling makegtkalias.pl -def * gdk/Makefile.am (gtkaliasdef.c): Add a rule to generate this file. * gtk/*.c: Include gtkalias.h after the other headers, include gtkaliasdef.c at the bottom. * gtk/*.h: Small cleanups.
* xMatthias Clasen2005-03-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-03-08 Matthias Clasen <mclasen@redhat.com> * gtk/gtktextbuffer.c (gtk_text_buffer_class_init): * gtk/gtkrange.c (gtk_range_class_init): * gtk/gtkscrolledwindow.c (gtk_scrolled_window_class_init): * gtk/gtktexttag.c (gtk_text_tag_class_init): * gtk/gtktextview.c (gtk_text_view_class_init): * gtk/gtkscrollbar.c (gtk_scrollbar_class_init): * gtk/gtknotebook.c (gtk_notebook_class_init): * gtk/gtkentry.c (gtk_entry_class_init): * gtk/gtkexpander.c (gtk_expander_class_init): * gtk/gtkarrow.c (gtk_arrow_class_init): * gtk/gtkalignment.c (gtk_alignment_class_init): * gtk/gtkbutton.c (gtk_button_class_init): * gtk/gtklabel.c (gtk_label_class_init): * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init): x * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): * gtk/gtktreeview.c (gtk_tree_view_class_init): * gtk/gtkbox.c (gtk_box_class_init): * gtk/gtkwindow.c (gtk_window_class_init, gtk_window_class_init): * gtk/gtkcontainer.c (gtk_container_class_init): * gtk/gtkwidget.c (gtk_widget_class_init): * gtk/gtkobject.c (gtk_object_class_init): Use canonical names when registering param specs.
* Add hidden aliases for exported symbols which are used internally in orderMatthias Clasen2004-08-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mon Aug 9 12:48:04 2004 Matthias Clasen <maclas@gmx.de> Add hidden aliases for exported symbols which are used internally in order to get rid of many PLT entries. (#145519, Arjan van de Ven) * gtk/Makefile.am: Add rules to generate gtk.def and from gtk.symbols, and make make check check the abi with abicheck.sh. (gtk_private_h_sources): Add gtkinternals.h (gtk_built_private_headers): Add gtkalias.h (gtk_extra_sources): Add gtk.symbols (EXTRA_DIST): Add makegtkalias.pl and abicheck.sh * gtk/gtk.symbols: New file. Definition of the GTK+ ABI. The file can be processed by cpp to filter out certain subsets of symbols. * gtk/abicheck.sh: New file. Script to check the actually symbols exported from libgtk-x11.2.0.so against the symbols found in gtk.symbols. * gtk/makegtkalias.pl: New file. Perl script to generate the header containing the alias definitions for internally used exported symbols from a list of symbols. * gtk/gtkinternals.h: New file. An uninstalled header listing symbols which must be exported for some reason and do not appear in any other header. * gtk/*.c: Include gtkalias.h
* Actually make that arrow size 15, not 14.Matthias Clasen2004-05-181-1/+1
|
* Go back to the initial fix for the focus-overdrawing problem, which wasMatthias Clasen2004-05-181-1/+1
| | | | | | | | | | | 2004-05-18 Matthias Clasen <mclasen@redhat.com> * gtk/gtkbutton.c: Go back to the initial fix for the focus-overdrawing problem, which was actually correct according to docs/widget_geometry.txt. * gtk/gtkarrow.c (gtk_arrow_class_init): Bump the initial arrow size from 11 to 15 to compensate for that.
* Swap GTK_ARROW_LEFT and GTK_ARROW_RIGHT for GTK_TEXT_DIR_LTR. (#129159,Owen Taylor2004-03-121-2/+10
| | | | | | | | | | | | Fri Mar 12 17:20:15 2004 Owen Taylor <otaylor@redhat.com> * gtk/gtkarrow.c (gtk_arrow_expose): Swap GTK_ARROW_LEFT and GTK_ARROW_RIGHT for GTK_TEXT_DIR_LTR. (#129159, Semion Chichelnitsky) * gtk/gtkpathbar.c gtk/gtktoolbar.c: Remove no-longer-needed gtk_toolbar_direction-changed handlers and explicit flipping of GtkArrow widgets.
* Fixes #136082 and #135265, patch by Morten Welinder.Federico Mena Quintero2004-03-061-0/+1
| | | | | | | | | | 2004-03-05 Federico Mena Quintero <federico@ximian.com> Fixes #136082 and #135265, patch by Morten Welinder. * configure.in: Use AC_SYS_LARGEFILE. * */*.c: #include <config.h>
* The first part of the fix for #114351 (see also gdk-pixbuf/ChangeLog andMatthias Clasen2004-01-161-4/+4
| | | | | | | | | | | | | | | | | | | | Fri Jan 16 23:59:01 2004 Matthias Clasen <maclas@gmx.de> The first part of the fix for #114351 (see also gdk-pixbuf/ChangeLog and po/ChangeLog): * gtk/gtkintl.h: * gdk-pixbuf/gdk-pixbuf-i18n.h: * gdk/gdkintl.h: Define P_() for property blurbs and nicks. * gdk/gdkdisplaymanager.c: * gdk-pixbuf/gdk-pixbuf.c: * modules/input/gtkimcontextxim.c: * gtk/*.c: Mark property blurbs and nicks with P_(). * po/Makefile.in.in: Add --keyword=P_ to the xgettext invocation, since property blurbs and nicks are now marked with P_().
* Deprecation cleanupManish Singh2002-10-101-15/+15
| | | | | | | | Thu Oct 10 14:58:47 2002 Manish Singh <yosh@gimp.org> * gtk/gtkaccelgroup.c gtk/gtkarrow.[ch] gtk/gtkeventbox.[ch] gtk/gtkiconfactory.c gtk/gtkinvisible.[ch] gtk/gtktextchild.c: Deprecation cleanup
* Draw arrows better (without extra baseline)Soeren Sandmann2002-02-261-2/+2
| | | | | | | | Wed Feb 27 00:45:39 2002 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtkarrow.c, gtk/gtkmenuitem.c, gtk/gtkrange.c gtk/gtkspinbutton.c gtk/gtkstyle.c: Draw arrows better (without extra baseline)
* Remove excess calls to g_return_if_fail from static and virtual functions.Matthias Clasen2002-01-301-4/+0
|
* Make interpretation of misc->xpad/ypad consistent with GtkLabel. DoOwen Taylor2001-12-271-5/+14
| | | | | | | | | | Thu Dec 27 16:05:30 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkarrow.c gtk/gtkimage.c gtkpixmap.c: Make interpretation of misc->xpad/ypad consistent with GtkLabel. Do directional flipping when interpreting misc->xalign/yalign. Fix off-by-one error for negative x,y. (#67472, reported by Mathieu Lacage)
* Return FALSE from expose handlers.Alex Larsson2001-12-031-1/+1
| | | | | | | | | | | | | | | 2001-12-03 Alex Larsson <alexl@redhat.com> * gtk/gtkaccellabel.c: * gtk/gtkarrow.c: * gtk/gtkcolorsel.c: * gtk/gtkcontainer.c: * gtk/gtklabel.c: * gtk/gtktextview.c: * gtk/gtktogglebutton.c: * gtk/gtktreeview.c: * gtk/gtkwindow.c: Return FALSE from expose handlers.
* coalescing property notifiesHans Breuer2001-08-111-15/+16
| | | | | | | | | | | | | | | | | | 2001-08-11 Hans Breuer <hans@breuer.org> * gtk/gtkalignment.c, gtk/gtkarrow.c, gtk/gtkaspectframe.c, gtk/gtkcellrenderer.c, gtk/gtkcellrenderertext.c, gtk/gtkcombo.c, gtk/gtkcurve.c, gtk/gtkfontsel.c, gtk/gtklayout.c, gtk/gtkmisc.c, gtk/gtkpacker.c, gtk/gtkprogress.c, gtk/gtkruler.c,, gtk/gtksettings.c, gtk/gtkspinbutton.c, gtk/gtktexttag.c : coalescing property notifies * gtk/gtkclist.c, gtk/gtktipsquery.c, gtk/gtktexttag.c, gtk/gtkwidget.c : added G_SIGNAL_TYPE_STATIC_SCOPE to all GDK_TYPE_EVENT signals * gtk/gtkalignment.c : removed 'direct allocation bug', which Tim discovered while reading the patch
* Patch from Matthias Clasen to remove remove all instances ofOwen Taylor2001-07-181-1/+0
| | | | | | | | | Wed Jul 18 19:28:46 2001 Owen Taylor <otaylor@redhat.com> * gtk/*.c: Patch from Matthias Clasen to remove remove all instances of g_return_if_fail (foo != NULL); that are immediately before a g_return_if_fail (GTK_IS_FOO (foo)); since the second check catches the NULL anyways.
* Applied patch from Nils Barth (bug # 51041) to replace "gint" withHavoc Pennington2001-03-161-1/+1
| | | | | | | | 2001-03-16 Havoc Pennington <hp@redhat.com> * Applied patch from Nils Barth (bug # 51041) to replace "gint" with "gboolean" and 0/1 with TRUE/FALSE in various places.
* marshaller fixes.Tim Janik2001-03-071-16/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Wed Mar 7 13:24:57 2001 Tim Janik <timj@gtk.org> * gtk/*.c: marshaller fixes. * gtk/gtkmarshal.list: extreme cleanup. * gtk/gtktreeview.c (gtk_tree_view_class_init): disable interface param spec for now. * gtk/gtktexttag.c (gtk_text_tag_set_property): use g_value_get_boxed() where appliable. * gtk/gtktypeutils.[hc]: updates to GLib API changes. special cased autogenerated boxed types from gtktypebuiltins_ids.c which are not reference counted: GtkSelectionData, GdkEvent, GdkColor, GtkTextIter, PangoTabArray, PangoFontDescription, GtkTreeIter and GtkTreePath. Thu Mar 1 03:58:56 2001 Tim Janik <timj@gtk.org> * gtk/gtktreeselection.h: * gtk/gtktreemodel.c: * gtk/gtktreedatalist.[hc]: fixed includes. no gobject/* file should be included directly, and gobject/gmarshal.h as well as gtk/gtkmarshal.h even can't be included directly. * Makefile.am: grr, install gtk-config-2.0. * gtk/testgtk.c: * gtk/simple.c: * gtk/gtkmenu.c: * gtk/gtkitemfactory.c: use g_object_connect() instead of passing "*signal*::*" args to gtk_widget_set(). * gtk/gtktypeutils.[hc]: got rid of GTK_TYPE_SIGNAL. * gtk/*.c: removed trailer arg from property setters and getters. macro fixups. Thu Mar 1 04:01:57 2001 Tim Janik <timj@gtk.org> * test-gdk-pixbuf.c: fixed includes.
* Convert to new property API, patch from Lee MallaboneHavoc Pennington2001-02-211-39/+77
| | | | | | | | | | 2001-02-20 Havoc Pennington <hp@redhat.com> * gtk/gtkaspectframe.c: Convert to new property API, patch from Lee Mallabone * gtk/gtkarrow.c: Convert to new property API, patch from Lee Mallabone
* applied patch from Andreas Persenius <ndap@swipnet.se> that updates theTim Janik2000-07-261-4/+4
| | | | | | | | Wed Jul 26 12:59:31 2000 Tim Janik <timj@gtk.org> * *.[hc]: applied patch from Andreas Persenius <ndap@swipnet.se> that updates the license headers to the GNU Lesser General Public License, as well as updating the copyright year to 2000.
* Added notice to look in AUTHORS and ChangeLog files for a list of changes.CST 1999 Shawn T. Amundson1999-02-241-0/+8
| | | | | | | Wed Feb 24 01:22:39 CST 1999 Shawn T. Amundson <amundson@gtk.org> * *.[ch]: Added notice to look in AUTHORS and ChangeLog files for a list of changes.
* I submitted this patch twice to gtk-devel-list, and received no comments,Elliot Lee1998-11-301-1/+1
| | | | | | | | | | | | | | | | | I submitted this patch twice to gtk-devel-list, and received no comments, so am committing it. Although not exhaustively tested, I have been using this gtk+ for a week w/o problems, and I did read the code to ensure that nothing ever writes to these data structures. If by chance people encounter SEGV's in gtk+ code that is setting values in global data structures, this patch could be a possible culprit. 1998-11-30 Elliot Lee <sopwith@cuc.ml.org> * {gdk,gtk}/*.c: Make read-only data structures "static const" to allow them to be shared, mainly including (but not limited to) the GtkTypeInfo structures for each class. * gtk/gtkfilesel.c: Add /net to the "leave me alone" directory listing.
* Merge from themes-2. See the ChangeLog for a somewhat detailedOwen Taylor1998-11-061-11/+6
| | | | | history of the evolution of the changes involved. Most of this is actually minor painting tweaks.
* use misc->xpad for x calculation instead of ypad (typo). (gtk_arrow_set):Tim Janik1998-07-171-10/+10
| | | | | | | | | | | | | | | | | Fri Jul 17 01:21:32 1998 Tim Janik <timj@gtk.org> * gtk/gtkarrow.c (gtk_arrow_expose): use misc->xpad for x calculation instead of ypad (typo). (gtk_arrow_set): clear all of the arrow's allocation (left a 1 pixel border around the allocation). (gtk_arrow_init): the static requisition needs to be setup in this function rather than gtk_widget_new(), so arrow creation works without the gtk_arrow_new() constructing. (gtk_arrow_expose): return TRUE, since we actually handled the expose. * gtk/gtkwidget.c (gtk_widget_real_size_request): provide a default implementation for GtkWidget::size_request, so size requisition for simple statically sized widgets like GtkArrow works.