Matthias Clasen
0a44be21af
widget-factory: Make one switch start out active
...
This nicely shows off
https://bugzilla.gnome.org/show_bug.cgi?id=734213
2014-08-04 12:28:01 +02:00
Matthias Clasen
5f7485f647
gtk-demo: Drop use of deprecated api
...
There were several uses of gtk_tree_view_set_rules_hint here.
Just drop them, the theme was ignoring them anyway.
2014-08-04 10:09:18 +02:00
Matthias Clasen
97237fc54c
widget-factory: Add a linked combobox example
...
This came up in https://bugzilla.gnome.org/show_bug.cgi?id=733979
2014-08-03 11:07:25 +02:00
Matthias Clasen
5e3d6ab06b
icon-browser: Redo the icon categorization
...
Instead of slavishly following the naming spec, group the icons
into categories that are more likely to be useful for application
developers. Based on input from Allan Day and Jakup Steiner.
2014-08-02 14:00:02 +02:00
Matthias Clasen
ea1f9bff2d
icon-browser: Show category descriptions as tooltips
...
No better place for them right now.
2014-08-02 13:59:57 +02:00
Matthias Clasen
86d9628a94
icon-browser: Hide the description label when empty
2014-07-29 14:57:28 +02:00
Matthias Clasen
10412dd341
icon-browser: Don't crash on exit
2014-07-29 14:50:10 +02:00
Matthias Clasen
73f54716ad
icon-browser: Don't show empty categories
...
We don't have any icons in International, so don't show the
category. And process-working is really just a theme asset,
so don't show that either.
2014-07-29 14:07:54 +02:00
Matthias Clasen
1a99905055
icon-browser: Make the cell renderer follow state
...
This is very useful for symbolic icons.
2014-07-29 14:03:48 +02:00
Matthias Clasen
944448be1a
icon-browser: Hide the search icon until it works
2014-07-29 14:01:15 +02:00
Matthias Clasen
05d5fa43f3
wip: more icon browser rework
2014-07-29 13:59:02 +02:00
Matthias Clasen
737d15ac53
wip: rework icon browser
2014-07-29 13:59:02 +02:00
Matthias Clasen
33327d6904
icon-browser: Add open-menu to the list
2014-07-25 14:45:30 -04:00
Ignacio Casal Quinteiro
1e10bbef26
gtk-demo: include missing file on EXTRA_DIST
2014-07-23 10:43:41 +02:00
Matthias Clasen
228fe00ecc
widget-factory: Avoid a runtime warning
...
Don't set accelerators too early. GTK+ has not yet been initialized
at that point in main.
2014-07-22 15:32:45 -04:00
Matthias Clasen
eed5efec24
gtk-demo: Improve text scroll example
...
Add numbers, so the lines can be differentiated, even if they
don't move on screen.
2014-07-21 11:18:10 -04:00
Matthias Clasen
2cb1052987
widget-factory: Show accelerators
...
We set this up manually here. This could be automated by
constructing the menubar from a menu model.
2014-07-20 00:43:17 -04:00
Matthias Clasen
144083d402
widget-factory: Rename some widgets
2014-07-20 00:43:17 -04:00
Matthias Clasen
48b9b4520b
widget-factory: Add accelerators for some actions
...
With this, Ctrl-Q will close the window, and Ctrl-D will
toggle the dark theme. The accelerators are currently not
shown in the (manually constructed) menus.
2014-07-20 00:43:08 -04:00
Matthias Clasen
bbb324688f
Trivial: Move resources into the same prefix
2014-07-19 18:34:58 -04:00
Jasper St. Pierre
488ca4ab30
icon-browser: Improve the look a tiny bit
...
Add some padding and a border around the scrolled window.
2014-07-17 13:10:50 -04:00
Matthias Clasen
6557a51827
widget-factory: Mark selectable listbox rows non-activatable
...
Having them selectable is sufficient to get the hover effect.
2014-07-15 23:57:33 -04:00
Matthias Clasen
04b5c5f14a
widget-factory: Fix multi-selection example
...
It turns out that activate-on-single-click interferes with the
expected multi-selection behavior. Turn it off, since there's nothing
to activate in this list, anyway.
2014-07-14 09:17:47 -04:00
Matthias Clasen
0431ee2b57
widget-factory: Use multi-selection for the listbox example
2014-07-14 08:49:54 -04:00
Matthias Clasen
f955548f47
widget-factory: Fix a typo
2014-07-13 13:00:37 -04:00
Matthias Clasen
42d97c380e
widget-factory: Use the new ::activatable property
2014-07-13 09:26:35 -04:00
Matthias Clasen
8d70b4692f
widget-factory: Improve listbox example spacing
2014-07-13 09:04:58 -04:00
Matthias Clasen
f2c6b31e67
widget-factory: Fix the row activation example
...
Turns out ::activate on listbox rows is only for key bindings,
so use ::row-activated.
2014-07-12 17:30:25 -04:00
Matthias Clasen
3cbdbdd3e6
widget-factory: Demonstrate listbox headers
...
Add a less trivial examples of headers in the colors listbox.
2014-07-12 14:47:48 -04:00
Matthias Clasen
9b6563dcdc
widget-factory: Add some row activation to the listbox example
...
This shows some fallout from the gesture conversion.
2014-07-12 14:47:48 -04:00
Stefano Facchini
1aa54bb946
widget-factory: Do no crash on variadic arguments
2014-07-12 11:43:14 +02:00
Matthias Clasen
e54dad135c
widget-factory: Add another listbox example
...
This one is long enough to scroll, and has selection.
2014-07-12 03:31:29 -04:00
Benjamin Otte
e29d0a0a38
gtk-demo: This is not a unique app
...
When running gtk-demo a 2nd time, it's usually to compare its
output with a different version of gtk-demo.
2014-07-12 07:13:28 +02:00
Benjamin Otte
62971dd999
widget-factory: This is not a unique app
...
When running widget-factory a 2nd time, it's usually to compare its
output with a different version of widget-factory.
2014-07-12 07:13:28 +02:00
Matthias Clasen
0331dc984b
widget-factory: Add a selectable label
...
We already have selectable labels in some of the dialogs,
but this is more direct, and also shows links in labels.
2014-07-11 22:23:33 -04:00
Matthias Clasen
3780fc787c
widget-factory: Adapt to label clipping change
...
The paned examples on page 2 were implicitly relying on labels
drawing unclipped. Instead of setting the view class only on the
labels, set it on the paned's instead.
2014-07-11 21:15:03 -04:00
Matthias Clasen
797e7968f3
widget-factory: Enable even/odd rows
...
More treeview testing.
2014-07-10 07:15:33 -04:00
Matthias Clasen
f78a224e96
widget-factory: More treeview examples
...
The new treeview on page 3 sports expanders, grid and tree lines,
alternating row colors, etc.
2014-07-10 06:33:49 -04:00
Matthias Clasen
2f12fd5599
gtk-demo: Fix expand button box demo
...
Set the spacing to 0, so the buttons are actually linked.
2014-07-09 13:19:36 -04:00
Matthias Clasen
b31a310d7d
widget-factory: Use the new application resource support
2014-07-09 10:13:38 -04:00
Jakub Steiner
a673553aba
widget-factory: the menu icon name changed
2014-07-09 13:35:57 +02:00
Matthias Clasen
092c26871e
widget-factory: Use view-context-menu-symbolic
2014-07-08 06:53:30 -04:00
Matthias Clasen
04f9445302
widget-factory: Content for the action dialog
...
Dialogs look better with some actual content.
2014-07-08 06:33:19 -04:00
Matthias Clasen
59f3211b61
widget-factory: Add reorderable treeview columns
2014-07-07 14:35:33 -04:00
Matthias Clasen
3939e3ffcc
widget-factory: Fill out settings dialog
...
This gives an opportunity to use the dim-label style class.
2014-07-06 23:10:44 -04:00
Matthias Clasen
2a7bd3a2da
widget-factory: Avoid a crash on exit
2014-07-06 22:37:56 -04:00
Matthias Clasen
079e08f92d
widget-factory: Add some mnemonics
2014-07-04 16:49:55 -04:00
Matthias Clasen
58f27de927
widget-factory: Unset needs-attention too
...
This is not done automatically, so unset needs-attention when
the page becomes current.
2014-07-04 16:27:11 -04:00
Matthias Clasen
5e5ecbbf81
widget-factory: show off needs-attention stack pages
...
When clicking 'Action' in the 'Act' dialog, we mark the third
page as needing attention a second later. This unveils that we
currently don't have any theming for needs-attention in Adwaita.
2014-07-04 15:46:47 -04:00
Matthias Clasen
f64b6b3479
widget-factory: Expand the treeview example a bit
...
Show resizable, sortable and ellipsizable columns.
2014-07-02 23:55:20 -04:00
Matthias Clasen
d800203b88
gtk-demo: Only show non-symbolic icons in toolpalette
...
Otherwise, we get every icon twice. To switch between symbolic
and non-symbolic icons, this css fragment comes in handy:
* { -gtk-icon-style: symbolic; }
2014-06-30 13:28:46 -04:00
Matthias Clasen
eaa3329cde
widget-factory: Use a standard icon name
...
Using edit-find instead of search has the advantage that there
is a symbolic variant of the icon.
2014-06-30 13:24:28 -04:00
Matthias Clasen
b3b861c9d6
widget-factory: Plug a memory leak
2014-06-28 23:27:36 -04:00
Matthias Clasen
18126121a4
widget-factory: Small cleanup
...
Use gtk_builder_new_from_resource and get rid of an unneeded GError.
2014-06-28 16:22:43 -04:00
Matthias Clasen
7074776a04
widget-factory: Make the entry progress stop as well
2014-06-28 16:19:33 -04:00
Matthias Clasen
3c40082316
widget-factory: Make the entry progress variable too
...
Make the scale that currently controls the speed of the progressbar
control the progress speed in the entry as well.
2014-06-28 15:23:29 -04:00
Matthias Clasen
c389fc64f7
widget-factory: Add an icon view
...
We didn't have one before, and this gives us a chance to show off
rubberbanding and symbolic icon rendering.
2014-06-28 11:37:29 -04:00
Matthias Clasen
76eed98b36
widget-factory: Enable alpha in the color button
...
This lets us verify that the theme treats the alpha scale fairly.
2014-06-28 11:12:23 -04:00
Matthias Clasen
ad09fbbac0
widget-factory: Stop using GtkImageMenuItem
...
A plain GtkMenuItem works just fine here.
2014-06-27 21:45:33 -04:00
Matthias Clasen
d7bccbe53b
widget-factory: Stop using the deprecated GtkAlignment::left-padding
...
These alignments can just be dropped without loss.
2014-06-27 21:45:23 -04:00
Matthias Clasen
e73aa234e9
widget-factory: Don't use deprecated GtkColorButton::color
...
Instead, simply set the rgba property, which accepts the
same value.
2014-06-27 21:45:18 -04:00
Matthias Clasen
cac4050240
widget-factory: Drop redundant defaults from the .ui file
...
In particular, we drop xalign, since it is deprecated.
2014-06-27 21:40:08 -04:00
Rico Tzschichholz
aab74adbce
icon-browser: Add iconbrowser.gresource.xml to EXTRA_DIST
2014-06-26 14:04:42 +02:00
Matthias Clasen
c1d8ba930b
icon-browser: drop icons that were removed from Adwaita
...
These non-standard icons were dropped from Adwaita. Eventually,
the icon-browser code should be changed to show all standard
icons + whatever is actually in the icon theme, instead of
hardcoding a list of non-standard names.
2014-06-25 12:44:20 -04:00
Matthias Clasen
fa4301c63e
icon-browser: fix a typo
2014-06-25 06:50:39 -04:00
Matthias Clasen
d46f165636
icon browser: drop an misnamed icon
...
small-progress was just my local test icon for scaling of spinners.
2014-06-24 22:24:46 -04:00
Matthias Clasen
a5f474bc66
Add an icon browser
...
This is meant to help app authors choose the right icons.
2014-06-24 21:58:40 -04:00
Matthias Clasen
18aa240267
Forgotten file
2014-06-24 13:23:29 -04:00
Matthias Clasen
545704401e
Drop standalone pixbuf-demo
...
The same demo is included in gtk3-demo. One copy is enough.
2014-06-24 13:12:56 -04:00
Matthias Clasen
11e394b7b5
widget-factory: Fix another icon size problem
...
0 is still not a valid icon size.
2014-06-22 13:32:50 -04:00
Matthias Clasen
a5543beced
widget-factory: Fix an icon size problem
...
0 is not a valid icon size, and setting it has unpredictable
results. Replace it by 1, which is the right icon size to use
in buttons.
2014-06-22 11:52:11 -04:00
Matthias Clasen
a24ef62f4d
Big spinner
2014-06-20 15:54:17 -04:00
Matthias Clasen
f56345bbad
widget factory: Use a property action for the toolbar toggle
...
This is slightly more elegant than doing it manually.
2014-06-20 11:13:33 -04:00
Matthias Clasen
e7af95a40c
widget factory: Add a statusbar
...
A widget that is not represented in the widget factory is likely
to not get proper attention from theme authors.
2014-06-20 11:10:22 -04:00
Matthias Clasen
5ef4d71b15
widget-factory: Add some tooltips
2014-06-12 05:53:31 -04:00
Matthias Clasen
e51e8a28dd
gtk3-demo: Use monospace font for source code
2014-06-10 18:47:49 -04:00
Matthias Clasen
1e63d94a06
widget-factory: Avoid a crash
...
We want to be able to show the dialogs more than once, so just
hide them on delete.
2014-06-05 18:46:50 -04:00
Matthias Clasen
fbc3c1494f
widget-factory: Show some 'standard' dialog types
...
Add examples for the types of dialog that are mentioned
in the GNOME HIG: information dialogs, action dialogs and
preference dialogs.
2014-06-05 18:08:45 -04:00
Matthias Clasen
85a4b65f11
Trivial string change
...
Capitalize 'Expander' in the widget-factory UI.
2014-06-05 18:08:44 -04:00
Carlos Garnacho
9f8bd7a2bc
gesturezoom: Just return a double in get_scale_delta()
...
Checking whether the gesture is active is a responsibility of the caller.
2014-05-27 17:47:12 +02:00
Carlos Garnacho
8f7d5fb2c0
gesturerotate: Just return a double in get_angle_delta()
...
Whether the gesture is active or recognized should be checked before in
callers, or just not used naively.
2014-05-27 17:47:12 +02:00
Carlos Garnacho
d05a9f9a7b
gesture: Replace gtk_gesture_attach/detach with event controller API
...
Event controllers now auto-attach, and the GtkCapturePhase only determines
when are events dispatched, but all controllers are managed by the widget wrt
grabs.
All callers have been updated.
2014-05-27 17:47:12 +02:00
Matthias Clasen
f52dd9fc04
Fix a start/end mixup
...
The headerbar example in gtk3-demo was showing two start buttons
after the arrow removal.
2014-05-24 00:48:12 -04:00
Matthias Clasen
e74bb3db2a
gtk-demo: Drop use of GtkAlignment
2014-05-23 20:31:38 -04:00
Carlos Garnacho
5369c77029
gesture: Simplify gesture/widget interaction public API
...
The propagation phase property/methods in GtkEventController are gone,
This is now set directly on the GtkWidget add/remove controller API,
which has been made private.
The only public bit now are the new functions gtk_gesture_attach() and
gtk_gesture_detach() that will use the private API underneath.
All callers have been updated.
2014-05-23 19:54:29 +02:00
Matthias Clasen
c63c1caac0
gtk3-demo: Don't leak the color chooser
2014-05-23 19:54:28 +02:00
Carlos Garnacho
51b5fa3bf0
demo: Update to gesture widget-level API changes
2014-05-23 19:54:25 +02:00
Carlos Garnacho
84885c6e26
demo: Update to gesture API change
2014-05-23 19:54:23 +02:00
Carlos Garnacho
71e382cf42
gtk-demo: Add simple gestures demo
2014-05-23 19:54:22 +02:00
Matthias Clasen
49cf5142ba
Deprecate GdkColor
...
It has been replaced by GdkRGBA. Time to make it official.
http://bugzilla.gnome.org/show_bug.cgi?id=636695
2014-05-22 09:09:55 -04:00
Matthias Clasen
bd5414addb
gtk-demo: Don't use GtkArrow
...
It is deprecated now.
2014-05-22 08:32:48 -04:00
Matthias Clasen
758734a8c5
gtk3-demo: Don't leak in the sizegroup example
...
Nobody was cleaning up the size group.
Pointed out in
https://bugzilla.gnome.org/show_bug.cgi?id=645966
2014-05-13 15:50:23 -04:00
Matthias Clasen
d292245659
gtk3-demo: Fix up toolpalette demo
...
The demo appears pretty broken, because some icons are not fitting
well in the grid. Just skip the problematic icons.
2014-05-13 06:26:11 -04:00
Matthias Clasen
d67751d0cc
gtk3-demo: Drop unneeded gtk_init() call
...
GtkApplication is doing this for us.
2014-05-12 22:38:37 -04:00
Matthias Clasen
1d099fbfae
gtk-demo: Don't use margin-left/right
...
Instead, use margin-start/end, which are the non-deprecated
replacements.
2014-05-12 22:32:51 -04:00
Nikita Churaev
9187b6bae7
Populate page 2 of the Widget Factory
...
https://bugzilla.gnome.org/show_bug.cgi?id=729598
2014-05-11 10:48:37 -04:00
Nikita Churaev
73b04b5434
Don't stretch switches in Widget Factory
...
https://bugzilla.gnome.org/show_bug.cgi?id=729594
2014-05-11 10:48:22 -04:00
Cosimo Cecchi
f656fc5997
widget-factory: use same spacing for buttons column
...
So that they nicely align with entries. Useful when tweaking the theme.
2014-05-09 11:02:41 -07:00
William Jon McCann
1c30470558
widget-factory: add linked entry and button example
2014-05-07 05:03:45 -04:00
Matthias Clasen
4d36fab72a
widget-factory: populate the second page more
...
Add back a menubar example that was lost a while ago, and also
include a searchbar and an infobar.
2014-04-29 21:43:11 -04:00
Matthias Clasen
bc057d849a
widget-factory: rearrange page 2 a bit
2014-04-29 16:51:44 -04:00
Matthias Clasen
f248b21b1b
widget-factory: Add a horizontal-buttons example
...
Sadly, we don't have good icons for payment methods...
2014-04-29 06:22:28 -04:00
Matthias Clasen
f1b423e60f
Add a popover menu example to gtk3-widget-factory
2014-04-27 12:13:35 -04:00
Matthias Clasen
6cd3c73f21
Add a paned example to gtk3-widget-factory
2014-04-27 10:30:10 -04:00
Jasper St. Pierre
bd60c7b95d
gtk-demo: Make sure to clear the timeout when we stop it
2014-04-22 18:55:06 -04:00
Matthias Clasen
71fdf845a7
gtk-demo: Avoid a compiler warning
2014-04-12 22:13:40 -07:00
Matthias Clasen
e8da5ec916
widget-factory: Clean up on shutdown
2014-04-12 22:13:14 -07:00
Matthias Clasen
e087f434a3
widget-factory: Remove unnecessary signal handlers
...
quitting the mainloop when none is running gives a critical
warning on shutdown.
2014-04-12 22:12:38 -07:00
Matthias Clasen
b86f54b54a
widget-factory: Add a listbox example
2014-04-12 21:45:30 -07:00
Matthias Clasen
4e64708b3d
widget-factory: Improve actionbar appearance
...
We are using the actionbar in the middle of the window, which
is not really what it is designed for. To avoid the unfinished
appearance on the sides, move it into the frame that we have
around the stack below. This fixes the sides, but gives the top
a double stroke. Too bad.
2014-04-12 21:09:03 -07:00
Matthias Clasen
2fab389930
widget-factory: Avoid ugly resizing on map
...
The text view is resizing several times after the window is mapped.
Not setting a hscrollbar-policy of never avoids that, and a
scrollbar still doesn't appear. Magic
2014-04-12 20:46:17 -07:00
Matthias Clasen
8ccdd5b7cf
gtk-demo: Fix images demo
...
The incremental loading was broken by GtkIconHelper - queuing a
redraw is no longer sufficient to cause GtkImage to redraw with
the new pixbuf contents.
Pointed out by Jasper St. Pierre.
2014-04-12 20:40:27 -07:00
Matthias Clasen
9268ef36ab
gtk-demo: Fix the links example
...
The keynav dialog is transient to the example window; since the
example window is now modal, we need to make the keynav dialog
modal as well, so it can receive input.
Problem pointed out by Jasper St. Pierre.
2014-04-12 18:44:40 -07:00
Bastien Nocera
f71f7215ab
all: Name more idles and timeouts
...
Following up from 438cd857c4
,
name more timeouts and idles.
The original grep was missing checking for gdk_threads_add_*()
functions (at least for some of the files).
https://bugzilla.gnome.org/show_bug.cgi?id=726870
2014-03-26 20:09:30 -04:00
Matthias Clasen
454c485ebe
widget-factory: Use a popover gear menu
2014-03-26 20:04:21 -04:00
Matthias Clasen
329263f091
gtk-demo: Fix underlines
...
The iconview example was showing literal underlines. We don't want
that.
2014-03-24 07:02:44 -04:00
Phillip Wood
5aa00e4f66
gtk3-demo: run button should be able to focus.
...
https://bugzilla.gnome.org/show_bug.cgi?id=725141
2014-03-09 20:26:55 -04:00
William Jon McCann
cbbc5d474a
widget-factory: add entry progress modes
2014-02-26 11:16:06 -05:00
Giovanni Campagna
d5196ded2f
pixbuf-demo: don't lock the window size
...
What's the use of an animation demo, if you can interactively
resize it and show off how cool is your window system handling
updates?
https://bugzilla.gnome.org/show_bug.cgi?id=725172
2014-02-26 00:04:41 +01:00
Matthias Clasen
1b74e81470
gtk3-demo: set primary-toolbar style class on primary toolbars
...
This makes them draggable, and is the right thing to do.
2014-02-17 23:44:49 -05:00
Matthias Clasen
73b9d4d86b
widget factory: Style the revealer as a notification
...
Just to show that this is essentially the same as GdNotification
already.
2014-02-04 15:58:04 -05:00
Matthias Clasen
fa4bd8b042
gtk3-demo: Fix two issues with the builder demo
...
The ui file was generating a warning about AtkAction not
being implemented, and the about dialog had a missing icon.
2014-01-31 15:44:46 -05:00
Matthias Clasen
5d39c435ca
widget-factory: Add a volume button
2014-01-29 22:37:00 -05:00
Matthias Clasen
4caf302498
Remove deprecation warnings from demos and tests
...
There were a few uses of gtk_widget_get_root_window that
need to be removed.
2014-01-24 21:08:59 -05:00
Carlos Garnacho
1d495cbafd
popover: Add a "modal" boolean property to GtkPopover
...
This property is TRUE by default, when a popover is modal, it
will automatically set a GTK+ grab on the popover, and grab
the keyboard focus into the popover.
2014-01-22 17:10:06 +01:00
Carlos Garnacho
7e30b82aee
gtk-demo: Fix crash after running popovers demo
...
The GtkBuilder window containing the complex popover UI was left
dangling, and with a dangling pointer to its former child, causing
crashes on gtk_grab_notify() after the popover was destroyed.
2014-01-22 17:10:06 +01:00
Carlos Garnacho
695b979b10
gtk-demo: Add GtkPopovers demo
...
In this demo several widget create popovers with different complexities,
positions, and grabbing behavior.
2014-01-22 17:10:05 +01:00
Volker Sobek
a4d69e7f14
docs/comments: Fix spelling of 'explicitly'
...
This replaces all occurrences of 'explicitely' with 'explicitly'. Only
code comments and gtk-doc statements are affected.
https://bugzilla.gnome.org/show_bug.cgi?id=722429
2014-01-18 03:47:46 +01:00
William Jon McCann
e2c87f9dcd
demo: Add two buttons to the message dialog
...
This tests the new. prompt-like layout of message dialogs
better.
https://bugzilla.gnome.org/show_bug.cgi?id=720059
2014-01-17 17:52:07 -05:00
William Jon McCann
7ed2958943
demo: Add new button box layouts
...
This adds a test case for the new expand layout.
https://bugzilla.gnome.org/show_bug.cgi?id=720059
2014-01-17 17:52:07 -05:00
Matthias Clasen
f940a60fd5
gtk-demo: Use primary-toolbar style in the application example
...
Adwaita correctly restricts window-dragging to primary toolbars,
Mark our toolbar as primary to test this.
2014-01-12 22:25:19 -05:00
Matthias Clasen
902ebaafd5
gtk3-demo: avoid a resizing problem
...
Two changes that sneaked in during the GtkApplication port
made it so that the window would not let you shrink it again
after you've made it larger. This also yielded very surprising
results when unmaximizing the window: it would come back to
have a minimum width slightly larger than the screen, making
maximization fail from then on.
2014-01-11 18:06:06 -05:00
William Jon McCann
51d462e927
widget-factory: add actionbar
...
https://bugzilla.gnome.org/show_bug.cgi?id=721665
2014-01-07 08:46:37 -05:00
Benjamin Otte
f123fe7fe7
gtk-demo: Make double-click work again
2013-12-13 19:07:42 +01:00
Matthias Clasen
08202cb045
gtk-demo: Use title case consistently
2013-12-12 16:28:07 -05:00
Matthias Clasen
f7d4a2772b
Add a header bar example to gtk-demo
...
This is basically standalone the testtitlebar example, turned
into a demo.
2013-12-12 16:28:07 -05:00
Matthias Clasen
b6a6729ce1
Fix a segfault in the event axes demo
...
Seems that pointer_info can be NULL, after all.
2013-12-10 23:03:12 -05:00
William Jon McCann
7ba0083fc9
demo: only set transient if demo returns a toplevel
2013-12-09 09:55:39 +01:00
William Jon McCann
35a249466f
demo: put run button on the left
...
It is a bit annoying to have to go over to the right side to click it.
2013-12-09 09:26:08 +01:00
Carlos Garnacho
bd2f875141
demo: Add demo for advanced event information management
...
This demo condenses the essentials of advanced management of
input events. Depending on the information available in input events,
this demo will try to represent as much information as possible for
those.
https://bugzilla.gnome.org/show_bug.cgi?id=719987
2013-12-06 20:08:37 +01:00
Matthias Clasen
a66147dc82
gtk-demo: fix colorchooser example
...
A nested dialog on top of a modal dialog must itself be modal,
otherwise it doesn't get any input.
2013-12-03 23:30:52 -05:00
Yosef Or Boczko
d9ce2ba32f
demo: Fix the size of the run button
2013-12-03 18:44:07 +02:00
William Jon McCann
8193c8c770
demo: make demo windows transient to the main window
...
This prevents them getting lost behind.
2013-12-03 10:50:07 -05:00
William Jon McCann
e5726e97f4
demo: Add a GtkHeaderBar
2013-12-03 10:50:07 -05:00
William Jon McCann
b57109adc8
demo: change application name of inner demo
2013-12-03 10:50:07 -05:00
William Jon McCann
f115af11d2
demo: expand notebook tabs
2013-12-03 10:50:07 -05:00
William Jon McCann
70bc941b73
demo: Port to GtkApplication
...
And use GtkBuilder to construct interface.
2013-12-03 10:50:07 -05:00
Yosef Or Boczko
719dd636a9
Replace all margin-left and margin-right with margin-start and margin-end
...
https://bugzilla.gnome.org/show_bug.cgi?id=710238
2013-11-15 02:54:35 +01:00
Matthias Clasen
ea70c77867
widget-factory: Make the activity mode more complete
...
Test the 'no more pulse' situation. When the slider goes all
the way to the right towards slow, we remove the pulse timeout.
2013-11-11 07:22:51 -05:00
Matthias Clasen
4a789f5036
Make the progress bar speed variable
...
Arrange for the scales to control the speed of the activity
mode progress bar in gtk3-widget-factory. This will be useful
in demonstrating smoother progress bar animation in the future.
2013-11-10 01:15:59 -05:00
Matthias Clasen
915d70c561
Update copyright year
2013-11-09 13:39:48 -05:00
William Jon McCann
0c46807e43
widget-factory: polish the layout
...
Add a bit more breathing room and put similar widgets together.
2013-11-08 13:25:14 -05:00
Rico Tzschichholz
6ce966f24b
demo: Make sure to add gtk3-widget-factory.desktop to tarball
...
In addition to 721cdfd966
2013-11-07 23:15:55 +01:00
Rico Tzschichholz
e2ab11ac6e
demo: Make sure to add gtk3-demo.desktop to tarball
...
In addition to fc71414ada
2013-11-07 18:28:23 +01:00
Jasper St. Pierre
dd19c9fe81
widget-factory: Update copyright in about dialog
2013-11-06 12:51:53 -05:00
Jasper St. Pierre
4aa101b2c6
widget-factory: Make the About dialog actually transient
...
It's an app action, not a window action.
2013-11-06 12:50:40 -05:00
Matthias Clasen
5f9331519a
Use a big icon in the stack example
...
We used a 256x256 before. Keep doing that.
2013-11-05 21:47:29 -05:00
William Jon McCann
46cb6e8291
widget-factory: use new icon instead of gtk logo
2013-11-05 16:39:50 -05:00
William Jon McCann
628abd4e87
widget-factory: add icon
2013-11-05 16:35:05 -05:00
William Jon McCann
cdc2f07a1e
demo: use the installed named icon
2013-11-05 15:31:11 -05:00
William Jon McCann
fc71414ada
demo: Add desktop file
2013-11-05 14:14:58 -05:00
William Jon McCann
28f49f3a7e
demo: add icon
2013-11-05 14:14:57 -05:00
William Jon McCann
721cdfd966
widget-factory: add desktop file for widget factory
2013-11-05 13:18:55 -05:00
William Jon McCann
42acaac7d6
widget-factory: port to GtkApplication and GtkHeaderBar
2013-11-05 08:23:17 -05:00
William Jon McCann
3e9b58efe6
widget-factory: Add a pulsing progress bar
2013-11-04 12:22:56 -05:00
Jasper St. Pierre
0280ef3413
Make gtk-demo use the newer app icon
2013-10-07 16:30:33 -04:00
Matthias Clasen
9be38e67e3
Cosmetics
...
Make the gtk-demo listbox example follow others in window
title style.
2013-10-07 00:05:47 -04:00
Matthias Clasen
98b39ce911
Add a flow box example to gtk-demo
2013-10-07 00:05:21 -04:00
Benjamin Otte
8a85371901
widget-factory: Remove accel-groups
...
GtkMenuItem doesn't have accel groups anymore.
2013-10-06 22:24:13 +02:00
William Jon McCann
2bb01c6cc8
demo: Show popup menu on tabs
...
https://bugzilla.gnome.org/show_bug.cgi?id=707920
2013-10-02 10:51:15 -04:00
Chun-wei Fan
a3519988f5
demos/gtk-demo/toolpalette.c: Avoid C99ism
...
Avoid declaring variable at the middle of the block
2013-09-23 16:39:25 +08:00
Murray Cumming
3b0f71f5ce
demos: Fix performance in GtkToolPalette demo.
...
gtk_icon_theme_list_icons() now gets so many icons that the demo
was unusable. Limit it to 10 per group (theme context).
2013-09-16 14:10:52 +02:00
Murray Cumming
98ca9a865f
GtkWidget: Improve drag-leave and drag-data-received docs.
...
* gtk/gtkwidget.c: drag-leave signal: Document that it is called before
drag-drop.
drag-data-received signal: Document that it is up to the application
to know why the data was requested (e.g. drag motion or drop).
* demos/gtk-demo/toolpalette.c: interactive_canvas_drag_drop():
Do not transform the drop_item created in the drag-motion handler.
Instead caused drag-data-received to be called, remembering why,
and create a new item there.
interactive_canvas_drag_leave(): Remove the idle-handler hack,
now that we do not need to keep the drag-motion drop_item alive until
the drop.
I noticed that this patch was sitting in bug #605611 from 2009
though it had been approved. I do not remember much about why I
created it.
2013-09-16 14:06:14 +02:00
William Jon McCann
041b0e1861
demo: add a multi-line infobar example
2013-08-03 15:15:12 +02:00
Matthias Clasen
c636b21aec
Avoid a compiler warning
2013-08-01 10:55:49 +02:00
Matthias Clasen
a87648c1b6
gtk3-demo: Improve the infobar demo
...
Add buttons that allow to show and hide each info bar.
2013-07-31 19:04:42 +02:00
Matthias Clasen
d1a91671e4
gtk3-demo: Adapt to GtkSearchEntry api changes
...
Connect to ::search-changed instead of ::changed.
2013-07-28 21:51:45 -04:00
Matthias Clasen
cda60c3c40
Another round of template binding api changes
...
We rename the gtk_widget_class_bind_template_child{_internal}
macros by appending a _private to their name. Otherwise, it
would be too magic to pass the 'public' names as arguments,
but affect a member of the Private struct. At the same time,
Add two new macros with the old names,
gtk_widget_class_bind_template_child{_internal} that operate
on members of the instance struct.
2013-07-26 16:29:12 -04:00
Emmanuele Bassi
89ae3524a3
Rename the widget template API
...
The macros and functions are inconsistently named, and are not tied to
the "template" concept - to the point that it seems plausible to use
them without setting the template.
The new naming scheme is as follows:
gtk_widget_class_bind_template_child_full
gtk_widget_class_bind_template_callback_full
With the convenience macros:
gtk_widget_class_bind_template_child
gtk_widget_class_bind_template_child_internal
gtk_widget_class_bind_template_callback
https://bugzilla.gnome.org/show_bug.cgi?id=700898
https://bugzilla.gnome.org/show_bug.cgi?id=700896
2013-07-26 13:52:15 -04:00
Alexander Larsson
a8e84545d1
widget: Use a real offset in gtk_widget_class_automate_child
...
Using an offset from the struct means you can have children in
both the public and private (via G_PRIVATE_OFFSET) parts of the
instance. It also matches the new private macros nicer.
https://bugzilla.gnome.org/show_bug.cgi?id=702563
Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
2013-07-26 08:41:09 -04:00
William Jon McCann
fbf0b29813
demo: add a close button to the info bar demo
...
https://bugzilla.gnome.org/show_bug.cgi?id=704274
2013-07-24 17:01:42 -04:00
Emmanuele Bassi
e7461ea67b
gtk-demo/builder: Re-enable deprecated symbols
...
The demo uses GtkAction.
2013-07-20 10:55:27 +01:00
Emmanuele Bassi
76df3ba7d0
gtk-demo: Use the new macros for adding instance private data
...
https://bugzilla.gnome.org/show_bug.cgi?id=702996
2013-07-09 09:30:02 +01:00
Matthias Clasen
38b7159c39
gtk-demo: Properly cleanup the revealer demo
...
We forgot to remove the timeout.
2013-07-04 17:53:40 -04:00
Alexander Larsson
6a4f82a1f4
gtk-demo: Add demo of hidpi css assets via -gtk-scaled()
2013-07-03 14:39:25 +02:00
William Jon McCann
6f83657288
Fix the build
...
Remove references to removed files
2013-06-30 11:30:37 -04:00
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
William Jon McCann
29f9305333
Don't use stock APIs in the widget factory
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
661f24736b
widget-factory: Add new widgets
...
Add GtkStack and GtkRevealer to the second page in
gtk3-widget-factory.
2013-04-23 17:39: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
Jasper St. Pierre
cca05d1dc8
Add git.mk to more places
2013-01-24 17:47:34 -05: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
Matthias Clasen
1c9f52038b
widget-factory: Add a second page
...
The widget-factory was pretty much overflowing, so I've
made it page, and started to fill the second page with
vertical spin buttons. New examples and widgets should
be added to page 2 now.
2012-09-09 16:03:43 -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
Frédéric Péters
c2681d585e
widget-factory: add two GtkLevelBar (continuous and discrete)
2012-07-19 16:46:05 +02:00
Cosimo Cecchi
e393fdeedd
widget-factory: add a symbolic icon column in the treeview example
2012-06-26 11:41:45 -04:00
Matthias Clasen
30e5273e2b
widget-factory: Use GtkSearchEntry
2012-06-11 22:48:14 -04: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
Michael Biebl
7c038b1b33
build: Fix out-of-tree build of widget-factory demo application
...
https://bugzilla.gnome.org/show_bug.cgi?id=674192
2012-05-03 17:22:11 -07: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
Benjamin Otte
82b769ddde
widget-factory: Add spinners
...
Doesn't look very well, but if somebody cares about that, he can fix it
(hint hint)
2012-04-17 08:59:14 +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
9d0febc9a6
Change FSF Address
2012-02-27 17:06:11 +00: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
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