Javier Jardón
f8ca9a86b2
demos/gtk-demo/infobar.c: Do not use gtk_dialog_run()
2012-02-27 17:06:11 +00:00
Javier Jardón
8408819d61
demos/gtk-demo/colorsel.c: Do not use gtk_dialog_run()
2012-02-27 17:06:11 +00:00
Benjamin Otte
bf89bc624b
widget-factory: Don't crash when showing about dialog
2012-02-15 15:14:31 +01:00
Cosimo Cecchi
92322a63f5
gtk-demo: use the new GtkColorChooserDialog in the color demo
2012-02-14 16:37:02 -05:00
Ryan Lortie
6d430ad713
widget factory: link against gdkpixbuf
...
Otherwise we fail to link, seeing this:
/usr/bin/ld: gtk3_widget_factory-widget-factory.o: undefined reference
to symbol 'gdk_pixbuf_new_from_resource'
2012-02-09 17:54:22 -05:00
Matthias Clasen
c525fe27f3
Set BUILT_SOURCES
2012-02-09 09:10:50 -05:00
Matthias Clasen
56f8cf91e0
widget-factory: add the logo
2012-02-09 09:06:32 -05:00
Matthias Clasen
71efe31f16
Move widget-factory to demos/
...
Lets install this, for the benefit of artists everywhere.
2012-02-09 08:45:40 -05:00
Matthias Clasen
41e98b14d3
gtk-demo: Use preprocessing for resources
...
Strip blanks from ui files, and convert pngs into pixdata.
This is useful and serves as a test of these preprocessing
options at the same time.
2012-02-09 08:08:23 -05:00
Matthias Clasen
72ede43928
gtk-demo: Use gdk-pixbuf resource api
...
This is nicer than manual stream manipulation.
2012-02-09 08:08:23 -05:00
Matthias Clasen
585a6652d5
Use G_SOURCE_CONTINUE/REMOVE
...
Now that GLib provides these macros, we should use them
to make the code more readable.
2012-01-30 19:12:27 -05:00
Carlos Garcia Campos
f7c6c97710
gtk-demo: Use symbolic names for button numbers
2012-01-27 09:47:44 +01:00
Ryan Lortie
eed307713b
GtkBuilder: change format of menus
...
Change the format of GtkBuilder <menu> to be more in-line with the style
of the rest of GtkBuilder so that we can do translation in a consistent
way.
The format is now substantially more difficult to hand-write, but tools
should be along soon.
There is an xslt program attached to the bug to help you convert your
existing .ui files from the old format to the new one.
https://bugzilla.gnome.org/show_bug.cgi?id=668696
2012-01-25 19:42:19 -05:00
Matthias Clasen
d818bdc297
gtk3-demo-application: add an example for the new api
...
Turn the menutoolbutton menu into one that is gmenu/gaction backed.
2012-01-24 22:27:28 -05:00
Matthias Clasen
3104e5d2c1
Add an example for settings<>action integration
...
Turn the 'color' action in gtk3-demo-application into an
action that is backed by a setting.
2012-01-24 00:07:03 -05:00
Ryan Lortie
a55ef45515
gtk3-demo-application: fix sections
...
<section> doesn't need to be given in a menubar but it does need to be
given for submenus, so add those ones back.
2012-01-16 17:19:26 -05:00
Matthias Clasen
2a6a354aa8
gtk-demo: Improve the GtkApplication demo
...
Following suggestions in bug 667968
2012-01-16 17:07:12 -05:00
Alexander Larsson
84883ccf7c
Fix build
...
Was getting this error:
main.c:785:13: error: ‘gtk_demos’ undeclared (first use in this function)
main.c:785:13: note: each undeclared identifier is reported only once for each function it appears in
main.c: In function ‘main’:
2012-01-16 13:58:23 +01:00
Matthias Clasen
261abe55c4
Forgotten file
2012-01-15 14:46:31 -05:00
Matthias Clasen
45d9b912d9
Add a GtkApplication example to gtk3-demo
2012-01-14 20:35:18 -05:00
Benjamin Otte
5783d3b68c
gtk-demo: Prove that links work fine now
...
Also, doodling is fun.
2012-01-06 05:23:42 +01:00
Benjamin Otte
f8426cd706
gtk-demo: Fix warnings in changedisplay
...
Use the brute force fix. I'm not really interested in fixing this
properly.
2011-12-16 04:53:17 +01:00
Florian Müllner
3b0a9c59cc
demo: Add test for hide-titlebar-when-maximized
...
Add an additional option to the appwindow demo to test the new
gtk-hide-titlebar-when-maximized setting.
https://bugzilla.gnome.org/show_bug.cgi?id=665616
2011-12-15 16:31:57 +01:00
Alexander Larsson
288b1539d1
Fix demo to use a "normal" transparent value now that it works.
...
The last commit fixed this, so lets have a sane value in the demo code.
2011-12-06 14:12:24 +01:00
Alexander Larsson
4962167864
gtk-demo: Add test of transparent GdkWindows
...
This shows a semi-transparent shadow from a GtkOverlay window
2011-12-06 00:23:58 +01:00
Benjamin Otte
6a6af8464b
gtk-demo: Fix segfault in editable cells demo
...
The strings can be freed when edting the description column. This does
not work with constant strings.
2011-11-22 23:29:04 +01:00
Benjamin Otte
d1d2d71159
demos: Remove non-working code
...
It causes warnings, so it has to go.
The cursor doesn't change anyway, no matter if it's there or not.
2011-11-09 03:46:23 +01:00
Benjamin Otte
c9c9099f83
gtk-demo: Remove excessive pointer querying
2011-11-09 03:23:43 +01:00
Benjamin Otte
9788bfac89
gtk-demo: Don't use deprecated code
2011-11-02 02:32:54 +01:00
Javier Jardón
0853ce3077
Use G_VALUE_INIT
...
Instead of an explicit { 0, } when declaring the variable.
2011-10-15 16:45:16 +01:00
Benjamin Otte
f74421f524
gtk-demo: Don't use tearoff menus
...
Demoing bad things, sheesh.
2011-10-01 05:59:04 +02:00
Matthias Clasen
1204a850f3
Formatting cleanups
...
While we normally try to avoid whitespace fixes, the gtk-demo
code is shown as exemplary, so it should be in good shape,
formatting-wise.
2011-09-01 23:56:58 -04:00
Matthias Clasen
c5cd4174c3
gtk-demo: Drop uses of GtkAlignment
2011-09-01 23:56:57 -04:00
Matthias Clasen
a6899f2a9d
gtk-demo: replace uses of GtkTable by GtkGrid
2011-08-31 13:31:34 -04:00
Matthias Clasen
ce58d8887f
gtk-demo: trivial improvement
...
Set activates-default in the assistant demo where it makes sense.
2011-08-31 13:31:34 -04:00
Matthias Clasen
76c6f49805
Silence the build a bit more
2011-08-28 20:38:28 -04:00
Diego Celix
bd69e6a6cd
demo-ui_manager: gtk_misc_set_alignment replacing
...
Replacing the function gtk_misc_set_alignment () with
gtk_widget_set_halign () and gtk_widget_set_valign () in
demos/gtk-demo/ui_manager.c
https://bugzilla.gnome.org/show_bug.cgi?id=650762
2011-08-28 20:17:02 -04:00
Diego Celix
464fa4715f
demo-sizegroup: gtk_misc_set_alignment replacing
...
Replacing the function gtk_misc_set_alignment () with
gtk_widget_set_halign () and gtk_widget_set_valign () in
demos/gtk-demo/sizegroup.c
https://bugzilla.gnome.org/show_bug.cgi?id=650762
2011-08-28 20:17:00 -04:00
Diego Celix
9b31aff56c
demo-pickers: gtk_misc_set_alignment replacing
...
Replacing the function gtk_misc_set_alignment () with
gtk_widget_set_halign () and gtk_widget_set_valign () in
demos/gtk-demo/pickers.c
https://bugzilla.gnome.org/show_bug.cgi?id=650762
2011-08-28 20:16:59 -04:00
Diego Celix
a3719d3033
demo-changedisplay:gtk_misc_set_alignment replace
...
Replacing the function gtk_misc_set_alignment () with
gtk_widget_set_halign () and gtk_widget_set_valign () in
demos/gtk-demo/changedisplay.c
https://bugzilla.gnome.org/show_bug.cgi?id=650762
2011-08-28 20:16:57 -04:00
Kalev Lember
d86c1486ba
gtk-demo: Fix the path to demo sources for the win32 build
2011-08-14 15:18:38 +03:00
Javier Jardón
32e00d1f43
Use AM_CPPFLAGS instead the obsolete INCLUDES
2011-07-06 15:58:32 +01:00
Benjamin Otte
44245caae5
demos: Remove unused variable
2011-06-13 18:27:24 +02:00
Ignacio Casal Quinteiro
cfb2a45f9a
overlay: add initial version of gtkoverlay
2011-06-12 23:27:18 -04:00
Javier Jardón
4a9bd917a0
gtk-demo/colorsel.c: Do not use GtkAlignment
2011-06-13 00:04:39 +01:00
Javier Jardón
32ef28bc85
Replace gtk_misc_set_padding() with GtkWidget:margin properties
...
https://bugzilla.gnome.org/show_bug.cgi?id=651605
2011-06-02 18:49:54 +02:00
Matthias Clasen
cfffa32d4b
gtk-demo: Add an app chooser button demo
...
Add a 'Mail' app chooser to the 'Pickers' example.
2011-06-01 21:44:22 -04:00
Cosimo Cecchi
5b4932adaa
gtk-demo: don't use a non-existent icon name
2011-05-31 17:54:24 -04:00
Javier Jardón
e5c7daa828
tests: avoid boxed structs copying where possible
...
Use the GtkStyleContext accessors for boxed properties where possible,
to reduce allocations.
2011-05-31 19:12:24 +02:00
Benjamin Otte
b3ec31f8b6
gtk-demo: Don't store anchor in an unused variable
2011-05-27 16:11:09 +02:00
Benjamin Otte
f6ee34c8b1
gtk-demo: Remove unused variable for text tags
2011-05-27 16:11:09 +02:00
Matthias Clasen
cf86c7c9bb
Move demos around
...
The pixbuf-demo gets its own subdirectory, the other small
tests move from demos/ to tests/.
2011-05-26 00:32:31 -04:00
Matthias Clasen
6499d89a6e
And actually delete it
2011-05-26 00:21:54 -04:00
Matthias Clasen
5a6bfa2674
Remove no-longer-needed pixbuf_init hack
...
Since gdk-pixbuf is now a separate project again, we no
longer need to locate it inside our source tree.
2011-05-26 00:20:59 -04:00
Matthias Clasen
7f6e51ba2f
Remove an incomplete, dead copy of testgtk
2011-05-26 00:08:43 -04:00
Matthias Clasen
e805320a14
gtk3-demo: assistant demo simplications
...
Since header and sidebar images are no longer used, don't set them.
2011-05-06 14:56:43 -04:00
Matthias Clasen
c8c1075cfe
gtk-demo: Don't leave a dangling pointer to a destroyed widget
...
When destroying the assistant, clean up the static variable
that points to it.
2011-05-06 14:28:28 -04:00
Benjamin Otte
0203cd612e
gtk-demo: Don't right-justify menu items
...
We don't want to demo things that are a bad idea (quoted from the docs).
2011-05-02 16:57:12 +02:00
Carlos Garcia Campos
ddba4cc00c
gtk-demo: Add placeholder text to search entry demo
2011-03-22 12:47:50 +01:00
Matthias Clasen
0127d0bbc7
gtk-demo: plug a memleak in the editable cells demo
2011-02-17 18:49:01 -05:00
Matthias Clasen
d93934ba6c
gtk-demo: Make the menu example work again
2011-02-17 16:40:00 -05:00
Matthias Clasen
91b8417d35
Don't leak the GDir in the iconview example
2011-02-17 15:57:39 -05:00
Matthias Clasen
524ce69bcb
Bump the version to 3.0.0
...
At the same time, change the library sonames for -3.0 to just -3.
This is necessary since the 2.99 releases installed libraries like
libgtk-3.0.so.0.9903.0, and we want to prevent the library version
number from jumping back. So 3.0 will have libgtk-3.so.0.0.0.
2011-02-10 14:41:02 -05:00
Bastien Nocera
8f870ddcdc
gtk-demo: Use symbolic icon that exists
...
For the Images test.
2011-02-05 03:20:27 +00:00
Matthias Clasen
9b752aee1a
Don't use deprecated style api
2011-01-10 20:33:13 -05:00
Benjamin Otte
d5f7b6cd64
gtk-demo: Undef GDK_DISABLE_DEPRECATED to make test compile
2011-01-05 23:50:22 +01:00
Benjamin Otte
c731e1ce0a
demos: Update testpixbuf-scale demo for adjustment sealing
2011-01-05 23:50:22 +01:00
Robert Ancell
f4419be0d6
Fix DSO link issues
2010-12-22 15:01:50 +11:00
Benjamin Otte
e622ae9a68
gtk-demo: Use g_object_unref instead of gdk_cursor_unref
2010-12-21 12:07:05 -05:00
Matthias Clasen
07d49ee56a
Merge libgdk and libgtk
...
This commit does a number of things:
- remove some dead wchar configury from configure.ac and gdkconfig.h
- repurpose gdkconfig.h as header that contains GDK_WINDOWING_foo
macros for each included backend, include it in gdk.h and install
it in $includedir instead of below $libdir
- drop the backend from the library names
- build libgdk-3.0.la as a convenience lib and include it in libgtk-3.0.la
It does not yet enable building multiple backends at the same time.
2010-12-21 12:06:55 -05:00
Javier Jardón
a66f095b62
demos/gtk-demo/clipboard.c: Use accessor functions to access GtkSelectionData
2010-12-15 23:58:15 +00:00
Benjamin Otte
e77ce71caa
gtk-demo: gtk_widget_render_icon() => gtk_widget_render_icon_pixbuf()
2010-12-15 14:51:26 +01:00
Matthias Clasen
9b1118a35d
Port gtk3-demo to GtkStyleContext
2010-12-04 15:39:46 +01:00
Ryan Lortie
922324553b
Bug 619148 - "active ID" properties (GtkComboBox)
...
Based on a patch by Matthias, add an "active-id" property for
GtkComboBox and add some convenience API for GtkComboBoxText.
Also, add a test case to gtk-demo.
2010-11-30 00:29:16 -05:00
Javier Jardón
4782804b9d
demos: Replace size_request by get_preferred_width/height
2010-11-17 23:58:53 +01:00
Matthias Clasen
b3a4095d55
Rewrap text in gtk-demo
2010-11-09 11:20:17 -05:00
Hans Breuer
dc40e17af8
Update msvc build
2010-11-07 23:35:04 +01:00
Michael Natterer
3a0afce509
gtk: remove "gboolean homogeneous" from gtk_box_new()
...
Because it's FALSE in virtually all use cases.
2010-10-31 19:22:28 +01:00
Javier Jardón
a9894d4cf4
Use gtk_box_new() instead gtk_[v|h]box_new()
2010-10-30 05:22:58 +02:00
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
Benjamin Otte
872ef111ec
gdk: Make gdk_pixbuf_get_from_*() bindable
...
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.
2010-10-02 03:08:24 +02:00
Javier Jardón
72d48cbc61
gtk-demo: remove GtkObject type
2010-09-29 06:11:13 +02:00
Javier Jardón
b072ea220c
Remove unneded casts
...
As gtk_adjustment_new() returns a GtkAdjustment* now
https://bugzilla.gnome.org/show_bug.cgi?id=630731
2010-09-29 01:18:10 +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
97b997d59e
testpixbuf-save: Use the draw signal
2010-09-26 15:11:41 +02:00
Benjamin Otte
b271c76c06
testpixbuf-scale: Connect to draw signal
2010-09-26 15:11:41 +02:00
Benjamin Otte
ebba458336
pixbuf-demo: Use draw signal
2010-09-26 15:11:41 +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
e316157671
API: gdk_pixbuf_get_from_drawable() => gdk_pixbuf_get_from_window()
...
The Colormap argument needed to be removed, so the renaming is just a
side effect.
2010-09-26 15:11:32 +02:00
Benjamin Otte
0a63e954af
gtk-demo: Remove colormaps from window attributes
2010-09-26 15:11:32 +02:00
Benjamin Otte
36f0a96161
demos: No need to set the background, it gets overridden anyway
2010-09-26 15:11:30 +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
15d46dd866
demos: Use gtk_size_request_get_size() instead gtk_widget_size_request()
2010-09-15 03:14:34 +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
Javier Jardón
eb81216e32
demos: Do not use deprecated API
2010-09-08 17:45:51 +02: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
26fcfcc5a6
demos/testpixbuf-scale.c: Use accessor functions to access GtkWidget
2010-08-22 18:28:55 +02: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
Benjamin Otte
17b8bee168
demos: Convert testpixbuf-save to Cairo
2010-08-10 21:02:26 +02:00
Benjamin Otte
46794cc65c
demos: Remove testpixbuf
...
Another test mainly utilizing inline pixbufs and GdkRGB, both of which
are kinda outdated.
2010-08-10 21:02:26 +02:00
Benjamin Otte
638e415a6d
demos: remove testpixbuf-drawable
...
It only tested GdkRGB, and we're about to kill that.
2010-08-10 21:02:26 +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
Javier Jardón
3ccc617052
Completely remove any use of GtkWindow allow-grow and allow-shrink properties
...
These have been deprecated and removed from master.
GtkWindow:resizable should be used instead.
This completes commit 1a03a65e36
Reported by Benjamin Otte
2010-08-07 17:19:16 +02: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
Benjamin Otte
760ba34bd8
gtk-demo: Convert drawingarea example to Cairo
2010-07-26 16:42:48 +02:00
Benjamin Otte
4d07fa5772
gtk-demo: Make pixbufs demo use Cairo
2010-07-26 16:42:48 +02:00
Benjamin Otte
1e64e36b58
demos: No need to set the rgb colormap here
2010-07-26 16:42:48 +02:00
Benjamin Otte
da49daecc4
demos: Convert to drawing with Cairo instead of GdkRGB
2010-07-26 16:42:48 +02:00
Benjamin Otte
73ae8a787e
demos: Use Cairo instead of gdk_draw_pixbuf()
2010-07-26 16:42:48 +02:00
Javier Jardón
92a1382bd6
Use accessor functions to access GtkPaned
2010-07-13 19:40:49 +02:00
Javier Jardón
7f2cc85db9
Use accessor functions to access GtkDialog
2010-07-13 19:40:47 +02:00
Javier Jardón
4427760bcc
Use GtkBin accessors
2010-07-13 19:40:47 +02:00
Javier Jardón
3a10216dd0
Use accessor functions to acces GtkContainer
2010-07-13 19:40:46 +02:00
Javier Jardón
9663801be7
Use accessor functions to access GtkColorSelectionDialog
2010-07-13 19:40:46 +02:00
Matthias Clasen
16ecf55832
Make GTK+ use an external gdk-pixbuf
2010-06-26 01:09:05 -04:00
Matthew Barnes
bb5c585777
Bug 596428 - GtkAssistant: Support ending with a progress page
...
- Add gtk_assistant_commit()
This function discards the visited pages list so the back button is not
shown on the current page, and removes the cancel button from subsequent
pages. Use this when information provided thus far cannot be revisited.
- Don't show the Forward button on a GTK_ASSISTANT_PAGE_PROGRESS if it's
the last page (according to the forward page function).
- Append a progress page to the GtkAssistant demo.
2010-06-03 17:03:14 -04:00
Matthias Clasen
c51f965782
Some cleanups after the module cache file change
...
Bring the various 'run uninstalled' hacks in line with the
new way of doing things, and fix make install for module cache
files.
Patch by Tadej Borovsak.
2010-05-18 19:23:06 -04:00
Matthias Clasen
2c13b36d75
Install gtk-demo as gtk3-demo
2010-05-10 20:06:10 -04:00
Bastien Nocera
4551509af1
Make it easy for apps to have dark themes
...
Some types of applications would benefit from having "dark" themes,
usually black backgrounds, such as:
* Movie players
* Photo management and display applications
To make it easy for those applications to prefer a dark theme,
we're adding the "gtk-application-prefer-dark-theme" GtkSetting, which
will make the theme loading code automatically look for a "gtkrc-dark"
file in the same directory you would usually find a gtkrc file.
the same name and a "-dark" suffix.
If no "-dark" gtkrc variant is available, the normal gtkrc will
be used.
https://bugzilla.gnome.org/show_bug.cgi?id=617955
2010-05-10 01:15:14 +01:00
Matthias Clasen
7447ef0fc2
Make 3.0 parallel-installable to 2.x
...
In particular, rename
- libraries to lib*-3.0.so
- pc files to *-3.0.pc
- include paths to /usr/include/gtk-3.0/*
- module paths to /usr/lib/gtk-3.0/*
- rc files names to gtk-3.0/gtkrc
- commandline utilities to *-3.0
- adjust documentation
Also change the install location for unix-print headers to
/usr/include/gtk-3.0/unix-print/gtk.
2010-05-08 01:18:53 -04:00
Matthias Clasen
6b939d57c7
Support 'symbolic' themed icons
...
Add gtk_icon_info_load_symbolic() to load symbolic icons, and
theme their background/foreground colours to match the
colours used in the theme.
Adds the gtk_icon_info_load_symbolic() function, explicit
support in GtkImage and GtkCellRendererPixbuf, and test cases
for those 2 widgets.
With help from Bastien Nocera <hadess@hadess.net>
https://bugzilla.gnome.org/show_bug.cgi?id=614711
2010-04-28 12:02:05 +01:00
Javier Jardón
6a513f2289
Fix compilation warning: use entry var correctly initilized
...
The warning was added in
commit c744594b20
2010-03-09 17:15:53 +01:00
Javier Jardón
32b9aeaadd
Don't use GTK_WIDGET_STATE in internal code anymore
...
Use gtk_widget_get/set_state() instead
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-03-09 02:40:17 +01:00
Matthias Clasen
c744594b20
Add accessible alternatives to entry icon functionality
...
Inspired by the complaint in bug 611051.
2010-03-08 19:59:24 -05:00
Javier Jardón
1934de4b65
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_REALIZED)
...
Use new API instead: gtk_widget_set_realized ()
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-03-06 11:51:33 +01:00
Javier Jardón
24bafd8693
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_NO_WINDOW)
...
Use new API instead: gtk_widget_set_has_window ()
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-03-06 11:37:06 +01:00
Javier Jardón
16a59ad912
Deprecate widget flag: GTK_WIDGET_REALIZED
...
Use gtk_widget_get_realized() instead
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-03-03 20:41:05 +01:00
Javier Jardón
e8e95d4c5e
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_CAN_DEFAULT)
...
Use new API instead: gtk_widget_set_can_default ()
2010-03-02 07:58:05 +01:00
Javier Jardón
214a023e91
Deprecate widget flag: GTK_WIDGET_VISIBLE
...
Use gtk_widget_get_visible() instead
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-03-01 07:52:07 +01:00
Javier Jardón
4f78f70b15
Deprecate widget flag: GTK_WIDGET_DRAWABLE
...
Use gtk_widget_is_drawable() instead.
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-03-01 04:55:55 +01:00
Javier Jardón
5469695f29
Fix some compilation warnings
...
The warnings was introduced with the changes in commit
a491091e29
2010-01-19 17:01:10 +01:00
Javier Jardón
c1cddb2b24
Fix compilation warning: use the correct conversion specifier
...
Use G_GSIZE_FORMAT instead of %i
The warning was added in
commit ba651d4022
2010-01-04 10:43:32 +01:00
Richard Hughes
60e0183ac9
Add icc-profile option to gdk-pixbuf for the TIFF image format
2009-12-21 08:53:28 +00:00
Benjamin Otte
9e7c91bf83
Fix up linker flags
...
This adds LDFLAGS everywhere where they were previously pulled in via
other libraries. This is however unsupported by modern linkers.
You can trigger these failures by building with gold (or, I'm told, with
very new ld).
2009-12-19 18:37:39 +01:00
Richard Hughes
ba651d4022
Add color management support to gdk_pixbuf_save
...
This patch adds an icc-profile option to a GdkPixbuf which can
be used to read or write an embedded ICC profile.
Add PNG support for now, but other image formats are awaiting
review.
2009-12-18 15:17:13 +00:00
Matthias Clasen
37255486d4
Merge branch 'master' into toolpalette
2009-11-26 23:54:55 -05:00
Matthias Clasen
7f9b55710a
Some cleanups for the toolpalette demo
2009-11-26 19:41:38 -05:00
Johannes Schmid
3cc1478a29
toolpalette: Added dnd code to the gtk-demo
2009-11-18 10:32:37 +01:00
Javier Jardón
d8f5ce4b54
Fix compilation warning: Use const gchar* variable
2009-11-09 09:36:36 +01:00
Javier Jardón
73cfcf9495
Fix compilation warning: Cast to guchar*
2009-11-09 09:34:23 +01:00
Johannes Schmid
c229306a18
Merge branch 'master' into toolpalette
2009-10-28 10:57:46 +01:00
Emmanuele Bassi
ef3361caa3
gtk-demo: Remove C99-ism from list_store example
2009-10-15 12:25:21 +01:00
Bastien Nocera
7fd79f42ab
Fix GtkSpinner using style before it's set
...
Fix a possible division by zero when the spinner
is started before it's realized (eg. before it has a style
set).
https://bugzilla.gnome.org/show_bug.cgi?id=598496
2009-10-15 01:43:26 +01:00
Bastien Nocera
e9a240cd52
Add GtkSpinner::animation-duration style property
2009-10-14 19:06:26 +01:00
Bastien Nocera
d21700f510
Bug 319607 – Add a throbber (activity widget) to GTK+
...
Add GtkSpinner activity throbber, as well as a cell renderer.
2009-10-14 14:58:30 +01:00
Matthias Clasen
be22a62160
Cleanups
...
This commit removes dead code, mostly pointed out by clang.
2009-09-10 13:53:28 -04:00
Matthias Clasen
908b6620bd
Remove sincos use
...
It turns out to be not worth the portability pain. Bug 593877
2009-09-02 22:11:28 -04:00
Matthias Clasen
45d6752a3c
Handle geometry change correctly
...
This makes sure that the button is properly prelighted when rotating it
underneath the pointer by using keynav on the scale.
2009-08-31 19:41:09 -04:00
Matthias Clasen
d22b79f1b6
Add another offscreen demo
...
This demo shows rendering multiple times, to achieve a reflection effect.
Inspired by an earlier demo by macslow.
2009-08-31 19:38:17 -04:00
Matthias Clasen
953d391a34
Cosmetic fixes
2009-08-31 01:08:31 -04:00
Matthias Clasen
97d4b25d02
Add an offscreen window demo
2009-08-31 00:20:39 -04:00
Javier Jardón
ec7c24d227
Remove some unused variables (GnomeBug:591218)
2009-08-10 11:06:54 +02:00
Marek Kasik
39b960216c
Add SVG support to GtkPrintBackendFile
...
This add support for printing to SVG 1.2 files (#357655 ).
2009-08-03 11:25:19 +02:00
Murray Cumming
eb76666f1c
GtkToolPalette: Use gtk-toolbar-style and gtk-toolbar-icon-size settings.
...
* gtk/gtksettings.c: (settings_install_property_parser): Handle enums too.
* gtk/gtktoolbar.c (gtk_toolbar_class_init): Move the gtk-toolbar-style and
gtk-toolbar-icon-size settings into GtkSettings because we now use it in
GtkToolPalette too.
* gtk/gtktoolpalette.[h|c]: Add gtk_tool_palette_unset_style() and
gtk_tool_palette_unset_icon_size(), and use the toolbar-style and
icon-size from GtkSettings if these are not set via the set functions.
* demos/gtk-demo/toolpalette.c (on_combo_style_changed),
(do_toolpalette): Add and handle a -1 value to mean the desktop "Default"
toolbar style.
2009-07-16 17:51:55 +02:00
Murray Cumming
a14e05fa59
GtkToolItemGroup now has label and label-widget properties.
...
* demos/gtk-demo/toolpalette.c (load_special_items): Demonstrate
gtk_tool_item_group_set_label_widget().
* gtk/gtktoolitemgroup.[h|c]: Rename the "item-group-name" property to
"label" because that is what it is. Likewise rename the functions.
Add a "label-widget" propert and get/set_label_widget() functions,
based on the same code/API in GtkExpander.
2009-07-14 23:46:49 +02:00
Matthias Clasen
33c4cb76d8
Also flip scrollbars in the toolpalette example
2009-07-14 15:55:12 -04:00
Murray Cumming
ac7b0c91ae
ToolPalette: Implement GtkOrientable.
...
* gtk/gtktoolpalette.[h|c]: Remove gtk_tool_palette_get/set_property(),
implementing GtkOrientable instead.
* gtk/gtktoolitemgroup.c:
* demos/gtk-demo/toolpalette.c: Use gtk_orientable_* instead.
2009-07-14 19:11:20 +02:00
Murray Cumming
d95654fd5f
gtk+/demos/gtk-demo/: Added GtkToolPalette demo.
2009-07-13 18:45:48 +02:00
Marek Kasik
0ef74c936f
Add paper size combo and orientation combo to print dialog
...
Paper size combo and orientation combo can be added by
gtk_print_operation_set_embed_page_setup_dialog() to GtkPrinUnixDialog
now. This function induce calling of
gtk_print_unix_dailog_set_embed_page_setup_dialog() after creation of
dialog. These two functions control embed-page-setup-dialog properties
in GtkPrintOperation and in GtkPrintUnixDialog.
There is also new function gtk_print_unix_dialog_get_page_setup_set()
which says whether page setup was set by user.
Selected page setup is stored as default page setup in
GtkPrintOperation.
New class is added, its name is GtkCustomPaperUnixDialog. The class
manages custom sizes. It is derived from GtkPageSetupUnixDialog's
CustomPaperDialog structure.
Page layout preview is modified, so, it shows dimensions of current
page setup (mm or inch - depends on locale). It also shows the name of
actual paper if page setup dialog is not embedded (paper size combo is
not visible).
gtk-demo is actualized to include this new feature.
2009-07-10 11:28:31 +02:00
Stef Walter
eab02f697a
GtkEntryBuffer holds text for GtkEntry
...
Adds a 'model' type buffer for GtkEntry in which the actual
textual data is stored. GtkEntryBuffer can be subclassed.
Among other things, this allows GtkEntry to be used for secrets
that need to be stored in non-pageable memory. It also allows
buffers to be shared by entries.
See bug #576801 .
2009-07-08 20:41:53 -05:00
Matthias Clasen
d78f449deb
Improve printing example
...
Handle Documents folder being NULL, and handle output formats.
2009-06-28 16:58:00 -04:00
David Zeuthen
a92c9ce9a5
Bug 586691 – Better GtkInfoBar defaults
...
Signed-off-by: David Zeuthen <davidz@redhat.com>
2009-06-25 15:23:40 -04:00
Matthias Clasen
99b42cf006
Demo setting an output name for print to file
...
It turns out that no application is doing this, since it is not
obvious. Adding a demo here is at least a start.
2009-06-25 01:23:50 -04: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
a85fac7145
Add a message area widget
...
It is called GtkInfoBar. See bug 555344.
2009-06-05 18:00:26 -04:00
Matthias Clasen
ae94c371d1
Add a separate keybinding signal for activating links
...
Keeping the keybinding signal and the regular signal separate is
cleaner and allows us to pass the uri as a parameter to the
activate-link signal.
2009-05-11 02:44:12 -04:00
Matthias Clasen
9dbb30482b
Add link support to GtkLabel
...
This patch is based on SexyUrlLabel, but with significantly enhanced
functionality: keynav, tooltips, context menu, theming.
2009-05-11 01:23:13 -04:00
Behdad Esfahbod
a398c840be
Add git.mk to generate .gitignore files
...
Add four new doc templates that were not in repository.
2009-05-04 14:29:21 -04:00
Michael J. Chudobiak
b07c6616f8
Minor file descriptor leak in testgtk
...
Added a missing fclose. Bug #578366 .
2009-04-11 13:42:14 -04:00
Behdad Esfahbod
d21f55fe9a
Bug 437533 – Implement draw_shape PangoRenderer method
...
2009-03-27 Behdad Esfahbod <behdad@gnome.org>
Bug 437533 – Implement draw_shape PangoRenderer method
* gdk/gdkpango.c (gdk_pango_renderer_draw_shape),
(gdk_pango_renderer_class_init): Implement draw_shape
* demos/gtk-demo/rotated_text.c (fancy_shape_renderer),
(create_fancy_attr_list_for_layout), (rotated_text_expose_event),
(do_rotated_text):
1) Port to pangocairo
2) Also show a rotated label
3) Install a custom shape renderer on both. The second one goes
through gdkpango and hence tests the patch above. It's working.
svn path=/trunk/; revision=22592
2009-03-27 16:54:10 +00:00
Matthias Clasen
f3f4fec8db
Set the program-name property of the about dialog.
...
* demos/gtk-demo/appwindow.c: Set the program-name property
of the about dialog.
* docs/tools/widgets.c: Add GtkAboutDialog
svn path=/trunk/; revision=22427
2009-03-01 05:19:42 +00:00
Andre Klapper
aa22f6c538
Fix deprecated glib call.
...
2009-02-17 Andre Klapper <a9016009@gmx.de>
* demos/gtk-demo/main.c:
Fix deprecated glib call.
svn path=/trunk/; revision=22349
2009-02-17 18:57:05 +00:00
Matthias Clasen
ade90af533
End the search if the window is closed.
...
* demos/gtk-demo/search_entry.c: End the search if the window
is closed.
* demos/gtk-demo/search_entry.c:
* demos/gtk-demo/entry_completion.c: Group the entry examples
under "Entry".
svn path=/trunk/; revision=22132
2009-01-18 15:50:29 +00:00
Matthias Clasen
e31eb99c9d
Rename GtkEntry icon-related signals
...
svn path=/trunk/; revision=22023
2008-12-31 07:29:23 +00:00
Matthias Clasen
6a43b63b35
Add a "Search entry" demo for icons and progress in an entry
...
svn path=/trunk/; revision=21937
2008-12-26 21:57:55 +00:00
Michael Natterer
e0d30ee141
define -DGDK_PIXBUF_DISABLE_DEPRECATED in the global CFLAGS.
...
2008-08-12 Michael Natterer <mitch@imendio.com>
* configure.in: define -DGDK_PIXBUF_DISABLE_DEPRECATED in the
global CFLAGS.
* gdk-pixbuf/Makefile.am: make the contents gdk-pixbuf-marshal.h
visible for GDK_PIXBUF_COMPILATION.
* contrib/gdk-pixbuf-xlib/Makefile.am
* demos/Makefile.am
* demos/gtk-demo/Makefile.am
* gdk-pixbuf/pixops/Makefile.am
* gdk/Makefile.am
* gdk/x11/Makefile.am
* gtk/Makefile.am
* gtk/tests/Makefile.am
* gtk/theme-bits/Makefile.am
* modules/engines/ms-windows/Makefile.am
* modules/engines/pixbuf/Makefile.am
* modules/input/Makefile.am
* perf/Makefile.am
* tests/Makefile.am: remove -DDGDK_PIXBUF_DISABLE_DEPRECATED here.
svn path=/trunk/; revision=21096
2008-08-12 15:04:55 +00:00
Sven Neumann
092187e99c
demos/gtk-demo/changedisplay.c demos/gtk-demo/clipboard.c
...
2008-08-11 Sven Neumann <sven@gimp.org>
* demos/gtk-demo/changedisplay.c
* demos/gtk-demo/clipboard.c
* demos/gtk-demo/drawingarea.c
* demos/gtk-demo/iconview.c
* demos/gtk-demo/images.c
* demos/gtk-demo/pixbufs.c: use canonical signal names in the
demos.
svn path=/trunk/; revision=21074
2008-08-11 19:12:58 +00:00
Michael Natterer
36b3bed631
don't use the deprecated gtk_box_pack_start_defaults().
...
2008-08-11 Michael Natterer <mitch@imendio.com>
* demos/gtk-demo/textscroll.c (create_text_view): don't use the
deprecated gtk_box_pack_start_defaults().
svn path=/trunk/; revision=21062
2008-08-11 11:23:06 +00:00
Federico Mena Quintero
0278fdcbc2
Don't do funny casts to avoid compiler warnings
...
2008-07-18 Federico Mena Quintero <federico@novell.com>
* demos/gtk-demo/changedisplay.c (find_toplevel_at_pointer): Don't
do funny casts to avoid compiler warnings.
* demos/gtk-demo/textview.c (easter_egg_callback): Likewise.
* gtk/gtkmain.c (rewrite_event_for_grabs, gtk_get_event_widget): Likewise.
* gtk/gtkmodules.c (load_module): Likewise.
* gtk/gtkselection.c (gtk_selection_convert): Likewise.
* gtk/gtktipsquery.c (gtk_tips_query_event): Likewise.
* gtk/queryimmodules.c (query_module): Likewise.
* tests/testgtk.c (create_gridded_geometry, create_key_lookup)
(find_widget_at_pointer): Likewise.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
svn path=/trunk/; revision=20862
2008-07-18 18:27:30 +00:00
Matthias Clasen
75c668dbf2
Fix up highlighting
...
svn path=/trunk/; revision=20791
2008-07-06 07:24:02 +00:00
Matthias Clasen
5d0421f6c3
One more
...
svn path=/trunk/; revision=20747
2008-07-03 17:37:07 +00:00
Matthias Clasen
c20433d644
Use monospace as font name, not mono. Patch by Yevgen Muntyan.
...
* demos/gtk-demo/printing.c: Use monospace as font name,
not mono. Patch by Yevgen Muntyan.
svn path=/trunk/; revision=20746
2008-07-03 17:35:50 +00:00
Kristian Rietveld
4cceb2f1dc
Bug 455268 - Add gtk-enable-tooltips GtkSetting
...
2008-07-02 Kristian Rietveld <kris@imendio.com>
Bug 455268 - Add gtk-enable-tooltips GtkSetting
* gtk/gtk.symbols:
* gtk/gtktoolbar.[ch] (gtk_toolbar_[gs]et_tooltips): deprecated.
* gtk/gtksettings.c: introduce gtk-enable-tooltips XSetting.
* gtk/gtktooltip.c (_gtk_tooltip_handle_event): take the newly
introduced XSetting into account.
* demos/gtk-demo/appwindow.c: don't use the now deprecated
gtk_toolbar_set_tooltips().
svn path=/trunk/; revision=20730
2008-07-02 09:32:14 +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
Mikael Hallendal
df11b00dae
Replaced use of gtk_signal_connect with the g_signal_connect equivalents.
...
2008-06-20 Mikael Hallendal <micke@imendio.com>
* tests/testthreads.c: Use g_signal_connect instead of
gtk_signal_connect.
* demos/testgtk/main.c: switched to use GSignal instead of GtkSignal.
While the code is not built, people may still look at it.
svn path=/trunk/; revision=20654
2008-06-20 19:26:50 +00:00
Johan Dahlin
1a30e12586
Use g_object_new instead of gtk_widget_new
...
2008-06-19 Johan Dahlin <jdahlin@async.com.br>
* demos/testpixbuf.c (new_testrgb_window):
* gtk/gtkctree.c (gtk_ctree_new_with_titles):
* gtk/gtkitemfactory.c (gtk_item_factory_construct),
(gtk_item_factory_create_item):
* gtk/gtkmenu.c (gtk_menu_set_tearoff_state):
* gtk/gtkprogressbar.c (gtk_progress_bar_new),
(gtk_progress_bar_new_with_adjustment):
* gtk/gtkscrolledwindow.c (gtk_scrolled_window_new):
* gtk/gtktext.c (gtk_text_new):
* gtk/gtkviewport.c (gtk_viewport_new):
* tests/simple.c (main):
* tests/testgtk.c (create_statusbar), (create_get_image),
(create_saved_position), (create_tooltips), (create_cursors),
(create_display_screen), (create_progress_bar), (create_idle_test):
* tests/testmultidisplay.c (make_selection_dialog), (main):
* tests/testmultiscreen.c (main):
* tests/testrgb.c (new_testrgb_window):
Use g_object_new instead of gtk_widget_new
svn path=/trunk/; revision=20462
2008-06-19 12:25:19 +00:00
Michael Natterer
0130bc33fd
include <gdk-pixbuf/gdk-pixbuf.h> instead of individual files.
...
2008-05-28 Michael Natterer <mitch@imendio.com>
* demos/testpixbuf.c: include <gdk-pixbuf/gdk-pixbuf.h> instead of
individual files.
svn path=/trunk/; revision=20209
2008-05-28 12:47:37 +00:00
Tor Lillqvist
54706dddf8
Mark these functions with G_MODULE_EXPORT.
...
2008-04-08 Tor Lillqvist <tml@novell.com>
* demos/gtk-demo/builder.c (quit_activate, about_activate): Mark
these functions with G_MODULE_EXPORT.
svn path=/trunk/; revision=19985
2008-04-08 14:06:17 +00:00
Cody Russell
d4a3e5a6e4
Move down each line in units of text_height rather than in units of
...
2008-03-31 Cody Russell <bratsche@gnome.org>
* demos/gtk-demo/printing.c (draw_page): Move down each line in
units of text_height rather than in units of data->font_size.
(totally awesome catch by Dom Lachowicz)
svn path=/trunk/; revision=19952
2008-03-31 21:45:22 +00:00
Johan Dahlin
e2534d54e1
Add translatable/context and comment attributes on <col> tags under a
...
2008-02-29 Johan Dahlin <johan@gnome.org>
* demos/gtk-demo/demo.ui:
* gtk/gtkbuilderparser.c:
* gtk/gtkbuilderprivate.h:
* gtk/gtkliststore.c:
* tests/buildertest.c:
Add translatable/context and comment attributes on
<col> tags under a GtkListStore. Refactor parts of the
translation api and make it available inside gtk+ itself.
Update tests and example.
Fixes a part of #518642
svn path=/trunk/; revision=19685
2008-03-02 01:14:48 +00:00
Dominic Lachowicz
4c399695f9
gtk-demo printing gives wrong results on win32 because it doesn't set the
...
2008-02-22 Dominic Lachowicz <domlachowicz@gmail.com>
* demos/gtk-demo/printing.c (do_printing): gtk-demo printing
gives
wrong results on win32 because it doesn't set the printing
units,
which affect the transformation of the cairo context
(#347125 , Erik van Pienbroek)
svn path=/trunk/; revision=19635
2008-02-22 22:38:47 +00:00
Johan Dahlin
12b46f84bf
Move the about dialog to the glade file, add accessible tags examples to
...
2008-01-29 Johan Dahlin <johan@gnome.org>
* demos/gtk-demo/builder.c: (quit_activate), (about_activate),
(do_builder):
* demos/gtk-demo/demo.ui:
Move the about dialog to the glade file, add accessible tags
examples to the markup file.
svn path=/trunk/; revision=19426
2008-01-29 14:12:08 +00:00
Michael Natterer
26f205e20e
use gtk_about_dialog_set_program_name() instead of the deprecated
...
2008-01-28 Michael Natterer <mitch@imendio.com>
* demos/gtk-demo/builder.c (about_activate): use
gtk_about_dialog_set_program_name() instead of the deprecated
set_name().
svn path=/trunk/; revision=19417
2008-01-28 13:05:15 +00:00
Michael Natterer
64c73a61b7
Remove all .cvsignore files.
...
svn path=/trunk/; revision=19169
2007-12-13 11:18:45 +00:00
15:39:40 Tim Janik
2dc08ada49
call g_test_init() from gtk_test_init().
...
2007-11-22 15:39:40 Tim Janik <timj@imendio.com>
* gtk/gtktestutils.c: call g_test_init() from gtk_test_init().
* gtk/tests/testing.c: use g_test_add_func() to register tests and use
g_test_run() to run the tests to integrate with the testing framework.
* gtk/tests/Makefile.am: removed exemplary testing rules.
* Makefile.am, gtk/tests/Makefile.am, gtk/Makefile.am:
* gtk/xdgmime/Makefile.am, gtk/theme-bits/Makefile.am:
* tests/Makefile.am, docs/reference/gdk-pixbuf/Makefile.am:
* docs/reference/gdk/Makefile.am, docs/reference/gtk/Makefile.am:
* docs/reference/Makefile.am, docs/tools/Makefile.am:
* docs/tutorial/Makefile.am, docs/faq/Makefile.am, docs/Makefile.am:
* gdk-pixbuf/pixops/Makefile.am, gdk-pixbuf/Makefile.am:
* demos/gtk-demo/Makefile.am, demos/Makefile.am:
* modules/input/Makefile.am, modules/printbackends/file/Makefile.am:
* modules/printbackends/test/Makefile.am, modules/printbackends/Makefile.am:
* modules/printbackends/cups/Makefile.am, modules/printbackends/lpr/Makefile.am:
* modules/engines/ms-windows/Theme/gtk-2.0/Makefile.am:
* modules/engines/ms-windows/Theme/Makefile.am:
* modules/engines/ms-windows/Makefile.am:
* modules/engines/Makefile.am, modules/engines/pixbuf/Makefile.am:
* modules/Makefile.am, m4macros/Makefile.am, perf/Makefile.am:
* contrib/Makefile.am, contrib/gdk-pixbuf-xlib/Makefile.am:
* gdk/directfb/Makefile.am, gdk/linux-fb/Makefile.am:
* gdk/quartz/Makefile.am, gdk/win32/rc/Makefile.am:
* gdk/win32/Makefile.am, gdk/x11/Makefile.am, gdk/Makefile.am:
include $(top_srcdir)/Makefile.decl, adapted EXTRA_DIST assignments.
svn path=/trunk/; revision=19033
2007-11-22 14:38:26 +00:00
Michael Natterer
62f46c86d7
s/gtk_widget_[un]ref/g_object_[un]ref/g
...
2007-09-06 Michael Natterer <mitch@imendio.com>
* demos/gtk-demo/panes.c: s/gtk_widget_[un]ref/g_object_[un]ref/g
svn path=/trunk/; revision=18729
2007-09-06 10:46:54 +00:00
Kristian Rietveld
b1ec5f7556
add more convenience API.
...
2007-07-19 Kristian Rietveld <kris@imendio.com>
* gtk/gtk.symbols:
* gtk/gtktreeprivate.h:
* gtk/gtktreeview.[ch] (gtk_tree_view_get_tooltip_context),
(gtk_tree_view_[sg]et_tooltip_column): add more convenience API.
* tests/testtooltip.c (query_tooltip_tree_view_cb): use
gtk_tree_view_get_tooltip_context().
* demos/gtk-demo/demo.ui: add a tooltip column to the list store,
set tooltip-column on the tree view.
svn path=/trunk/; revision=18496
2007-07-19 13:21:09 +00:00
Johan Dahlin
83b5d32aef
|___* demos/gtk-demo/demo.ui: |___* gtk/gtk-builder-convert: |___*
...
2007-07-09 Johan Dahlin,,, <jdahlin@lozenge>
|___* demos/gtk-demo/demo.ui:
|___* gtk/gtk-builder-convert:
|___* gtk/gtkactiongroup.c: (gtk_action_group_buildable_init),
|___(gtk_action_group_buildable_add_child),
|___(accelerator_start_element),
|___(gtk_action_group_buildable_custom_tag_start),
|___(gtk_action_group_buildable_custom_tag_end):
|___* gtk/gtkuimanager.c: (child_hierarchy_changed_cb),
|___(gtk_ui_manager_buildable_construct_child):
|___* tests/buildertest.c: (test_uimanager_simple):
|___Add actiongroup/action accelerator support for builder. #454654
svn path=/trunk/; revision=18408
2007-07-09 13:40:10 +00:00
Johan Dahlin
4110c04860
Set name of Help menu to HelpMenu
...
2007-06-27 Johan Dahlin <jdahlin@async.com.br>
* demos/gtk-demo/demo.ui: Set name of Help menu
to HelpMenu
svn path=/trunk/; revision=18271
2007-06-28 01:56:55 +00:00
Johan Dahlin
1d2955bcaf
Connect the destroy signal in the example instead of the ui file. Also set
...
* demos/gtk-demo/builder.c (do_builder): Connect the
destroy signal in the example instead of the ui file.
Also set the screen and title of the window.
(#451345 , Thomas Rydzynski)
svn path=/trunk/; revision=18251
2007-06-27 00:23:56 +00:00
Johan Dahlin
4d638bf0c1
Add GtkBuilder, fixes #172535
...
2007-06-15 Johan Dahlin <jdahlin@async.com.br>
* demos/gtk-demo/Makefile.am:
* demos/gtk-demo/builder.c: (quit_activate), (about_activate),
(do_builder):
* demos/gtk-demo/demo.ui:
* docs/reference/gtk/gtk-docs.sgml:
* docs/reference/gtk/gtk-sections.txt:
* docs/reference/gtk/gtk.types:
* docs/reference/gtk/tmpl/gtkbuildable.sgml:
* docs/reference/gtk/tmpl/gtkbuilder.sgml:
* gtk/Makefile.am:
* gtk/gtk.h:
* gtk/gtk.symbols:
* gtk/gtkaction.c: (gtk_action_buildable_init),
(gtk_action_buildable_set_name), (gtk_action_buildable_get_name):
* gtk/gtkactiongroup.c: (gtk_action_group_get_type),
(gtk_action_group_buildable_init),
(gtk_action_group_buildable_add),
(gtk_action_group_buildable_set_name),
(gtk_action_group_buildable_get_name):
* gtk/gtkbuildable.c: (gtk_buildable_get_type),
(gtk_buildable_set_name), (gtk_buildable_get_name),
(gtk_buildable_add), (gtk_buildable_set_property),
(gtk_buildable_parser_finished), (gtk_buildable_construct_child),
(gtk_buildable_custom_tag_start), (gtk_buildable_custom_tag_end),
(gtk_buildable_custom_finished),
(gtk_buildable_get_internal_child):
* gtk/gtkbuildable.h:
* gtk/gtkbuilder.c: (gtk_builder_class_init), (gtk_builder_init),
(gtk_builder_finalize), (gtk_builder_set_property),
(gtk_builder_get_property), (_gtk_builder_resolve_type_lazily),
(gtk_builder_real_get_type_from_name),
(gtk_builder_get_parameters), (gtk_builder_get_internal_child),
(_gtk_builder_construct), (_gtk_builder_add),
(apply_delayed_properties), (_gtk_builder_finish),
(gtk_builder_new), (gtk_builder_add_from_file),
(gtk_builder_add_from_string), (gtk_builder_get_object),
(object_add_to_list), (gtk_builder_get_objects),
(gtk_builder_set_translation_domain),
(gtk_builder_get_translation_domain),
(gtk_builder_connect_signals_default),
(gtk_builder_connect_signals), (gtk_builder_connect_signals_full),
(gtk_builder_value_from_string),
(gtk_builder_value_from_string_type),
(_gtk_builder_enum_from_string), (_gtk_builder_flags_from_string),
(gtk_builder_get_type_from_name), (gtk_builder_error_quark):
* gtk/gtkbuilder.h:
* gtk/gtkbuilderparser.c: (state_push), (state_peek), (state_pop),
(error_missing_attribute), (error_invalid_attribute),
(error_invalid_tag), (builder_construct), (parse_object),
(free_object_info), (_get_type_by_symbol), (parse_child),
(free_child_info), (parse_property), (free_property_info),
(parse_signal), (_free_signal_info), (parse_interface),
(create_subparser), (free_subparser), (subparser_start),
(subparser_end), (parse_custom), (start_element), (end_element),
(text), (_gtk_builder_parser_parse_buffer):
* gtk/gtkbuilderprivate.h:
* gtk/gtkcelllayout.c: (attributes_start_element),
(attributes_text_element),
(_gtk_cell_layout_buildable_custom_tag_start),
(_gtk_cell_layout_buildable_custom_tag_end),
(_gtk_cell_layout_buildable_add):
* gtk/gtkcelllayout.h:
* gtk/gtkcellview.c: (gtk_cell_view_buildable_init),
(gtk_cell_view_buildable_custom_tag_start),
(gtk_cell_view_buildable_custom_tag_end):
* gtk/gtkcolorseldialog.c:
(gtk_color_selection_dialog_buildable_interface_init),
(gtk_color_selection_dialog_buildable_get_internal_child):
* gtk/gtkcombobox.c: (gtk_combo_box_buildable_init),
(gtk_combo_box_buildable_custom_tag_start),
(gtk_combo_box_buildable_custom_tag_end):
* gtk/gtkcomboboxentry.c:
(gtk_combo_box_entry_buildable_interface_init),
(gtk_combo_box_entry_buildable_get_internal_child):
* gtk/gtkcontainer.c: (gtk_container_get_type),
(gtk_container_buildable_init), (gtk_container_buildable_add),
(gtk_container_buildable_set_child_property),
(attributes_start_element), (attributes_text_element),
(gtk_container_buildable_custom_tag_start),
(gtk_container_buildable_custom_tag_end):
* gtk/gtkdebug.h:
* gtk/gtkdialog.c: (gtk_dialog_buildable_interface_init),
(gtk_dialog_buildable_get_internal_child),
(attributes_start_element), (attributes_text_element),
(gtk_dialog_buildable_custom_tag_start),
(gtk_dialog_buildable_custom_finished):
* gtk/gtkentrycompletion.c: (gtk_entry_completion_buildable_init):
* gtk/gtkexpander.c: (gtk_expander_buildable_add),
(gtk_expander_buildable_init):
* gtk/gtkfontsel.c:
(gtk_font_selection_dialog_buildable_interface_init),
(gtk_font_selection_dialog_buildable_get_internal_child):
* gtk/gtkframe.c: (gtk_frame_buildable_init),
(gtk_frame_buildable_add):
* gtk/gtkiconview.c: (gtk_icon_view_buildable_init),
(gtk_icon_view_buildable_custom_tag_start),
(gtk_icon_view_buildable_custom_tag_end):
* gtk/gtkliststore.c: (gtk_list_store_buildable_init),
(list_store_start_element), (list_store_end_element),
(list_store_text), (gtk_list_store_buildable_custom_tag_start),
(gtk_list_store_buildable_custom_tag_end):
* gtk/gtkmain.c:
* gtk/gtknotebook.c: (gtk_notebook_buildable_init),
(gtk_notebook_buildable_add):
* gtk/gtksizegroup.c: (gtk_size_group_buildable_init),
(size_group_start_element),
(gtk_size_group_buildable_custom_tag_start),
(gtk_size_group_buildable_custom_finished):
* gtk/gtktreestore.c: (gtk_tree_store_buildable_init),
(tree_model_start_element),
(gtk_tree_store_buildable_custom_tag_start),
(gtk_tree_store_buildable_custom_finished):
* gtk/gtktreeview.c: (gtk_tree_view_buildable_init),
(gtk_tree_view_buildable_add):
* gtk/gtktreeviewcolumn.c: (gtk_tree_view_column_buildable_init):
* gtk/gtkuimanager.c: (gtk_ui_manager_buildable_init),
(gtk_ui_manager_buildable_add),
(gtk_ui_manager_buildable_construct_child),
(gtk_ui_manager_buildable_custom_tag_start),
(gtk_ui_manager_buildable_custom_tag_end):
* gtk/gtkwidget.c: (gtk_widget_get_type),
(gtk_widget_buildable_interface_init),
(gtk_widget_buildable_set_name), (gtk_widget_buildable_get_name),
(gtk_widget_buildable_set_property),
(gtk_widget_buildable_parser_finshed), (accel_group_start_element),
(gtk_widget_buildable_custom_tag_start),
(gtk_widget_buildable_custom_finshed):
* gtk/gtkwindow.c: (gtk_window_buildable_interface_init),
(gtk_window_buildable_set_property),
(gtk_window_buildable_parser_finished):
* tests/Makefile.am:
* tests/buildertest.c: (builder_new_from_string), (test_parser),
(signal_normal), (signal_after), (signal_object),
(signal_object_after), (signal_first), (signal_second),
(signal_extra), (signal_extra2), (test_connect_signals),
(test_uimanager_simple), (test_domain), (test_translation),
(test_sizegroup), (test_list_store), (test_tree_store),
(test_types), (test_spin_button), (test_notebook),
(test_construct_only_property), (test_children),
(test_child_properties), (test_treeview_column), (test_icon_view),
(test_combo_box), (test_combo_box_entry), (test_cell_view),
(test_dialog), (test_accelerators), (test_widget), (main):
Add GtkBuilder, fixes #172535
svn path=/trunk/; revision=18141
2007-06-15 17:53:46 +00:00
Yevgen Muntyan
7a0ece0429
Drop the phrase saying invisible text doesn't work ( #444236 ).
...
2007-06-05 Yevgen Muntyan <muntyan@tamu.edu>
* demos/gtk-demo/textview.c (insert_text): Drop the phrase
saying invisible text doesn't work (#444236 ).
svn path=/trunk/; revision=18044
2007-06-05 17:39:06 +00:00
Matthias Clasen
d69030de81
Fix headers in gtk-demo printing demo
...
svn path=/trunk/; revision=17669
2007-04-28 14:06:25 +00:00
Matthias Clasen
790b009703
Add a simple validation demo. Make it possible to add arbitrary children
...
2007-04-26 Matthias Clasen <mclasen@redhat.com>
* demo/gtk-demo/combobox.c: Add a simple validation demo.
* gtk/gtkcomboboxentry.c: Make it possible to add arbitrary
children to a GtkComboBoxEntry. (#426401 , Paul Pogonyshev)
svn path=/trunk/; revision=17657
2007-04-26 15:55:48 +00:00
Matthias Clasen
4f9094dc53
Add some hints about titles on about dialogs
...
svn path=/trunk/; revision=17545
2007-03-19 05:35:51 +00:00
Richard Hult
5bc2f68a5c
Close the file after it's loaded (bug #395316 ).
...
2007-01-11 Richard Hult <richard@imendio.com>
* demos/gtk-demo/main.c: (load_file): Close the file after it's
loaded (bug #395316 ).
svn path=/trunk/; revision=17132
2007-01-11 14:26:51 +00:00
Matthias Clasen
0bf8e61f8a
Fix some compiler warnings.
...
2007-01-04 Matthias Clasen <mclasen@redhat.com>
* demos/gtk-demo/textscroll.c:
* gtk/gtkhandlebox.c:
* gtk/gtkcolorsel.c: Fix some compiler warnings.
svn path=/trunk/; revision=17063
2007-01-04 14:47:29 +00:00
Matthias Clasen
501129de04
remove extra unref
2006-12-23 02:45:31 +00:00
Matthias Clasen
73614da57c
Fix some leaks. ( #348108 , Chris Wilson)
...
2006-12-22 Matthias Clasen <mclasen@redhat.com>
* demos/gtk-demo/*.c: Fix some leaks. (#348108 , Chris
Wilson)
2
2006-12-23 02:39:45 +00:00
Matthias Clasen
721c3bc101
Replace a lot of idle and timeout calls by the new gdk_threads api.
...
2006-12-22 Matthias Clasen <mclasen@redhat.com>
* *.c: Replace a lot of idle and timeout calls by
the new gdk_threads api.
2006-12-22 19:10:43 +00:00
Matthias Clasen
07e7719441
Apply a cleanup patch by Kjartan Maraas ( #341812 )
...
2006-10-08 Matthias Clasen <mclasen@redhat.com>
* Apply a cleanup patch by Kjartan Maraas (#341812 )
2006-10-08 05:07:55 +00:00