| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Stop using gdk_surface_create_similar_surface here.
|
|
|
|
|
|
|
|
|
| |
In certain scenarios, address the issue where gnome.compile_resources
fails to transmit the present source directory. This is most notably
visible with MSBuild.
|
| |
|
| |
|
|
|
|
|
| |
GtkDialog is too flexible in terms of UI (headerbars vs action bar,
etc), and has archaic APIs. It is time to retire it.
|
| |
|
|
|
|
| |
Replace GtkComboBoxText with GtkDropDown+GtkStringList.
|
|
|
|
|
|
| |
For now, just ignore deprecations. Eventually,
we will have to go through, drop demos that are
for wholly deprecated widgets, and update others.
|
| |
|
|
|
|
|
|
|
| |
This shows how to use a layout manager in a widget,
implemented in javascript. The example sets up the
environment for running from the toplevel dir, assuming
that the build dir is called 'build'.
|
|
|
|
|
|
| |
Amend LD_PRELOAD instead of replacing it, so you can just
point it at the right libgtk-4.so while running squares.py
from elsewhere.
|
|
|
|
|
|
|
| |
This shows how to do custom drawing in a widget,
implemented in python. The example sets up the
environment for running from the toplevel dir,
assuming that the build dir is called 'build'.
|
|
|
|
|
| |
Simplify the code a bit and make the window
match the existing screenshot.
|
|
|
|
|
| |
This can serve as a useful example for how to add
themed icons as resources.
|
|
|
|
| |
Make it look more like a toolbar.
|
|
|
|
| |
Make this dialog a bit less of an eyesore.
|
|
|
|
| |
The sunny icon doesn't exist anymore.
|
|
|
|
|
| |
The frame in the drawing example adds nothing
and looks wrong.
|
|
|
|
|
| |
We want to test building against the installed GTK
in ci, so lets add a standalone project.
|
|
|
|
| |
This was lost at some point.
|
|
|
|
|
| |
The example series only has 9 steps now. Remove remnants
of step 10.
|
|
|
|
|
| |
No need to check requires for things that are shipped
with GTK.
|
|
|
|
|
|
|
|
| |
Some people read the "Getting Started" section as a series of
incremental lessons, and having the examples go from GtkApplication to
the old style "init / spin the main loop" confuses them.
We should be using GtkApplication everywhere in our examples.
|
|
|
|
|
| |
Replace all uses on check buttons by the corresponding
check button api.
|
|
|
|
|
|
|
| |
Add a paragraph about running the example apps
uninstalled in the README, and verify that the
standalone Makefiles actually work. Hint: some
didn't.
|
|
|
|
|
|
|
| |
Rename GtkGridLayoutChild:left-attach/top-attach to
GtkGridLayoutChild:column/row. Update all users.
Fixes: #2967
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Most of the time show-title-buttons is set to TRUE. Go ahead and make that
the default.
|
|
|
|
|
|
|
| |
In 99.9% of all cases, these are just NULL, NULL.
So just do away with these arguments, people can
use the setters for the rare cases where they want
the scrolled window to use a different adjustment.
|
|
|
|
| |
The appmenu-related GtkApplication apis are going away.
|
| |
|
| |
|
| |
|
|
|
|
| |
These are all on GtkBox or enumerating children.
|
|
|
|
|
| |
Replace calls to gtk_widget_destroy on windows
with gtk_window_destroy.
|
|
|
|
|
|
|
|
|
| |
Redo this series of examples from 2013, and adapt it to modern
way of doing things. The biggest differences are that we use
a headerbar right from the start, and don't mention the app
menu.
Fixes: #2730
|
|
|
|
|
| |
This signal is a replacement for this (ab)use
of the ::size-allocate signal, which is going away.
|
|
|
|
|
| |
Replace all uses of gtk_container_add on overlays
by gtk_overlay_set_child.
|
| |
|
|
|
|
|
| |
Replace all uses of gtk_container_add on windows
by gtk_window_set_child.
|
|
|
|
|
| |
Replace all uses of gtk_container_add on popovers
by gtk_scrolled_window_set_child.
|
|
|
|
|
| |
Replace all uses of gtk_container_add for
frames with gtk_frame_set_child.
|
|
|
|
|
|
|
|
| |
Use window title, or custom title widget if it's set. Remove 'title'
property.
Update demos and tests to set the title on the window instead of
headerbar.
|
|
|
|
|
| |
Frames that don't draw frames are not very useful,
so just drop the shadow-type property.
|
|
|
|
|
|
| |
The only place where we are still using <Primary> is
in tests, to ensure we keep parsing it. Otherwise,
<Control> is now the preferred syntax.
|
|
|
|
|
|
| |
And fix all the warnings and errors generated by doing so.
See #2491
|
|
|
|
| |
Replace it with margin-start, -end, -top, -bottom throughout.
|
|
|
|
|
| |
Stop using gtk_main and gtk_main_quit in tests and
examples. These APIs are on the way out.
|