| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Missed out on the last application examples.
|
|
|
|
|
|
| |
This fixes icons after the recent directory reshuffling, and
is just the right thing to do, since these icons are in resources
anyway.
|
|
|
|
|
| |
This needs to have some space around the button for the popover
to show up.
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=741041
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
Pointed out in
https://bugzilla.gnome.org/show_bug.cgi?id=740537
|
|
|
|
|
|
|
|
| |
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().
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=722092
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
It has been deprecated.
|
| |
|
| |
|
|
|
|
| |
Another application of image-button.
|
|
|
|
| |
The image-button style class takes care of it.
|
|
|
|
|
| |
We should show the current best practice for this kind of
dialog, and use a headerbar with a window close button.
|
|
|
|
|
| |
Instead of hardcoding an accelerator in the ui file, use
gtk_application_set_accels_for_action.
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
The GtkHeaderBar::show-fallback-app-menu property does not exist,
and isn't needed anyway.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=710351
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Add an inhibit for logout when there is context in the text buffer.
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
This new step sets the headerbar as titlebar, and enables
fallback for the app menu.
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Bloatpad can now notify you.
|
|
|
|
| |
...this stuff will be in the action description soon.
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=709745
|
|
|
|
|
| |
g_simple_action_group_add_entries() is deprecated since we added the GActionMap
interface, so use its equivalent function instead.
|
| |
|
|
|
|
| |
This updates the examples for the new GtkSearchEntry api.
|
|
|
|
|
| |
Replace manual signal connections with signal handlers
declared in the ui file, where possible.
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
This example demonstrates property actions and object binding.
|
|
|
|
|
|
|
|
| |
Setting up the icon and desktop file is a pretty central part
of making an application work, so we should do it for our example.
The fact that the examples are uninstalled makes this a little
more complicated.
|
|
|
|
|
| |
When using 'Words' without a loaded document, the example
would crash. Thats not nice, so avoid it.
|
|
|
|
|
|
|
|
| |
I disconnected signals in dispose() to avoid a visible-tab
change notification during destruction, but this is clunky.
Instead, make the notify::visible-tab signal handler bail out
early when called during destruction.
|
|
|
|
|
| |
The use of a manually-specified enum is a little unusual.
This is really meant to be done by <choices>.
|
|
|
|
| |
Make the new examples use GTK+ coding style.
|