William Jon McCann
32ce8fa60a
Remove deprecated UIManager from the demo
2013-06-30 11:19:50 -04:00
Matthias Clasen
c6d7540508
Trivial rewording
...
Make the listbox demo follow the naming convention of the
other demos.
2013-06-28 16:01:44 -04:00
Benjamin Otte
7e69eb8ffd
gtk-demo: Fix compile warnings
2013-06-26 15:51:31 +02:00
Benjamin Otte
a35102aa45
gtk-demo: Remove unused variable
2013-06-26 15:51:31 +02:00
William Jon McCann
708dd8cc52
Remove usage of stock APIs in demo
...
With the exception of GtkAction.
2013-06-24 14:50:01 -04:00
Alexander Larsson
b18c938b14
gtk-demo: Add GtkListBox demo
2013-06-18 16:10:22 +02:00
Bastien Nocera
dbbea8b97e
Add GtkSearchBar widget
...
This widget is a toolbar that will popup automatically when
searches should be started, and dismissed when they are finished.
https://bugzilla.gnome.org/show_bug.cgi?id=700787
2013-05-31 17:09:11 +02:00
Bastien Nocera
51e238653d
GtkSearchEntry: Delay the changed signal by default
...
Emit the "changed" signal after 150 msecs, so that searching
through big lists, or doing online searches feels more responsive.
This is something already done in various applications to make
search-as-you type more responsive (gnome-shell, gnome-documents,
gnome-control-center, etc.). The 150 msecs is the value currently
used by gnome-shell, so keep it (invisibly) consistent.
https://bugzilla.gnome.org/show_bug.cgi?id=700229
2013-05-17 19:45:46 +02:00
Benjamin Otte
ecaf09c918
build: remove --disable-rebuilds
...
It's unused and was only useful when perl wasn't installed. But perl is
a dependency of glib these days, so it's useless.
2013-05-09 19:09:50 +02:00
Matthias Clasen
265e617f0a
gtk-demo: Include config.h first
...
If config.h is included after gdkversionmacros.h, _GDK_EXTERN
gets redefined and cpp doesn't like that.
2013-05-05 15:38:46 -04:00
Matthias Clasen
0b3461ff1b
gtk-demo: Don't include config.h needlessly
...
It is not needed here.
2013-05-05 15:38:46 -04:00
Matthias Clasen
86688c6fde
Add a revealer example to gtk-demo
...
I tried to make a 'revealer ballet'. Judge for yourself if
I succeeded.
2013-04-22 12:42:39 -04:00
Matthias Clasen
49511c7f42
Add a GtkStack example to gtk-demo
2013-04-21 21:51:27 -04:00
Volker Sobek
efaacea1d2
gtk-demo: Fix typo
...
https://bugzilla.gnome.org/show_bug.cgi?id=675649
2013-04-14 09:04:57 -04:00
Benjamin Otte
f2263afb19
gtk-demo: Remove multiscreen support
...
There's only one screen per display, so no need to let users select from
a list of that 1 screen.
2013-04-06 10:47:55 +02:00
Chun-wei Fan
b1aa23f4bd
Bug 695895: Fix gtk3-demo on Windows
...
In commit 4e41577b
, we are using g_content_type_is_a() to determine how
to display the demo resources in the right pane of the gtk3-demo program.
Use g_content_type_get_mime_type(), so that we can obtain the mime
type of the demo resources on all platforms, as g_content_type_guess()
returns a platform-specific string, as
https://developer.gnome.org/gio/2.35/gio-GContentType.html states.
As .ui files and .css files are normally registered with a different mime
type string on Windows, check for those strings as well.
This will ensure the demo resources can be properly displayed on Windows
as well.
2013-03-26 16:59:16 +08:00
Benjamin Otte
46ef9a83bb
gtk-demo: Create new textbuffers for new source/info texts
...
This is so we can prepare these buffers without them being set on the
widgets yet and only gtk_text_view_set_buffer() them afterwards. And
this in turn gets rid of all the a11y events we were needlessly
emitting.
https://bugzilla.gnome.org/show_bug.cgi?id=694406
2013-02-26 15:56:51 +01:00
Owen W. Taylor
983e266fad
Convert pixbuf animation demo (both copies) to GdkFrameClock
...
Use the frame clock instead of a 50ms timeout to animate the
spinning pixbufs.
https://bugzilla.gnome.org/show_bug.cgi?id=694302
2013-02-21 09:59:58 -05:00
Alexander Larsson
e89a2f0bfd
gtk3-demo: Fix up resource handling
...
We're not loading css files via resouce uris, as we want
to support editing, so we need to use absolute references
to any included resources.
2013-02-14 23:01:19 +01:00
Matthias Clasen
154a144cf6
Remove remnants of localization from gtk-demo
...
gtk-demo isn't localized at this point.
https://bugzilla.gnome.org/show_bug.cgi?id=681578
2013-02-11 16:52:37 -05:00
Cosimo Cecchi
ce869921ab
Don't use gtk_scrolled_window_add_with_viewport() in tests
...
https://bugzilla.gnome.org/show_bug.cgi?id=693015
2013-02-01 22:58:55 -05:00
Matthias Clasen
ab71224021
Use consistent capitalization of demo titles
2013-02-01 21:59:09 -05:00
Matthias Clasen
5271ea34d1
Avoid perl warnings
...
Apparently, defined is not cool anymore.
2013-02-01 21:58:34 -05:00
Matthias Clasen
e975f10c7f
Make the text look a bit nicer
...
Add a margin around the text, and some space between the title
and the body of the info tab.
2013-02-01 21:56:25 -05:00
Matthias Clasen
ee6e7d6433
Set the notebook to be scrollable
...
The pixbufs example has just too many files..
2013-02-01 21:46:07 -05:00
Matthias Clasen
d1f9adad08
Revert "Forgotten file"
...
This reverts commit 1d72682332
.
2013-02-01 20:17:53 -05:00
Matthias Clasen
cf1eecca6b
Don't strip whitespace from ui files
...
That turns them into gibberish when we show them in the ui.
2013-02-01 20:17:13 -05:00
Benjamin Otte
5607a2125f
gtk-demo: Fix geniclude.pl.in to not look for extra files
...
This was supposed to be fixed in
0866772819
but I fixed the generated
geninclude.pl. Oops.
2013-02-02 01:42:45 +01:00
Benjamin Otte
bc473257c7
gtk-demo: Replace logo with a transparent one
...
That way, we don't have to make it transparent in all the demos.
2013-02-01 21:57:40 +01:00
Benjamin Otte
b3d1121d78
gtk-demo: Move resources into the tests they belong
...
This also gets rid of the nasty @import("resource:///...") lines in the
css files.
2013-02-01 21:57:40 +01:00
Benjamin Otte
ba24f39d95
gtk-demo: Remove custom CSS demo
...
Custom CSS is something that we don't want to advertise as there are too
many pitfalls for using it correctly. So remove the demo for it.
2013-02-01 21:57:40 +01:00
Benjamin Otte
80fc684dd8
gtk-demo: Remove file lists from demo data
...
We can get it from parsing resources now, so no need to manually add
them.
2013-02-01 21:57:40 +01:00
Benjamin Otte
4e41577b46
gtk-demo: Display all resources on the right side
...
This way, people know what stuff we are loading.
And instead of listing all the files in the top (and forgetting things),
we just take them from the resources list.
2013-02-01 21:57:39 +01:00
Benjamin Otte
f44eec0f6b
gtk-demo: Stop installing files
...
As everything is handled via resources now, there's no need to install
the files anymore.
2013-02-01 17:44:13 +01:00
Benjamin Otte
ad69528bde
gtk-demo: Remove demo_find_file() function
...
It's not used anymore. With it, the demo-common.h header is not needed
anymore and is removed, too (and all the needless includes).
2013-02-01 17:44:13 +01:00
Benjamin Otte
75937d925c
gtk-demo: Load icon from resource
2013-02-01 17:42:45 +01:00
Benjamin Otte
0866772819
gtk-demo: Display extra files from resources
2013-02-01 17:42:45 +01:00
Benjamin Otte
73e203b290
xxx: Add source files
2013-02-01 17:42:45 +01:00
Benjamin Otte
aaab99bb4d
gtk-demo: Don't use subfolders for resources
...
This confuses the notebook that is displaying them.
2013-02-01 17:42:45 +01:00
Benjamin Otte
7acf6296f4
gtk-demo: Don't use aliases for filenames
...
This is necessary so the files displayed in the left notebook match the
files referenced in the source code.
2013-02-01 17:42:45 +01:00
Benjamin Otte
159dabd0a5
gtk-demo: Port pixbufs example to resources
2013-02-01 17:42:45 +01:00
Benjamin Otte
68ee7c6848
gtk-demo: Port textview example to resources
2013-02-01 17:42:45 +01:00
Benjamin Otte
a4749d4f3a
gtk-demo: Port images example to resources
2013-02-01 17:42:44 +01:00
Benjamin Otte
32903fc753
gtk-demo: Port images example to GInputStream
2013-02-01 17:42:44 +01:00
Benjamin Otte
8bdfd35d9c
gtk-demo: Port iconview example to use resources
2013-02-01 17:42:44 +01:00
Benjamin Otte
cf6a40830c
gtk-demo: Port appwindow example to resources
2013-02-01 17:42:44 +01:00
Benjamin Otte
4f93194039
gtk-demo: Port builder example to resources
2013-02-01 17:42:44 +01:00
Benjamin Otte
704fc3724f
gtk-demo: Make printing example use resources
2013-02-01 17:42:44 +01:00
Benjamin Otte
39d198cd5a
gtk-demo: Load sources from resources
2013-02-01 17:42:43 +01:00
Benjamin Otte
a0e68bec52
gtk-demo: Load the demo files using g_file_get_contents()
...
... instead of massaging a FILE* with flockfile() and ungetc().
2013-02-01 17:42:43 +01:00
Benjamin Otte
05abba3acb
gtk-demo: Include the source files as resources
2013-02-01 17:42:43 +01:00
Alexander Larsson
9d659d8a77
Remove accidental commit that broke gtk3-demo
...
A piece of test code accidentally snuck into a commit that
made gtk3-demo not find its data files, this patch just
reverts that change.
2013-01-29 11:55:05 +01:00
Matthias Clasen
b12d7dfcd6
Plug two memory leak
...
g_resources_lookup_data returns a GBytes that must be unreffed.
2013-01-20 23:11:24 -05:00
Alexander Larsson
ada20f475d
broadway: Make /dev/shm names nicer
2013-01-10 23:59:23 +01:00
Benjamin Otte
9a88a47d33
gtk-demo: Beautify a demo
...
Use auto for the background size instead of 100% to avoid uglyfying the
background byt blurring it when the window gets larger.
2012-10-01 16:06:33 +02:00
Benjamin Otte
f1bae7f1ff
gtk-demo: Use explicit resource:// urls in CSS
...
... because we load the data from a GtkTreeView::changed callback, the
relative directory is cwd. And we want the resources...
2012-10-01 15:53:18 +02:00
Benjamin Otte
ec829be39f
gtk-demo: Add missing file to resources
2012-10-01 15:53:17 +02:00
Benjamin Otte
c6a78d76bd
gtk-demo: Add a CSS shadows demo
2012-09-21 18:50:50 +02:00
Matthias Clasen
fc1169279e
gtk-demo: fancier css demo
...
Thanks to Lapo Calamandrei.
2012-09-17 17:41:50 -04:00
Benjamin Otte
677941dc48
gtk-demo: Add animated pixbufs example
2012-09-17 20:39:11 +02:00
Matthias Clasen
5b13b72287
gtk-demo: Plug 2 small memleaks
2012-09-16 00:49:04 -04:00
Matthias Clasen
d9c2f40a5d
gtk-demo: Plug another small memleak
2012-09-15 16:17:02 -04:00
Matthias Clasen
1bf656f25f
gtk-demo: Plug a small memleak
2012-09-13 20:04:38 -04:00
Timothy Arceri
2ab8e75319
Use new printer setting to reduce code required by application
...
Updated demo to use new setting that allows an application to change the
output filename without the need to create the uri itself.
https://bugzilla.gnome.org/show_bug.cgi?id=676787
2012-08-25 17:47:55 -04:00
Matthias Clasen
746b9d7c41
demos: Don't use GDK_THREADS_ENTER/LEAVE macros
...
We don't use threads here, so no need to use them.
2012-07-30 18:01:47 +02:00
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