summaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Convert to UTF-8Matthias Clasen2010-05-211-1/+1
|
* Move documentation to inline comments: GdkWindowTadej Borovšak2010-05-141-0/+136
| | | | | | | | Use examples/gdk to store documentation code examples. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=618498 Signed-off-by: Javier Jardón <jjardon@gnome.org>
* Remove links to code that no longer exists to fix make distRichard Hughes2010-05-077-528/+0
|
* Remove a missing include in one of the tests that broke the build from a ↵Richard Hughes2010-05-071-1/+0
| | | | fresh checkout
* Merge branch 'gtk-2-90'Matthias Clasen2010-05-067-404/+5
|\ | | | | | | | | Conflicts: gtk/gtkentry.h
| * Remove GtkTree completelyJavier Jardón2010-05-032-200/+0
| |
| * Remove GtkText completelyJavier Jardón2010-05-032-197/+0
| |
| * Remove all deprecated stuff from GtkContainerJavier Jardón2010-05-031-2/+2
| |
| * Remove remaining GtkWindow deprecated documentationJavier Jardón2010-05-032-2/+1
| | | | | | | | This completes commit 89e3ec8c3d766c333f6e67764ebd7633d61e21cd
| * Remove remaining GtkButtonBox deprecated stuffJavier Jardón2010-05-031-1/+0
| | | | | | | | This completes commit b1b986cc604bffd924a13fbcb180dd234a0b8d14
| * Remove deprecated code: GtkLabelJavier Jardón2010-05-032-8/+8
| |
* | Update the Makefile for scribble-xinputTor Lillqvist2010-05-031-3/+2
|/ | | | | Don't use GTK_DISABLE_DEPRECATED as scribble-xinput does use deprecated API. Also, make the CC command line more canonical.
* Don't use GTK_WIDGET_STATE in internal code anymoreJavier Jardón2010-03-092-4/+4
| | | | | | Use gtk_widget_get/set_state() instead https://bugzilla.gnome.org/show_bug.cgi?id=69872
* Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_REALIZED)Javier Jardón2010-03-061-1/+1
| | | | | | Use new API instead: gtk_widget_set_realized () https://bugzilla.gnome.org/show_bug.cgi?id=69872
* Deprecate widget flag: GTK_WIDGET_REALIZEDJavier Jardón2010-03-031-1/+1
| | | | | | Use gtk_widget_get_realized() instead https://bugzilla.gnome.org/show_bug.cgi?id=69872
* Deprecate widget flag: GTK_WIDGET_MAPPEDJavier Jardón2010-03-031-1/+1
| | | | | | Use gtk_widget_get_mapped() instead. https://bugzilla.gnome.org/show_bug.cgi?id=69872
* Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_CAN_DEFAULT)Javier Jardón2010-03-027-7/+7
| | | | Use new API instead: gtk_widget_set_can_default ()
* Deprecate widget flag: GTK_WIDGET_VISIBLEJavier Jardón2010-03-011-1/+1
| | | | | | Use gtk_widget_get_visible() instead https://bugzilla.gnome.org/show_bug.cgi?id=69872
* Do not use static GTypeInfo and GInterfaceInfoNicola Fontana2009-11-062-2/+2
| | | | | | | | | 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
* fix build for gtkdial exampleTomasz Mon2009-04-281-4/+6
| | | | | Replace use of deprecated GTK_SIGNAL_FUNC with G_CALLBACK, and add depth to blankstyle. Fixes Bug #578634.
* examples/gtkdial/gtkdial.c gdk/gdkapplaunchcontext.c gdk/gdkpango.cMichael Natterer2008-08-121-2/+1
| | | | | | | | | | | | | | | | | | | | | 2008-08-12 Michael Natterer <mitch@imendio.com> * examples/gtkdial/gtkdial.c * gdk/gdkapplaunchcontext.c * gdk/gdkpango.c * gtk/gtkcellrendererpixbuf.c * gtk/gtkcellrenderertext.c * gtk/gtkcellview.c * gtk/gtkcombobox.c * gtk/gtkfontsel.c * gtk/gtkinvisible.c * gtk/gtkliststore.c * gtk/gtktexttag.c * gtk/gtktexttagtable.c: remove dereferencing from some function pointers i missed before. svn path=/trunk/; revision=21089
* updated the (quite outdated) examples to use canonical signal names asSven Neumann2008-08-1123-396/+400
| | | | | | | | | | | 2008-08-11 Sven Neumann <sven@gimp.org> * examples/*: updated the (quite outdated) examples to use canonical signal names as well. Removed some unneeded casts and trailing whitespace while I was on it... svn path=/trunk/; revision=21071
* Revert name changeCody Russell2008-07-016-6/+6
| | | | svn path=/trunk/; revision=20724
* Practically everything changed.Cody Russell2008-06-306-6/+6
| | | | | | | | | | | | | 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-226-6/+6
| | | | | | | | | | | | 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
* undeprecate.Michael Natterer2008-06-172-4/+4
| | | | | | | | | 2008-06-17 Michael Natterer <mitch@imendio.com> * examples/gtkdial/gtkdial.[ch]: undeprecate. svn path=/trunk/; revision=20439
* s/GtkType/GType/Michael Natterer2008-06-171-1/+1
| | | | | | | | | | | | 2008-06-17 Michael Natterer <mitch@imendio.com> * gtk/gtkbindings.c (gtk_binding_entry_add_signal): * gtk/gtktoolbutton.c (gtk_tool_button_get_type): * examples/gtkdial/gtkdial.h (gtk_dial_get_type): s/GtkType/GType/ svn path=/trunk/; revision=20436
* examples/gtkdial/gtkdial.h use G_BEGIN/END_DECLS.Michael Natterer2008-05-261-7/+5
| | | | | | | | | | 2008-05-26 Michael Natterer <mitch@imendio.com> * examples/gtkdial/gtkdial.h * modules/input/gtkimcontextthai.h: use G_BEGIN/END_DECLS. svn path=/trunk/; revision=20179
* Changed 'void int main()' to 'int main()'. (#522211, Liqing Huang)Cody Russell2008-03-141-1/+0
| | | | | | | | | | 2008-03-14 Cody Russell <bratsche@gnome.org> * examples/scribble-xinput/scribble-xinput.c: Changed 'void int main()' to 'int main()'. (#522211, Liqing Huang) svn path=/trunk/; revision=19872
* Remove all .cvsignore files.Michael Natterer2007-12-1338-43/+0
| | | | svn path=/trunk/; revision=19169
* Replace a lot of idle and timeout calls by the new gdk_threads api.Matthias Clasen2006-12-222-3/+3
| | | | | | | 2006-12-22 Matthias Clasen <mclasen@redhat.com> * *.c: Replace a lot of idle and timeout calls by the new gdk_threads api.
* Re-extract.Matthias Clasen2005-01-0336-280/+246
| | | | | | | | 2005-01-03 Matthias Clasen <mclasen@redhat.com> * examples/*: Re-extract. * docs/tutorial/gtk-tut.sgml: Small corrections.
* Fixes #136082 and #135265, patch by Morten Welinder.Federico Mena Quintero2004-03-0642-0/+42
| | | | | | | | | | 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>
* Remove deprecated functions in examples. (#129074, Olexiy Avramchenko)Matthias Clasen2003-12-127-26/+17
| | | | | | | | | | | | | | | Fri Dec 12 01:13:34 2003 Matthias Clasen <maclas@gmx.de> * examples/gtkdial/gtkdial.c: * examples/menu/menu.c: * examples/scribble-xinput/scribble-xinput.c: * examples/progressbar/progressbar.c: * docs/tutorial/gtk-tut.sgml: Remove deprecated functions in examples. (#129074, Olexiy Avramchenko) * examples/calendar/Makefile: * examples/rangewidgets/Makefile: * examples/menu/Makefile: Allow deprecated functions in examples which use deprecated widgets.
* Added 4-sided padding as properties with gtk_alignment_get_padding() andMurray Cumming2003-05-301-1/+1
| | | | | | | | | 2003-05-30 Murray Cumming <murrayc@usa.net> * gtk/gtkalignment.[h|c]: Added 4-sided padding as properties with gtk_alignment_get_padding() and gtk_aligment_set_padding(). This uses the new private data system - see g_type_class_add_private() in gtk_alignment_class_init() and the use of GTK_ALIGNMENT_GET_PRIVATE().
* Don't include strings.h, it's not needed anymore. (#112388)Matthias Clasen2003-05-061-1/+0
| | | | | | | | | | | 2003-05-06 Matthias Clasen <maclas@gmx.de> * tests/testmultidisplay.c: Don't include strings.h, it's not needed anymore. (#112388) * examples/menu/itemfactory.c: * docs/tutorial/gtk-tut.sgml: Remove an unneeded include from the itemfactory example.
* *** RETRY - last commit aborted half way throughGMT 2003 Tony Gale2003-01-235-52/+47
| | | | | | | | | | | | | | | Thu Jan 23 20:56:56 GMT 2003 Tony Gale <gale@gtk.org> * Sebastian Rittau <srittau@jroger.in-berlin.de>: docs/tutorial/gtk-tut.sgml: Adopted chapter 21.3 "Creating a Composite widget" to modern standards. (I.e. use gobject instead of glib, derive from GtkTable instead of GtkVBox.) Bugzilla #103869. * docs/tutorial/gtk-tut.sgml, examples/tictactoe: Fixup tic-tac-toe code in Appendix C to reflect above changes. * examples/rangewidgets/rangewidgets.c: From Roger Leigh auto resize on page size change
* docs/tutorial/gtk-tut.sgml: Adopted chapter 21.3 "Creating a CompositeGMT 2003 Tony Gale2003-01-232-13/+13
| | | | | | | | | | | | | | | Thu Jan 23 20:56:56 GMT 2003 Tony Gale <gale@gtk.org> * Sebastian Rittau <srittau@jroger.in-berlin.de>: docs/tutorial/gtk-tut.sgml: Adopted chapter 21.3 "Creating a Composite widget" to modern standards. (I.e. use gobject instead of glib, derive from GtkTable instead of GtkVBox.) Bugzilla #103869. * docs/tutorial/gtk-tut.sgml, examples/tictactoe: Fixup tic-tac-toe code in Appendix C to reflect above changes. * examples/rangewidgets/rangewidgets.c: From Roger Leigh auto resize on page size change
* Add a <StockItem> to the itemfactory example. (#103211)Matthias Clasen2003-01-141-1/+1
| | | | | | | | 2003-01-15 Matthias Clasen <maclas@gmx.de> * examples/menu/itemfactory.c: * docs/tutorial/gtk-tut.sgml: Add a <StockItem> to the itemfactory example. (#103211)
* use G_PI instead of M_PI.Sven Neumann2002-12-201-11/+11
| | | | | | 2002-12-20 Sven Neumann <sven@gimp.org> * examples/gtkdial/gtkdial.c: use G_PI instead of M_PI.
* minor fixesGMT 2002 Tony Gale2002-12-072-8/+6
| | | | | | | | Sat Dec 7 14:45:50 GMT 2002 Tony Gale <gale@gtk.org> * docs/tutorial/gtk-tut.sgml: minor fixes * examples/pixmap: don't use deprecated function
* Numerous fixes to the calendar example. (#97956, Owen Taylor)Matthias Clasen2002-11-211-110/+102
| | | | | | * docs/tutorial/gtk-tut.sgml: * examples/calendar/calendar.c: Numerous fixes to the calendar example. (#97956, Owen Taylor)
* initialize anchor_path to NULL.Manish Singh2002-11-201-1/+1
| | | | | | | | | Tue Nov 19 17:01:40 2002 Manish Singh <yosh@gimp.org> * gtk/gtktreeselection.c (gtk_tree_selection_real_modify_range): initialize anchor_path to NULL. * examples/buttonbox/buttonbox.c: remove useless static qualifier.
* minor cleanups, remove refs to gtk_menu_appendGMT 2002 Tony Gale2002-10-271-1/+1
| | | | | | | | | Sun Oct 27 11:41:37 GMT 2002 Tony Gale <gale@gtk.org> * docs/tutorial/gtk-tut.sgml: minor cleanups, remove refs to gtk_menu_append *docs/faq/gtk-faq.sgml: remove ref to gtk_menu_append
* Lots of trivial doc fixes.Matthias Clasen2002-10-111-2/+5
|
* Add the one missing example from the tutorial, colorsel, to source control.Matthias Clasen2002-09-163-0/+144
|
* cleanupsBST 2002 Tony Gale2002-08-261-65/+127
| | | | | | | | | Mon Aug 26 12:21:16 BST 2002 Tony Gale <gale@gtk.org> * docs/tutorial/package-db-tutorial.sh: cleanups * docs/tutorial/gtk-tut.sgml: new content for the ItemFactory section. Originally from Robert Cleaver Ancell.
* update packaging script for current tutorialBST 2002 Tony Gale2002-08-257-23/+29
| | | | | | | | | | Sun Aug 25 11:58:27 BST 2002 Tony Gale <gale@gtk.org> * docs/tutorial/package-db-tutorial.sh: update packaging script for current tutorial * docs/tutorial/images/*.eps: New Files EPS versions of the tutorial images
* update g_connect_signal usageBST 2002 Tony Gale2002-08-2414-44/+43
| | | | | | | | | Sat Aug 24 12:46:37 BST 2002 Tony Gale <gale@gtk.org> * docs/tutorial/gtk-tut.sgml, examples/*: update g_connect_signal usage * docs/faq/gtk-faq.html: spelling/grammar fixes
* minor menu example comment fix (feeling my way back in after a longTony Gale2002-08-151-1/+1
| | | | | | * docs/tutorial/gtk-tut.sgml, examples/menu/menu.c: minor menu example comment fix (feeling my way back in after a long absence)