Bastien Nocera
d704f2bd2e
gtk: Add GtkSearchEntry
...
Add a search entry widget with the recommended behaviour implemented.
As used in gnome-control-center, Totem, gnome-documents and many others.
https://bugzilla.gnome.org/show_bug.cgi?id=652809
2012-06-11 19:02:55 +01:00
Matthias Clasen
5c76c1b059
Silence compiler warnings
2012-05-30 14:28:16 -04:00
Cosimo Cecchi
21342cbfde
gtk-demo: unify Theming and CSS theming sections
2012-05-30 13:17:23 -04:00
Cosimo Cecchi
887d83b685
gtk-demo: display tabs for CSS files in theming demos
2012-05-30 13:17:23 -04:00
Cosimo Cecchi
46f967dd7a
gtk-demo: don't try to add tabs for empty filenames
2012-05-30 13:17:23 -04:00
Cosimo Cecchi
c5629fd06a
gtk-demo: add a demo for CSS multiple backgrounds
2012-05-30 13:17:23 -04:00
Cosimo Cecchi
561e24b77b
gtk-demo: move styling for the CSS editor to a separate file
...
So it can be shared by multiple demos
2012-05-30 13:17:23 -04:00
Cosimo Cecchi
98fa2a39bc
gtk-demo: add a test for a CSS accordion
2012-05-30 13:17:23 -04:00
Benjamin Otte
6461105429
main: Don't overrun the file that's read
2012-05-30 13:17:23 -04:00
Benjamin Otte
075b259321
gtk-demo: Make CSS a resource
...
Also, improve the CSS to give you that basic feel.
2012-05-30 13:17:22 -04:00
Benjamin Otte
6c7f99d01e
gtk-demo: Include resources in main app
...
This is necessary for future changes
2012-05-30 13:17:22 -04:00
Benjamin Otte
45d0313001
gtk-demo: Rename resources file
...
More tests want to use resources, so make that possible.
2012-05-30 13:17:22 -04:00
Benjamin Otte
04e8a8a5ed
gtk-demo move application demo resources into a namespace
2012-05-30 13:17:22 -04:00
Benjamin Otte
3d98275961
gtk-demo: Add a name property to the demos
2012-05-30 13:17:22 -04:00
Benjamin Otte
8a5f08976d
gtk-demo: Add a simple example for theming
2012-05-30 13:17:22 -04:00
Matthias Clasen
aee7544d99
gtk-demo: Add a help stock menuitem
2012-05-26 12:08:52 -04:00
Matthias Clasen
46cc815829
Add a custom css example
2012-05-25 22:03:47 -04:00
Matthias Clasen
ebe4595cdb
Update window title
2012-05-25 20:50:35 -04:00
Matthias Clasen
5e7f8e4333
gtk-demo: Move Theming to Theming/Style Classes
...
And make the title :: parsing work for nested titles too,
so this works.
2012-05-25 20:40:47 -04:00
Matthias Clasen
1d72682332
Forgotten file
...
This change to geninclude.pl.in is needed to make my commit
91d01434bc
work.
2012-05-25 20:25:43 -04:00
Matthias Clasen
6480f3c685
gtk-demo: Add a theming example
2012-05-18 01:23:45 -04:00
Matthias Clasen
91d01434bc
gtk-demo: Show data files as well
...
Several demos use .ui files and the like. The demos are much
more useful if these files can be inspected in the ui as well.
2012-05-18 00:48:57 -04:00
Matthias Clasen
fc86f2af1d
gtk-demo: Update language in colorsel demo
...
We're no longer demoing GtkColorSelection, it is GtkColorChooser now.
2012-05-17 22:13:00 -04:00
Matthias Clasen
4e18e5f687
gtk-demo: fix the tool palette demo
...
The palette was confined to its minimal size, when in horizontal mode.
2012-04-27 08:30:05 -04:00
Alexander Larsson
516fb89065
gtk-demo: Find gtk-demo-application.exe on win32
...
We need to append the ".exe" extension when looking for the
application file on windows.
2012-04-20 16:00:48 +02:00
Matthias Clasen
b1c28151f6
gtk-demo: fix the colorsel example
...
It is necessary to hide the dialog on "response", else it won't
go away.
2012-03-02 09:57:53 -05:00
Benjamin Otte
05d438ebe2
gtk-demo: Fix gcc warnings
2012-03-01 05:32:09 +01:00
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
Cosimo Cecchi
92322a63f5
gtk-demo: use the new GtkColorChooserDialog in the color demo
2012-02-14 16:37:02 -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
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
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