Bastian Ilsø
52f5a78c6d
Update hello-world.c to GtkApplication, document
2015-03-09 12:17:31 +01:00
Bastian Ilsø
ec07987a90
Getting-started: port drawing.c to GtkApplication
2015-02-23 16:00:36 +01:00
Bastian Ilsø
0080224fdb
Updated grid-packing to GtkApplication.
2015-02-15 22:57:57 +01:00
Matthias Clasen
4a531ec6ab
Plug another memory leak in plugman
2015-02-01 11:07:12 -05:00
Felix Riemann
f780370499
plugman: Fix leaking attribute string
...
https://bugzilla.gnome.org/show_bug.cgi?id=743770
2015-02-01 11:06:21 -05:00
Bastian Ilsø
e9ddff907f
Get started: port example-0.c to GtkApplication
...
https://bugzilla.gnome.org/show_bug.cgi?id=743638
2015-01-28 16:31:12 -05:00
Ryan Lortie
6b26664c41
GtkMenuTracker: add hidden-when='macos-menubar'
...
Provide a mechanism for hiding the "Quit", "About" and "Preferences"
menu items from the normal places in a traditional menubar layout (in
the File and Edit menus) when the menu is being rendered in the Mac OS
menubar.
These items can already be found in the application menu.
With this feature, applications can now define a single menu to use in
all 'traditional' scenarios.
Use this new attribute in Bloatpad.
https://bugzilla.gnome.org/show_bug.cgi?id=741610
2014-12-22 06:22:26 -05:00
Matthias Clasen
eed1831caf
Trivial off-by-one fix
...
We have a tenth example.
2014-12-08 17:30:35 -05:00
Emmanuele Bassi
c55c18c23e
examples: Fix clean rule in stand alone Makefiles
...
Remove all the built files, including the exampleapp binary.
2014-12-06 13:30:24 +00:00
Emmanuele Bassi
f718bc9bc9
examples: Add stand alone Makefile for application10
...
Missed out on the last application examples.
2014-12-06 13:25:01 +00:00
Matthias Clasen
5438e53f5c
Use resources for icons
...
This fixes icons after the recent directory reshuffling, and
is just the right thing to do, since these icons are in resources
anyway.
2014-12-02 21:00:24 -05:00
Matthias Clasen
6f10ed2711
Improve action-namespace example
...
This needs to have some space around the button for the popover
to show up.
2014-12-02 21:00:24 -05:00
Emmanuele Bassi
92f6771564
docs: Add a README to the examples directory
...
https://bugzilla.gnome.org/show_bug.cgi?id=741041
2014-12-02 19:23:50 +00:00
Emmanuele Bassi
3b2cf140a2
Add standalone Makefile for the examples
...
We want to allow people to build the examples easily, without
necessarily requiring them to build the whole of GTK+.
https://bugzilla.gnome.org/show_bug.cgi?id=741041
2014-12-02 19:23:50 +00:00
Matthias Clasen
f85093a136
Beautify example Makefiles a bit
2014-11-29 00:26:52 -05:00
Matthias Clasen
380ca9bc56
Make include order consistent in example applications
...
Pointed out in
https://bugzilla.gnome.org/show_bug.cgi?id=740537
2014-11-28 23:57:16 -05:00
Benjamin Otte
5018c7f7cb
examples: Add deprecation guards
...
Apparently it's not possible in GtkTextView to say "this style should
apply to all text, including newly inserted text. Or I'm just too stupid
to use its API.
So instead, keep using override_color().
2014-10-12 05:51:11 +02:00
Matthias Clasen
2ddbca7ba5
bloatpad: Add a close button to the accel dialog
2014-07-19 19:42:56 -04:00
Matthias Clasen
db189a892b
Update examples for new open-menu icon
2014-07-15 21:31:13 -04:00
Matthias Clasen
46bc284165
Use view-content-menu-symbolic in example apps
2014-07-08 08:30:56 -04:00
Rico Tzschichholz
eec6deba90
build: Fix make dist
2014-07-08 10:13:39 +02:00
Matthias Clasen
6818388b32
Bloatpad: fix up icons
...
The references to png files were doubly broken: first, by the icon
theme changes, and more recently, by the move of bloatpad. Fix them
up.
2014-07-07 16:27:38 -04:00
Ryan Lortie
cc1af0f71c
bloatpad: use Gtk's automated menu loading
...
We move our menus.ui file into Gtk's namespace so that it will get
picked up. Accordingly, we no longer have to do any of the work for
ourselves...
https://bugzilla.gnome.org/show_bug.cgi?id=722092
2014-07-07 14:46:28 -04:00
Ryan Lortie
b40672f145
bloatpad: use resources
...
https://bugzilla.gnome.org/show_bug.cgi?id=722092
2014-07-07 13:37:38 -04:00
Ryan Lortie
4d8b2af13a
bloatpad: move into private subdir
...
Move bloatpad to ./examples/bp/ so that we can start treating it as more of a
"normal" app instead of just jamming everything into a single .c file.
We don't use the name "bloatpad" for the directory in order not to
create 'git pull' pain with the probably-already-existing executable of
the same name.
https://bugzilla.gnome.org/show_bug.cgi?id=722092
2014-07-07 13:37:38 -04:00
Matthias Clasen
c3a9a20839
examples: Don't use gtk_application_add_accelerator
...
It has been deprecated.
2014-05-22 08:51:58 -04:00
Matthias Clasen
cdfcd5fc85
Bloatpad: port to new accel api
2014-05-06 10:58:52 -04:00
Matthias Clasen
c923ea9bc4
example: Use popover for gears menu
2014-04-17 22:55:40 -04:00
Matthias Clasen
763250e04d
example: Make gears button square
...
Another application of image-button.
2014-04-17 22:55:40 -04:00
Matthias Clasen
35f4243315
example: Make search button square
...
The image-button style class takes care of it.
2014-04-17 22:55:39 -04:00
Matthias Clasen
fcba75c2ba
example: Modernize the prefs dialog
...
We should show the current best practice for this kind of
dialog, and use a headerbar with a window close button.
2014-04-17 22:55:39 -04:00
Matthias Clasen
b718b95aab
example: Port to gtk_application_set_accels_for_action
...
Instead of hardcoding an accelerator in the ui file, use
gtk_application_set_accels_for_action.
2014-04-17 22:55:38 -04:00
Matthias Clasen
25ce82d5b3
example: Fix indentation
2014-04-17 22:55:37 -04:00
Matthias Clasen
c502ff73fe
example: Fix up margins
...
This makes the code match what we show in the screenshots. This
broke when headerbars were changed to allow titles to extend into
the margin.
2014-04-17 22:55:37 -04:00
Matthias Clasen
f521dddaed
example: Don't set a nonexisting property
...
The GtkHeaderBar::show-fallback-app-menu property does not exist,
and isn't needed anyway.
2014-04-17 22:55:36 -04:00
Ryan Lortie
2bcb4fc354
bloatpad: test hidden-when=''
...
Cook up some silly cases to test out the hidden-when='' attribute.
- make sure hidden-when='action-missing' shows/hides items based on
actions being created and destroyed
- make sure hidden-when='action-disabled' shows/hides items based on
actions being enabled and disabled
- make sure hidden-when='action-missing' doesn't hide items when the
action is merely disabled
https://bugzilla.gnome.org/show_bug.cgi?id=688421
2014-01-08 14:21:19 -05:00
William Hua
6b865d5312
Add icon menu to bloatpad.
...
https://bugzilla.gnome.org/show_bug.cgi?id=710351
2014-01-08 02:20:21 -05:00
Giovanni Campagna
f7c5dfdeef
bloatpad: fix the action associated with the notification
...
Notifications can only be associated with application actions,
but clear is a window action. Introduce a "clear-all" action
that forwards to clear on all windows.
https://bugzilla.gnome.org/show_bug.cgi?id=721633
2014-01-06 16:36:45 +01:00
Ryan Lortie
2841c0ec54
bloatpad: test inhibit
...
Add an inhibit for logout when there is context in the text buffer.
2013-12-16 13:51:22 -05:00
Jasper St. Pierre
d9f92424b2
headerbar: Support all kinds of CSD decorations
...
Move the gtkwindow.c CSD code into GtkHeaderBar, and make it triggerable
by the show-close-button property, and remove shows-fallback-app-menu.
https://bugzilla.gnome.org/show_bug.cgi?id=720233
2013-12-12 19:30:59 -05:00
Matthias Clasen
055e4722f5
Add the new exampleapp to the docs
2013-11-16 17:04:30 -05:00
Matthias Clasen
7265d9d9ad
Add another example application
...
This new step sets the headerbar as titlebar, and enables
fallback for the app menu.
2013-11-16 16:09:56 -05:00
Matthias Clasen
cf627b2878
Test headerbar app menu fallback
...
Make the sunny example useful by giving it a header bar
with app menu fallback. To test this under gnome-shell,
set APP_MENU_FALLBACK=1 in the environment.
2013-11-16 01:55:01 -05:00
Matthias Clasen
111120297c
Add some (silly) GNotification example
...
Bloatpad can now notify you.
2013-10-21 17:23:44 -04:00
Ryan Lortie
db7115d841
bloatpad: test dynamic accels
...
...this stuff will be in the action description soon.
2013-10-15 09:24:12 -04:00
Xavier Claessens
8e9dd8c3aa
Add example app for GtkSearchBar
...
https://bugzilla.gnome.org/show_bug.cgi?id=709745
2013-10-10 14:48:12 -04:00
Ryan Lortie
587012a2f9
action-namespace example: use non-deprecated function
...
g_simple_action_group_add_entries() is deprecated since we added the GActionMap
interface, so use its equivalent function instead.
2013-10-01 09:36:23 -04:00
Jasper St. Pierre
2d27e7e978
examples: Use git.mk
2013-08-07 06:18:07 -04:00
Matthias Clasen
c9c8272028
Make examples use search-changed signal
...
This updates the examples for the new GtkSearchEntry api.
2013-08-02 00:56:00 +02:00
Matthias Clasen
c9ce98714d
example: Use declared callbacks where possible
...
Replace manual signal connections with signal handlers
declared in the ui file, where possible.
2013-07-27 21:00:33 -04:00