Matthias Clasen
d053d5c58f
Rename Makefile references from 3.0 to 4.0
...
This is almost certainly incomplete.
Needs careful scrutiny
2016-10-07 10:34:50 -04:00
Piotr Drąg
4a4ef04020
bloatpad: replace single quotes with double quotes in menus.ui
...
Double quotes are more friendly to some l10n tools, and this sets
a good example for application authors to follow.
2016-09-24 18:17:34 +02:00
Mohammed Sadiq
22ae9d0884
examples: use G_DECLARE_FINAL_TYPE in applications
...
G_DECLARE_FINAL_TYPE was introduced in glib 2.44.
We shall use that now so that lots of boilerplate code can
be reduced.
https://bugzilla.gnome.org/show_bug.cgi?id=770278
2016-09-10 09:01:08 -04:00
Matthias Clasen
22b6df025e
Fix example Makefiles
...
Put OBJS before LIBS on the commandline to make things
work better.
https://bugzilla.gnome.org/show_bug.cgi?id=768142
2016-07-03 13:54:11 -04:00
Matthias Clasen
4aa257b663
bloatpad: Make shortcuts window update
...
This tests the just added functionality to make shortcuts
track changes in their actions accelerators.
2016-04-17 13:42:14 -04:00
Matthias Clasen
268243834a
Add a help overlay to bloatpad
...
This will let us explore the (non-)interaction between
help overlays and editing shortcuts.
2016-04-17 13:42:14 -04:00
Matthias Clasen
492ea59698
examples: Strip newlines from g_warning and g_error
...
g_logv adds one for us already.
2016-02-28 12:23:12 -05:00
Matthias Clasen
213f74fe82
tutorial: Drop excessive margin from headerbar
...
It is no longer necessary to add extra margins around the
center child in a headerbar.
2016-02-27 23:28:17 -05:00
Emmanuele Bassi
9aae351487
examples: Clean up the standalone Makefiles
...
Do not hardcode GCC as the compiler; use $(shell) expansion instead of
backticks; split the built source into its own variable.
2015-05-26 18:01:39 +01:00
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