Commit Graph

335 Commits

Author SHA1 Message Date
Javier Jardón
217036975a Use gtk_scale_new() instead gtk_[v|h]scale_new() 2010-10-30 02:26:24 +02:00
Javier Jardón
8177ad320e Use gtk_scale_new_with_range() instead gtk_[v|h]scale_new_with_range() 2010-10-30 02:26:23 +02:00
Javier Jardón
b3a7d401a1 Use gtk_paned_new() instead gtk_[v|h]paned_new() 2010-10-30 02:26:23 +02:00
Javier Jardón
8d008790be Use gtk_separator_new() instead gtk_[v|h]separator_new() 2010-10-30 02:26:23 +02:00
Javier Jardón
e31304fb7b Use gtk_button_box_new() instead gtk_[v|h]_button_box_new() 2010-10-30 02:26:23 +02:00
Christian Dywan
6db62c6617 Use new GtkComboBoxEntry in all tests 2010-10-18 09:13:44 +02:00
Kristian Rietveld
47969615b2 Use cairo_surface_destroy instead of g_object_unref 2010-10-17 10:30:46 +02:00
Javier Jardón
e7f51ef6a4 Use the new GtkComboBoxText API
Also remove mentions of the old text convenience API from the docs,
and point to GtkComboBoxText instead.
2010-10-15 16:58:27 -04:00
Tristan Van Berkom
9612c64817 Deprecate GtkComboBoxEntry in favor of added properties to GtkComboBox
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.
2010-10-13 21:52:27 -04:00
Cody Russell
fe9a45c413 Remove uses of gtk_statusbar_set_has_resize_grip()
This function is going away.
2010-10-08 02:14:19 -04:00
Javier Jardón
72d48cbc61 gtk-demo: remove GtkObject type 2010-09-29 06:11:13 +02:00
Benjamin Otte
1b170a1a14 gtk-demo: Clean up toolpalette drawing code
Fix compile warning and use cairo_paint() instead of querying the widget
size and cairo_fill()ing it.
2010-09-27 20:49:06 +02:00
Tristan Van Berkom
427226b083 Fixing demos/ directory to build for removal of GtkObject type. 2010-09-27 15:10:50 +09:00
Javier Jardón
e16f9bc51c gtk-demo: Use draw signal in toolpalette demo 2010-09-27 00:07:20 +02:00
Benjamin Otte
d9c9259861 Move GtkSizeRequest into GtkWidget
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".
2010-09-26 15:11:45 +02:00
Benjamin Otte
f5ad38fdc4 gtk-demo: Get rid of gdk_drawable_get_size() usage 2010-09-26 15:11:43 +02:00
Benjamin Otte
1d3f6b30b0 API: Rename gtk_cairo_paint_*() to gtk_paint_*()
Large patch, but just renaming.
Indentation should still mostly be correct because I took care of
keeping the indentation for this function name.
2010-09-26 15:11:42 +02:00
Benjamin Otte
8aa402b610 gtk-demo: Port offscreen example to draw vfunc 2010-09-26 15:11:42 +02:00
Benjamin Otte
256012bdbd gtk-demo: Port offscreen example to draw vfunc 2010-09-26 15:11:42 +02:00
Benjamin Otte
f1171c9c07 gtk-demo: Use draw signal in color selection demo 2010-09-26 15:11:41 +02:00
Benjamin Otte
73b6ddbf47 gtk-demo: Connect to draw signal in rotated-text 2010-09-26 15:11:40 +02:00
Benjamin Otte
9ef1dfc0a3 gtk-demo: Connect to draw signal in pixbufs example 2010-09-26 15:11:40 +02:00
Benjamin Otte
ef56ba83f8 gtk-demo: Connet to draw signal in drawingarea example 2010-09-26 15:11:40 +02:00
Benjamin Otte
0a63e954af gtk-demo: Remove colormaps from window attributes 2010-09-26 15:11:32 +02:00
Benjamin Otte
332652f702 API: Change offscreen windows to use a cairo_surface_t
This requires changes to all the offscreen surface getters that used to
return a GdkPixmap before.
2010-09-26 15:11:29 +02:00
Matthias Clasen
b0713fb3bb Remove url hooks from GtkAboutDialog and GtkLinkButton
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
2010-09-22 00:36:13 -04:00
Javier Jardón
efbf04236e Change GtkEditable typedef from GtkEditableClass to GtkEditabeInterface
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=323904
2010-09-17 19:57:09 +02:00
Javier Jardón
b140884fec Use gtk_size_request_get_size() instead deprecated gtk_widget_size_request()
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>
2010-09-15 03:02:58 +02:00
Javier Jardón
450beef2a2 demos: Do not use deprecated gtk_widget_get_child_requisition()
Use gtk_size_request_get_size() instead
2010-09-13 22:37:11 +02:00
Tor Lillqvist
dd36afc207 Don't use the same name for a function that used to be a variable
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.
2010-09-09 11:06:26 +03:00
Colin Walters
913cdf3be7 GDK: Prefix key names with KEY_
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.
2010-09-08 18:51:44 -04:00
Tor Lillqvist
cb24bcc613 Turn the gtk version and age variables into functions
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.
2010-09-08 21:31:33 +03:00
Colin Walters
00ce32d940 gtk-demo: Drop use of GTK_DIALOG_NO_SEPARATOR
Commit d433a60611 dropped this API.
2010-09-02 16:48:45 -04:00
Matthias Clasen
e4af3782d3 Rename GtkIconView::orientation property
Rename the ::orientation property of GtkIconView to item-orientation,
which is both clearer and avoids the conflict with the orientation
property of GtkOrientable implementations.
2010-09-01 23:03:48 -04:00
Javier Jardón
6b3a2fede6 demos/gtk-demo/toolpalette.c: Use accessor functions to access GtkWidget 2010-08-22 18:28:48 +02:00
Javier Jardón
3d942908d3 demos/gtk-demo/rotated_text.c: Use accessor functions to access GtkWidget 2010-08-22 18:28:42 +02:00
Javier Jardón
3204cf726c demos/gtk-demo/panes.c: Use accessor functions to access GtkWidget 2010-08-22 18:28:33 +02:00
Javier Jardón
5bf0ed62d7 demos/gtk-demo/offscreen_window2.c: Use accessor functions to access GtkWidget 2010-08-22 18:28:25 +02:00
Javier Jardón
4011b70928 demos/gtk-demo/offscreen_window.c: Use accessor functions to access GtkWidget 2010-08-22 18:28:19 +02:00
Javier Jardón
8c4783da05 demos/gtk-demo/hypertext.c: Use accessor functions to access GtkWidget 2010-08-22 18:28:12 +02:00
Javier Jardón
e80db673b1 demos/gtk-demo/drawingarea.c: Use accessor functions to access GtkWidget 2010-08-22 18:28:06 +02:00
Javier Jardón
6a28e7b164 demos/gtk-demo/colorsel.c: Use accessor functions to access GtkWidget 2010-08-22 18:28:01 +02:00
Javier Jardón
876c0b2937 demos/gtk-demo/changedisplay.c: Use accessor functions to access GtkWidget 2010-08-22 18:27:51 +02:00
Javier Jardón
9016f0d9a6 Use standard icon names in demos and tests 2010-08-21 03:08:15 +02:00
Christian Persch
ffa07ee21e Use G_DEFINE_BOXED_TYPE
Bug #627214.
2010-08-18 15:34:47 +02:00
Benjamin Otte
cc09ec0732 gtk-demo: update drawingarea example
Use gdk_window_create_similar_surface() instead of gdk_pixmap_new()
2010-08-12 23:43:24 +02:00
Benjamin Otte
4729460a4f gtk-demo: Adapt textview example for stipple removal 2010-08-10 21:02:28 +02:00
Emmanuele Bassi
73030c462f about: Add :license-type property
The :license-type property of GtkAboutDialog allows using a symbolic
enumeration value that will construct a placeholder license preamble
linking to a specific URL. This allows localization of the licensing
text without using a translation of the actual license, since it would
not be valid.
Bug 336225.
2010-08-10 00:00:15 -04:00
Benjamin Otte
188884a9b1 gtk-demo: Blit backing pixmap using Cairo 2010-07-26 16:42:48 +02:00
Benjamin Otte
831afa2159 gtk-demo: Convert color selection example to Cairo 2010-07-26 16:42:48 +02:00