summaryrefslogtreecommitdiff
path: root/demos
Commit message (Collapse)AuthorAgeFilesLines
* demos: Replace size_request by get_preferred_width/heightJavier Jardón2010-11-172-6/+64
|
* Rewrap text in gtk-demoMatthias Clasen2010-11-091-169/+238
|
* Update msvc buildHans Breuer2010-11-071-4/+5
|
* gtk: remove "gboolean homogeneous" from gtk_box_new()Michael Natterer2010-10-3133-62/+65
| | | | Because it's FALSE in virtually all use cases.
* Use gtk_box_new() instead gtk_[v|h]box_new()Javier Jardón2010-10-3034-62/+62
|
* Use gtk_scale_new() instead gtk_[v|h]scale_new()Javier Jardón2010-10-302-2/+2
|
* Use gtk_scale_new_with_range() instead gtk_[v|h]scale_new_with_range()Javier Jardón2010-10-301-1/+2
|
* Use gtk_paned_new() instead gtk_[v|h]paned_new()Javier Jardón2010-10-302-3/+3
|
* Use gtk_separator_new() instead gtk_[v|h]separator_new()Javier Jardón2010-10-302-2/+3
|
* Use gtk_button_box_new() instead gtk_[v|h]_button_box_new()Javier Jardón2010-10-301-2/+2
|
* Use new GtkComboBoxEntry in all testsChristian Dywan2010-10-181-13/+6
|
* Use cairo_surface_destroy instead of g_object_unrefKristian Rietveld2010-10-171-1/+1
|
* Use the new GtkComboBoxText APIJavier Jardón2010-10-153-11/+11
| | | | | Also remove mentions of the old text convenience API from the docs, and point to GtkComboBoxText instead.
* Deprecate GtkComboBoxEntry in favor of added properties to GtkComboBoxTristan Van Berkom2010-10-131-1/+8
| | | | | | | | | | | | | GtkComboBox now sports a construct-only "has-entry" property which decides if it uses a GtkEntry to allow additional user input. Also it has a new "entry-text-column" to fetch strings for the entry from the model. This patch deprecates the GtkComboBoxEntry and updates the rest of GTK+ to use the new semantics on GtkComboBox instead. GtkComboBoxEntry will be removed altogether before GTK+ 3, in a later commit.
* Remove uses of gtk_statusbar_set_has_resize_grip()Cody Russell2010-10-081-23/+0
| | | | This function is going away.
* gdk: Make gdk_pixbuf_get_from_*() bindableBenjamin Otte2010-10-022-6/+6
| | | | | | | | | | The ownership of the return value for gdk_pixbuf_get_from_window() and gdk_pixbuf_get_from_surface() was determined by the first argument. Because that is an ugly design and the functions are new to GTK3, we decided to adapt them. And that adaptation was quite easy since almost no one passses anything but NULL as the first argument.
* gtk-demo: remove GtkObject typeJavier Jardón2010-09-291-1/+0
|
* Remove unneded castsJavier Jardón2010-09-291-1/+1
| | | | | | As gtk_adjustment_new() returns a GtkAdjustment* now https://bugzilla.gnome.org/show_bug.cgi?id=630731
* gtk-demo: Clean up toolpalette drawing codeBenjamin Otte2010-09-271-6/+1
| | | | | Fix compile warning and use cairo_paint() instead of querying the widget size and cairo_fill()ing it.
* Fixing demos/ directory to build for removal of GtkObject type.Tristan Van Berkom2010-09-274-4/+4
|
* gtk-demo: Use draw signal in toolpalette demoJavier Jardón2010-09-271-14/+8
|
* Move GtkSizeRequest into GtkWidgetBenjamin Otte2010-09-263-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | 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".
* gtk-demo: Get rid of gdk_drawable_get_size() usageBenjamin Otte2010-09-262-11/+12
|
* API: Rename gtk_cairo_paint_*() to gtk_paint_*()Benjamin Otte2010-09-262-2/+2
| | | | | | Large patch, but just renaming. Indentation should still mostly be correct because I took care of keeping the indentation for this function name.
* gtk-demo: Port offscreen example to draw vfuncBenjamin Otte2010-09-261-60/+45
|
* gtk-demo: Port offscreen example to draw vfuncBenjamin Otte2010-09-261-52/+46
|
* testpixbuf-save: Use the draw signalBenjamin Otte2010-09-261-10/+5
|
* testpixbuf-scale: Connect to draw signalBenjamin Otte2010-09-261-17/+14
|
* pixbuf-demo: Use draw signalBenjamin Otte2010-09-261-11/+5
|
* gtk-demo: Use draw signal in color selection demoBenjamin Otte2010-09-261-21/+9
|
* gtk-demo: Connect to draw signal in rotated-textBenjamin Otte2010-09-261-16/+8
|
* gtk-demo: Connect to draw signal in pixbufs exampleBenjamin Otte2010-09-261-13/+6
|
* gtk-demo: Connet to draw signal in drawingarea exampleBenjamin Otte2010-09-261-35/+19
|
* API: gdk_pixbuf_get_from_drawable() => gdk_pixbuf_get_from_window()Benjamin Otte2010-09-262-6/+6
| | | | | The Colormap argument needed to be removed, so the renaming is just a side effect.
* gtk-demo: Remove colormaps from window attributesBenjamin Otte2010-09-262-4/+2
|
* demos: No need to set the background, it gets overridden anywayBenjamin Otte2010-09-261-3/+0
|
* API: Change offscreen windows to use a cairo_surface_tBenjamin Otte2010-09-262-9/+9
| | | | | This requires changes to all the offscreen surface getters that used to return a GdkPixmap before.
* Remove url hooks from GtkAboutDialog and GtkLinkButtonMatthias Clasen2010-09-221-21/+0
| | | | | | | | With gtk_show_uri, global configurability of link activation has moved to GIO/gvfs. For local overrides, GtkLinkButton has the ::clicked signal, and GtkAboutDialog gets an ::activate-link signal. Bug 339745
* Change GtkEditable typedef from GtkEditableClass to GtkEditabeInterfaceJavier Jardón2010-09-172-3/+3
| | | | Fixes https://bugzilla.gnome.org/show_bug.cgi?id=323904
* demos: Use gtk_size_request_get_size() instead gtk_widget_size_request()Javier Jardón2010-09-151-1/+2
|
* Use gtk_size_request_get_size() instead deprecated gtk_widget_size_request()Javier Jardón2010-09-152-2/+4
| | | | | | | 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>
* demos: Do not use deprecated gtk_widget_get_child_requisition()Javier Jardón2010-09-132-2/+4
| | | | Use gtk_size_request_get_size() instead
* Don't use the same name for a function that used to be a variableTor Lillqvist2010-09-091-3/+3
| | | | | | | | Rename the gtk_major_version() etc functions I introduced yesterday to start with gtk_get. Avoids misleading results in client programs whose developers that don't notice the change or the compiler warnings, and when recompiling against gtk3 then use the function addresses as the version numbers.
* GDK: Prefix key names with KEY_Colin Walters2010-09-081-2/+2
| | | | | | | | | | | | | 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.
* Turn the gtk version and age variables into functionsTor Lillqvist2010-09-081-1/+5
| | | | | | Having variables exported from a DLL is slightly painful and potentially error-prone on Windows, so let's try get rid of them now when we can. Starting with these.
* demos: Do not use deprecated APIJavier Jardón2010-09-081-8/+8
|
* gtk-demo: Drop use of GTK_DIALOG_NO_SEPARATORColin Walters2010-09-021-1/+1
| | | | Commit d433a606111d89727530f71d7b956b dropped this API.
* Rename GtkIconView::orientation propertyMatthias Clasen2010-09-011-2/+2
| | | | | | Rename the ::orientation property of GtkIconView to item-orientation, which is both clearer and avoids the conflict with the orientation property of GtkOrientable implementations.
* demos/testpixbuf-scale.c: Use accessor functions to access GtkWidgetJavier Jardón2010-08-221-4/+7
|
* demos/gtk-demo/toolpalette.c: Use accessor functions to access GtkWidgetJavier Jardón2010-08-221-7/+16
|