Matthias Clasen
131c225598
Merge branch 'wip/jimmac/app-icons' into 'master'
...
Wip/jimmac/app icons
Closes #1658
See merge request GNOME/gtk!572
2019-02-09 15:09:59 +00:00
Matthias Clasen
a72b91ec94
Fix icon installation
...
This makes the apps pick up their awesome new icons.
2019-02-08 21:38:14 -05:00
Matthias Clasen
e0dac3ab73
widget-factory: Reinstate some lost properties
...
The code in gtk-builder-tool to preserve properties
has a bug, It lost these.
2019-02-08 10:34:32 -05:00
Matthias Clasen
4ace873046
Update ui files to new stack syntax
...
This conversion was done with the help of gtk4-builder-tool.
2019-02-08 00:09:44 -05:00
Matthias Clasen
ad9c2a624f
stack: Convert child properties to a child meta object
...
Create a GtkStackPage public object which holds the former
child properties of GtkStack.
Adjust all callers.
2019-02-08 00:09:44 -05:00
Jakub Steiner
786322426a
app icons: use new style
...
- update symbolic and fullcolor icons to use the new style
See https://gitlab.gnome.org/GNOME/Initiatives/issues/2 for more info.
Fixes issue #1658
2019-02-06 16:01:14 +01:00
Matthias Clasen
3489ed087d
Merge branch 'kill-buttonbox' into 'master'
...
Drop GtkButtonBox
See merge request GNOME/gtk!554
2019-02-05 13:06:09 +00:00
Emmanuele Bassi
589cb19715
demos: Drop the '+' from GTK
...
The demos have user-visible text that should refer to "GTK", not "GTK+"
any more.
2019-02-05 10:19:57 +01:00
Matthias Clasen
5120748981
Drop GtkButtonBox
...
This widget does not seem worth keeping,
and we want to get rid of child properties.
2019-02-04 12:44:55 -05:00
Matthias Clasen
57542e0cf6
icon browser: Add on and off icons
...
These are going to be used internally.
2019-01-24 20:43:12 -05:00
Matthias Clasen
70db084d43
Fix gtk4-icon-browser
...
It was broken by a recent GtkDialog change that renamed
the internal vbox child to content_area.
2019-01-24 20:43:12 -05:00
Matthias Clasen
883d5d8584
box: Remove the position child property
...
The position child property is problematic, since it
requires us to emit notification for all children when
inserting a child early in the list of children.
Remove the property from all ui files.
2019-01-23 19:30:47 -05:00
Timm Bäder
e9e40ddb42
box: Remove gtk_box_pack_start
2019-01-23 19:30:46 -05:00
Timm Bäder
494e9d750a
dialog: Expose the content area as a separate GtkBox child
...
This way, the "vbox" internal child does not contain anything by
default. It previously did contain "internal" widgetry like the action
area.
2019-01-23 19:30:46 -05:00
Timm Bäder
3a13515777
Stop using GtkBox's pack-type child prop in UI files
2019-01-23 19:30:46 -05:00
Timm Bäder
bd71e744d2
Stop using gtk_box_pack_end
...
It might soon go away!
2019-01-23 19:30:46 -05:00
Timm Bäder
c6da0c9a7a
demo: Fix tranparency overlay demo
...
We'd like the rose picture to be bigger than 16×16. Also remove the
scrolledwindow since the GtkPicture now automatically scales down the
rose image. This also fixes the picture always being allocated at y=0.
2019-01-13 08:23:25 +01:00
Timm Bäder
9d3120cc1e
popover demo: Fix size-allocate callback signature
2019-01-03 08:56:40 +01:00
Jeremy Bicha
462193ae26
demos/gtk-demo/combobox: fix typo
...
Fix typo that prevented the P-S submenu from displaying correctly
2018-12-09 23:30:38 -05:00
Timm Bäder
a2a4603329
Merge branch 'bye-app-menu-gtk4' into 'master'
...
widget-factory: move app menu contents to primary menu (gtk4)
Closes #916
See merge request GNOME/gtk!365
2018-12-04 14:32:22 +00:00
Timm Bäder
ade171a2ed
widget: Don't pass a position to ->size_allocate
...
The values have been 0/0 for a long time now, so just drop the
GtkAllocation argument and replace it with width and height.
2018-11-13 16:28:54 +01:00
Daniel Boles
9cbd3ac017
gtk-demo/main: Suppress implicit fallthru warning
...
Comments matched to reassure the compiler that fallthrough is
intentional are supposed to precede the case or default keywords, at
least in GCC, so the one here did not suppress the warning with GCC. We
can just the if condition and put the comment at the end to solve that.
https://developers.redhat.com/blog/2017/03/10/wimplicit-fallthrough-in-gcc-7/
2018-10-12 22:19:25 +01:00
Jeremy Bicha
52bcf7fd46
widget-factory: Add Keyboard Shortcuts menu item
...
Closes: https://gitlab.gnome.org/GNOME/gtk/issues/916
2018-09-30 20:43:53 -04:00
Jeremy Bicha
43997fb550
widget-factory: Rename About menu item to About Widget Factory
...
This follows the recommendation in
https://gitlab.gnome.org/GNOME/Initiatives/wikis/App-Menu-Retirement
2018-09-30 20:43:51 -04:00
Jeremy Bicha
c59669d376
widget-factory: Move app menu contents to primary menu
...
GNOME Shell 3.32 will remove support for the app menu
so we need to move its contents to the primary (hamburger)
menu.
widget-factory already had a primary menu.
The only item in the app menu was About.
https://gitlab.gnome.org/GNOME/Initiatives/issues/4
2018-09-30 20:43:41 -04:00
Matthias Clasen
ca9aa23619
Add devel style to demos
...
Lets show this off. Its cool.
2018-09-05 20:10:41 -04:00
Timm Bäder
d246abd085
fishbowl: Use a GtkPicture for videos
2018-08-25 08:06:37 +02:00
Guido Günther
8fb8303ba0
demos: Make desktop file names match the application id
2018-08-02 12:15:43 +02:00
Carlos Garnacho
8f6f980e49
demos: Update changedisplay demo to using GtkGesture
2018-07-30 13:14:12 +02:00
Carlos Garnacho
85f6995511
demos: Update hypertext demo to use controllers
2018-07-30 13:14:12 +02:00
Carlos Garnacho
4d59a00074
demos: Update search_entry2 demo to use key capturing API
...
No more GdkEvent juggling.
2018-07-30 13:14:12 +02:00
Carlos Garnacho
2dbb1509d8
demos: drop "Event axes" demo
...
It's too lowlevel to be practical anymore with gtk4, and there's
the Paint and Gestures demos to demonstrate input capabilities
better than this.
2018-07-30 13:14:12 +02:00
Carlos Garnacho
101c927c40
gtk-demo: Add pad controller handling to "Paint" demo
...
So it's more lifelike.
2018-07-30 13:14:12 +02:00
Matthias Clasen
7dabc2a42c
Merge branch 'master' into 'master'
...
widgetfactory: add separator tool item to presentation
See merge request GNOME/gtk!249
2018-07-19 18:06:25 +00:00
Günther Wutz
1d4ce5a544
widgetfactory: add separator tool item to presentation
2018-07-17 21:50:19 +02:00
Benjamin Otte
cbb1e74bb5
textview: Only create cairo context in gtktextdisplay.c
...
Everything else is done using GtkSnapshot now, including renaming the
draw_layer vfunc to snapshot_layer.
2018-07-14 05:27:54 +02:00
Benjamin Otte
2f72353e0e
gtk-demo: Update aspect-ratio when selecting new puzzle
2018-07-13 14:56:04 +02:00
Timm Bäder
2cc6a3ee5c
widget factory: Use GtkPicture for background selection
...
Showing those background images as 16×16 icons doesn't look very nice.
2018-07-08 21:50:59 +02:00
Timm Bäder
96812450fa
listbox demo: Hide extra_buttons_box by default
...
It should only show up when hovering the row.
2018-07-08 09:41:15 +02:00
Matthias Clasen
7733f646d6
gdk: Rename GdkDragContext to GdkDrag
...
This is to go along with the newly introduced GdkDrop.
This commit includes the necessary updates to the X11, Wayland
and Broadway backends. Other backends have to be updated separately.
2018-07-02 14:59:26 +02:00
Carlos Garnacho
e08e15ba51
gtkentry: Use gestures for entry icons
...
Instead of doing all handling manually in the ::event vfunc,
set up drag/multipress gestures on icon images, and implement
emission of ::icon-press/release and DnD there.
As a side effect, the GdkEvent field in ::icon-press/release
signals has been dropped. Callers that might be interested on it
may still use gtk_get_current_event*().
2018-06-21 12:50:57 +02:00
Benjamin Otte
9a91d3739d
widget: Remove time argument from drag_data_get() vfunc
2018-06-18 23:49:53 +02:00
Benjamin Otte
6d7cb2b781
dnd: Make drag-data-received use a GdkDrop
2018-06-18 23:49:52 +02:00
Руслан Ижбулатов
10b2f6540a
Fix wrong format strings in various places
2018-06-10 21:20:59 +00:00
Benjamin Otte
896f72d33b
gtk-demo: Use GtkImages to select the puzzle
2018-06-10 02:25:55 +02:00
Benjamin Otte
7690c2d042
gtk-demo: Make sliding puzzle demo use GtkPicture
2018-06-10 02:25:28 +02:00
Benjamin Otte
cbd47fa770
gtk-demo: Port images demo to use a GtkPicture in places
2018-06-10 02:23:02 +02:00
Matthias Clasen
9d48a95d9a
puzzle: fix some compiler warnings
...
These slipped under the radar, sorry.
2018-06-09 19:39:43 -04:00
Matthias Clasen
1ee23d0d49
puzzle: Add mouse support
...
Make it so that clicking on a puzzle piece moves enough
pieces to move the empty space there, if it is possible.
2018-06-07 21:47:30 -04:00
Matthias Clasen
ebf042d305
puzzle: Use plain labels
...
The previous code looked cool in the UI, but was too much
of a hack in the code.
2018-06-07 21:47:30 -04:00