Matthias Clasen
5b36bd704b
widget-factory: Add a scale button
...
Instead of two volume buttons, make the second one a scale button
and use microphones.
2014-10-02 21:42:08 -04:00
Matthias Clasen
eb88ce429c
gtk-demo: Make the sidebar demo scroll
2014-10-02 18:06:02 -04:00
Ikey Doherty
cdd2651db0
Add GtkSidebar
...
GtkSidebar behaves internally much like GtkStackSwitcher, providing a vertical
sidebar like widget. It is virtually identical in appearance to the widget
currently used in GNOME Tweak Tool.
This widget is connected to a GtkStack, and builds its own contents as a
GtkListBox subclass, using the "title" child property to provide a consistent
navigatable widget.
Being a subclass of GtkListBox it benefits immediately from strong keyboard
navigation, and minimal changes are required for theming.
https://bugzilla.gnome.org/show_bug.cgi?id=735293
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
2014-10-01 00:44:46 -04:00
Matthias Clasen
6ce24d82d6
gtk-demo: Don't create 2 main windows
...
Loading a builder file with a window leaves a ghost behind, since
windows need to be explicitly destroyed. Avoid that by using
gtk_builder_add_objects_from_resource.
2014-09-25 23:57:34 -04:00
Руслан Ижбулатов
250eb1e889
Add app-menu.ui to EXTRA_DIST
2014-09-09 10:28:48 +00:00
Lapo Calamandrei
541511c89a
widget-factory: remove margin from app-notification
2014-09-04 20:18:31 +02:00
Matthias Clasen
2b643a6fd1
widget-factory: More variety in listbox content
...
Add rows with buttons and checkboxes to the listbox example
on page 2, and make the switch in row 1 toggle selection mode,
to test various cases of widgets in 'selected context'.
2014-09-02 22:25:29 -04:00
Benjamin Otte
4a6ecf33fc
gtk-demo: Don't use mad mime type guessing
...
... for displaying resources. Instead use the proven and way more
reliable method of trial and error.
It's less code and more portable for a start.
But most of all it displays PNM files as text if you fail to compile
the gdk-pixbuf loader for it.
2014-08-27 18:02:48 +02:00
Jehan
4376b4f705
Fix the build of the native gtk-update-icon-cache when cross-compiling.
...
As a noinst_PROGRAMS, the libtool generated for cross-compiling will be
used, which will mess up the linking. Create a all-local target instead.
Also ensure that building uses always a native version of the tool by
specifying a GTK_UPDATE_ICON_CACHE automake variable.
Finally "config.h" has been created to work for the target platform and
causes problem when cross-compiling. So we temporarily generate a basic
config.h which contains only the strict minimum.
2014-08-13 21:06:51 +00:00
Matthias Clasen
d47192179b
widget-factory: Avoid a compiler warning
...
This is adjusting to the draw_layer signature change.
2014-08-13 09:19:09 -04:00
Matthias Clasen
7af9dc9e21
widget-factory: Add a missing style class
...
Unfortunately, constructing image-only buttons by just adding
the image as a child does not give us the image-button style
class. Add it manually.
2014-08-13 09:18:08 -04:00
Matthias Clasen
e654fe5124
widget-factory: Don't say 'Etched out' twice
...
There's no difference between these shadow types anymore, but
it is irritating to see the same label twice.
2014-08-12 22:21:08 -04:00
Matthias Clasen
79f4d5d610
widget-factory: Improve the flow box example
...
Make the selection actually do something. This is also an opportunity
to test the new draw-layer vfunc in GtkTextView.
2014-08-12 22:14:21 -04:00
Matthias Clasen
9fab7a684b
widget-factory: Add a flowbox example
...
This is now really polished yet, but will let us work towards
'responsive grid'.
2014-08-12 20:23:05 -04:00
Matthias Clasen
c46ca9b25b
widget-factory: Make dialogs non-resizable
...
They have no reason to be.
2014-08-12 20:23:05 -04:00
Matthias Clasen
7b5e8dff9d
widget-factory: Don't use rules-hint
2014-08-12 19:06:58 -04:00
Debarshi Ray
a397824e9b
widget-factory: Add a reset button to the notification
...
Change the initial value to something that is not a multiple of 3, so
that dismissing the notification on reset makes sense. Let's use 50
because that is already being used elsewhere.
https://bugzilla.gnome.org/show_bug.cgi?id=734614
2014-08-11 23:43:43 +02:00
Debarshi Ray
5d8efb43bc
widget-factory: Turn off focus-on-click for notification close button
...
... because that is what most applications are doing. So lets do the
same thing for the sake of consistency and setting a good example.
https://bugzilla.gnome.org/show_bug.cgi?id=734614
2014-08-11 23:43:43 +02:00
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