Matthias Clasen
90f330e27a
Merge branch 'gesture-click' into 'master'
...
Rename GtkGestureMultiPress to GtkGestureClick
See merge request GNOME/gtk!878
2019-05-29 18:39:09 +00:00
Matthias Clasen
a8899cc6a3
window: Drop gtk_window_set_position
...
This is heavily using global coordinates, and
can't be guaranteed to work across wms / platforms.
2019-05-29 18:04:08 +00:00
Matthias Clasen
7f65e5f96b
Rename GtkGestureMultiPress to GtkGestureClick
...
The name just made it hard for people to find the
right gesture to use.
2019-05-29 17:10:46 +00:00
Matthias Clasen
461e8e0218
places sidebar: Don't derive from scrolled window
...
We can just have a scrolled window, instead.
2019-05-28 22:35:36 +00:00
Matthias Clasen
c638a0aa59
Adwaita: Remove Emoji completion special case
...
We can use GtkPopover::has-arrow now.
2019-05-28 20:25:16 +00:00
Matthias Clasen
25aef96d5d
popover: Rename modal to autohide
...
This is the term we use for the surface,
and it matches the behavior a bit better
than modal.
Update all callers.
2019-05-28 20:25:15 +00:00
Matthias Clasen
0eb7784785
Update all users for menubutton changes
2019-05-18 13:06:32 +00:00
Florian Müllner
66c8a996f9
dialog: Use default decoration for non-custom headerbars
...
There are two ways GTK can add a headerbar to a dialog:
- the dialog is constructed with the :use-header-bar property
- all windows should use client-side decorations
In the first case, the headerbar is added by GtkDialog with no
dedicated style class, and in the latter by GtkWindow with the
"default-decoration" style.
As a result, dialogs with plain titlebars can end up with clearly
distinct and inconsistent styles.
To address this, allow headerbars to track whether they should use
the "default-decoration" style and enable it for dialogs.
https://gitlab.gnome.org/GNOME/gtk/merge_requests/836
2019-05-12 20:09:03 +00:00
Matthias Clasen
1318d3748a
about dialog: Fix page visibility
...
The handling of page visibility broke when the dialog
was ported to GtkStackPage in 52b83ac553
.
Closes: https://gitlab.gnome.org/GNOME/gtk/issues/1877
2019-05-12 18:20:52 +00:00
Matthias Clasen
6fe203d0e2
emoji chooser: Make Escape work again
...
Escape is expected to close the Emoji chooser.
2019-05-04 18:18:20 +00:00
Timm Bäder
ccdf50aafd
filechooserwidget: Fix rename popover widget alignment
2019-04-30 05:36:20 +02:00
Matthias Clasen
92e21c3f1c
Drop the can-default property
...
It was added at a time when default buttons
had a very large external border that would disrupt
aligment. Not a problem nowadays.
2019-04-28 23:28:39 +00:00
Timm Bäder
5a1c37a8c8
filechooserwidget: Use a center box for the search entry
...
This way we can avoid a slight position offset when we show or hide the
spinner during a search.
2019-04-28 11:30:13 +02:00
Timm Bäder
b75bc8aa64
filechooserwidget: Allow keynav from the treeview to the search entry
2019-04-28 11:27:42 +02:00
Matthias Clasen
fed2db1493
window: Drop some x11-specific apis
...
The skip-taskbar, skip-pager and urgency hints were
only ever implemented for X11, and are not very useful
with modern desktops. Relegate the functionality to
x11 backend api, and drop the GtkWindow api.
2019-04-20 02:28:46 +00:00
Emmanuele Bassi
cfcca335b1
Update GtkGrid definitions in GtkBuilder files
...
Convert packing properties to layout ones.
2019-04-05 00:08:18 +01:00
Matthias Clasen
700183e5b6
Convert ui files
...
Run gtk4-builder-tool simplify --3to4 over all ui files.
2019-03-28 16:37:21 -04:00
Matthias Clasen
dec2cf49dd
Merge branch 'child-properties' into 'master'
...
Remove some more child properties
See merge request GNOME/gtk!675
2019-03-28 02:04:42 +00:00
Matthias Clasen
396deb44fa
Convert ui files
...
Run gtk4-builder-tool simplify --3to4 over all ui files.
2019-03-27 21:48:12 -04:00
Matthias Clasen
be944e0a31
file chooser: Stop setting a role
...
It does nothing.
2019-03-27 17:29:17 -04:00
Matthias Clasen
7ac250dea7
Convert all ui files
...
Run gtk4-builder-tool simplify --3to4 over all ui files.
2019-03-27 13:36:24 -04:00
Matthias Clasen
66b6824876
print dialog: Use notebook pages in ui file
...
This is the new way of doing things.
2019-02-21 00:31:17 -05:00
Matthias Clasen
eb8b1095c8
emoji chooser: Don't use entry api on search entries
...
Use editable api, and cut through to the text widget
where necessary.
2019-02-20 10:32:12 -05:00
Matthias Clasen
37b841b59b
font chooser: Use editable api on search entry
2019-02-19 00:25:59 -05:00
Matthias Clasen
d327d3fab2
assistant: Use a stack
...
We don't use any non-stack features of the notebook here.
2019-02-15 10:23:48 -05:00
Matthias Clasen
2bd93303c4
Merge branch 'included-icons' into 'master'
...
Included icons
See merge request GNOME/gtk!580
2019-02-13 03:33:16 +00:00
Matthias Clasen
16026b6898
page setup dialog: Use theme icons
...
We have non-gtk-specific icons in the icon theme for this
now, so drop the gtk-orientation icons and use the theme
ones instead.
2019-02-12 21:37:02 -05:00
Timm Bäder
aa71b6c405
Rever more of the icon shadow commit
...
Even adjusting the icon size is wrong for GTK4.
2019-02-12 06:33:41 +01:00
Matthias Clasen
2d57cb6ce3
Revert a non-working addition
...
Cell rendererers don't support <style> in ui files.
2019-02-12 06:20:14 +01:00
Jakub Steiner
756e8f3189
Theme: add helper class names for Adwaita
...
- helps legibility of app icons
Addresses https://gitlab.gnome.org/GNOME/gtk/issues/1434
2019-02-12 06:19:22 +01:00
Matthias Clasen
52b83ac553
about dialog: Adapt to new stack visiblity handling
...
We need to set the visible property of the stack pages
now.
2019-02-12 00:10:54 -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
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
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
99738e7059
assistant: Fix button order in ui file
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
ab6a67dbeb
combobox: Stop using GtkBox's pack-type property
...
Reorder the child widgets accordingly instead.
2019-01-23 19:30:46 -05:00
Matthias Clasen
28241cecff
about dialog: Use ::activate-link for license
...
This should behave the same as all the other links
in this dialog.
Closes : #1561
2019-01-18 17:31:56 -05:00
António Fernandes
7601bca758
placesview: List only available protocols as available
...
We display a list of supported protocols in the server_addresses_popover.
However, this curated list contains protocols which may or may not be
available, depending on the respective gvfs backend being installed.
So, populate the list only with protocols which are available.
https://gitlab.gnome.org/GNOME/gtk/issues/1476
2018-12-14 12:30:52 -05:00
Matthias Clasen
4e86858405
Make color picker circular
...
The need for center alignment was pointed out by Timm Baeder.
2018-08-04 21:42:28 -04:00
Ernestas Kulik
94162197a1
sidebarrow: Hide busy_spinner by default
...
Since the original implementation was likely based on GTK+ 3, the change
in default visibility might have not been considered, which results in
all rows suddenly sporting a visible spinner when opening a fresh file
chooser.
2018-08-03 13:29:07 +03:00
Matthias Clasen
c5afea0c6b
Merge branch 'gtk-4-add-spinner-to-sidebar-row' into 'master'
...
gtkplacessidebar: Show busy spinner in sidebar row during mount ops
See merge request GNOME/gtk!261
2018-07-30 12:04:05 +00:00
Carlos Garnacho
cdfde6673d
gtkcombobox: Use controller to handle combobox keybindings in menus
...
Instead of an ::event callback.
2018-07-30 13:14:12 +02:00
Matthias Clasen
984274497d
color editor: Add a color picker button
...
The button is shown if we have a GtkColorPicker implemenation.
Currently, there are none, so the button is never shown.
2018-07-27 14:23:20 -04:00
segfault
791da76ae1
gtkplacessidebar: Show busy spinner in sidebar row during mount ops
2018-07-27 16:44:50 +02:00
Carlos Garnacho
3eb1b22651
gtkfontchooser: Use GtkEventControllerKey
...
Use an event controller on GtkFontChooserDialog, a nice side effect
is that we can use gtk_event_controller_key_forward() and
gtk_search_entry_set_key_capture_widget() instead of passing events
around for dialog search.
2018-06-21 12:50:57 +02:00
Carlos Garnacho
4186a85359
gtkfilechooserwidget: Drop usage of ::event vmethod
...
Use a key controller set up in the UI file instead.
2018-06-21 12:50:57 +02:00
Benjamin Otte
45d78f360f
video: Use a Picture instead of an Image
2018-06-10 02:23:02 +02:00
Benjamin Otte
4f3058f195
eventcontrollermotion: Port to new API model
2018-04-26 17:59:42 +02:00
Benjamin Otte
74dbb057ed
eventcontrollerscroll: Port to new API model
2018-04-26 17:59:42 +02:00
Benjamin Otte
31de97749a
filechooser: Put event controllers into ui file
2018-04-26 17:59:41 +02:00
Benjamin Otte
fa97236b62
placesviewrow: Put event controllers into ui file
2018-04-26 17:59:41 +02:00
Benjamin Otte
0d7cf79b00
emojichooser: Put event controllers into ui file
2018-04-26 17:59:41 +02:00
Benjamin Otte
40a082de10
aboutdialog: Put event controllers into ui file
2018-04-26 17:59:41 +02:00
Matthias Clasen
1104a8fdb7
Add an emoji completion popup
...
This widget provides entry completion-like functionality
for Emoji codes like 😁 or 💋 .
2018-04-23 18:54:43 -04:00
Matthias Clasen
df386f29ab
combo box: Stop using ::key-press-event
...
Switch to using ::event.
2018-04-05 19:26:54 +02:00
Matthias Clasen
c971ca7c34
color editor: Stop using ::key-press-event
...
Use key event controllers instead.
2018-04-05 19:26:53 +02:00
Matthias Clasen
4990842981
about dialog: Stop using ::key-press-event
...
Use a key event controller instead.
2018-04-05 19:26:53 +02:00
Matthias Clasen
6d1b21a028
places view: Stop using ::key-press-event
2018-04-05 19:26:53 +02:00
Matthias Clasen
19bd57ed1f
file chooser: Use a key event controller
...
We want to get rid of ::key-press-event.
2018-04-05 19:26:53 +02:00
Matthias Clasen
5a68ac27cf
font chooser: Make the language property writable
...
This is meant as an input to the font chooser.
We don't want the user to select a language, but
rather have fonts presented as they would work for
the current language. Therefore, do away with the
lang/script combo on the tweak page.
2018-04-02 13:37:53 -04:00
Daniel Boles
7b0387efbf
emojichooser.ui: Add i18n context to all tooltips…
...
…since, unlike in gtk-3-22, it's not just Objects that already had that
here in the title labels. Thanks to Piotr for spotting this!
2018-03-29 19:38:04 +01:00
Daniel Boles
072ce56617
emojichooser.ui: Reuse headings as button tooltips
...
https://bugzilla.gnome.org/show_bug.cgi?id=792632
2018-03-29 19:18:28 +01:00
Benjamin Otte
7cf6da60da
gtk: Add GtkVideo
...
GtkVideo is a simple video player widget. It probably needs some more
configurability, but it does its job.
2018-03-18 21:01:23 +01:00
Benjamin Otte
9700a98f48
gtk: Add GtkMediaControls
...
This is a basic first implementation of controls for a GtkMediaStream,
modeled after Totem's UI.
2018-03-18 21:01:23 +01:00
Benjamin Otte
634717d0b9
gtk: Remove unused header files in gtk/ui/
2018-03-02 02:00:25 +01:00
Timm Bäder
b726f60f90
searchbar: reorganize
...
Avoid the ugly priv->tool_box==NULL check in ::add (and ::remove) by
just not using template xml for this small class. Also, make sure the
GtkBin child is properly set and implement remove to also properly
remove it. Remove the manual widget margins and add some CSS for it.
Also switch to simply using a GtkCenterBox.
2018-02-04 22:51:16 +01:00
Timm Bäder
baa3df51ad
searchbar: Remove unused widgets
...
both box_left and box_right are unused.
2018-02-04 17:28:03 +01:00
Benjamin Otte
55874470ff
gtk: Remove GtkRecentChooser
...
It's not used any more, recent files are only used by the filtchooser
and that one uses GtkRecentManager directly.
2018-02-02 23:01:31 +01:00
Matthias Clasen
351559fcfa
Simplify all ui files again
...
Now even simpler!
2018-01-18 17:53:44 -05:00
Timm Bäder
41dac661a0
fontchooswerwidget: Center spinbutton next to scales vertically
2018-01-18 09:40:19 +01:00
Matthias Clasen
8dcafc597c
recent chooser: Stop using ::button-press-event
...
We can just use a multipress gesture here.
2018-01-16 14:14:10 -05:00
Matthias Clasen
270b6d3a84
file chooser: Use a multipress gesture
...
This replaces the use of ::button-press-event. There's two
issues with this commit:
1) We don't have a good way to do the equivalent of
gdk_event_triggers_context_menu with gestures
2) We have to defer to and idle to avoid ordering
issues with the treeviews own gestures
2018-01-16 14:14:10 -05:00
Matthias Clasen
f042d7a9a8
app chooser: Use a gesture
...
Instead of connecting to ::button-press-event, use
a multipress gesture here.
2018-01-16 14:14:10 -05:00
Matthias Clasen
e733aa43cf
color editor: stop using ::focus-out-event
...
Again, the has-focus property is sufficient.
2018-01-16 14:14:10 -05:00
Matthias Clasen
7e491fd3fc
font chooser: Stop using ::scroll-event
...
We have an event controller for this purpose now.
2018-01-16 14:14:09 -05:00
Matthias Clasen
c4513a6737
dialog: Stop using the ::delete-event signal
...
We can achieve the desired result with a class handler
and the ::hide-on-close property.
2018-01-16 14:14:09 -05:00
Timm Bäder
62ccf8743a
filechooser: Manage spinner state
...
So we don't get an allocate every frame.
2018-01-04 12:20:27 +01:00
Matthias Clasen
4cc68a97a8
font chooser: Support font variations
...
Add sliders for the available axes to the tweak page.
2018-01-03 13:28:33 -05:00
Matthias Clasen
ade33c6e14
Add font features on the tweak page
2018-01-03 12:18:18 -05:00
Matthias Clasen
15f8b2d0ae
font chooser: Add a tweak page
...
Add a button the dialog's header bar that lets us
switch to a second page where we can customize
the selected font.
Make the font chooser widget export an action that the
dialog can use for the button. This has some advantages:
- we can export not just the toggle state, but also enabled
- we can reuse the same enabled state to make the select
button insensitive when no font is selected
To determine whether a font is selected, listen to changes
of the list selection. And ensure that the font chooser is
in an initial state when mapped, even if we close the dialog
from the tweak page.
2018-01-03 12:18:18 -05:00
Matthias Clasen
f0526359d1
font chooser: introduce font chooser levels
...
This is a more systematic approach to reducing the
level of detail in the font chooser.
2018-01-03 12:18:18 -05:00
Matthias Clasen
c176d0c3d8
Simplify ui files
...
Run gtk3-builder-tool simplify over all our ui files.
2017-12-26 23:12:37 -05:00
Matthias Clasen
5478bd59bf
Fix a crash introduced in the previous commit
...
The signatures of row-inserted and row-deleted are not
identical, so we need to be a bit more careful here.
2017-12-19 14:17:55 -05:00
Matthias Clasen
1b05474979
font chooser: Simplify some code
...
Instead of separate handlers, just keep a single
handler for both row-inserted and row-deleted.
Slightly less work that way.
2017-12-19 12:10:47 -05:00
Matthias Clasen
c30cd885dd
A forgotten file
...
These changes belong to the scale button autoscrollling
commit.
2017-12-12 23:23:17 -05:00
Matthias Clasen
2f6f8a7e6f
path bar: Drop non-functional hold-to-scroll code
...
Scrolling a path bar is of marginal usefulness - you need to
find a really deep place in your filesystem hierarchy in order
to scroll one or two places at best. And the code we had for
this was not working. And it was using legacy event handlers.
Instead of fixing it, remove it.
2017-12-12 20:49:31 -05:00
Matthias Clasen
3aa6890e3e
about dialog: Stop using event-after as well
...
We can just use a multipress gesture for this purpose.
2017-12-12 09:42:05 -05:00
Matthias Clasen
56a41f174e
about dialog: Stop using motion notify
...
We can use the new motion event controller for this.
2017-12-12 09:42:05 -05:00
Matthias Clasen
029a84aa74
Fix fallout from the show-close-button rename
...
I had overlooked ui files. We should really
validate those during build.
2017-12-08 11:29:14 -05:00
Matthias Clasen
77d12c0451
recent chooser: Stop specifying stock-size
...
We were using a no-longer-existing numeric value here,
and we can just rely on the theme to set this now.
2017-12-01 10:30:21 -05:00
Matthias Clasen
2301d8d90b
enums: Change GtkIconSize values
...
The new values are the ones we intend to keep. The old ones had
duplicated meanings and nobody knew which one to take.
2017-11-15 14:22:17 -05:00
Matthias Clasen
5d86d209e9
Don't set child position in a ui file
...
It is not necessary, and causes assertions in some of
our tests.
2017-10-10 19:40:29 -04:00
Matthias Clasen
8e1ef3620a
printing: Some fixes to the print dialog
...
Hide widgets that are meant to be hidden initially, and use
the right spin button apis.
2017-10-06 22:33:55 -04:00
Julius Härtl
a1635b6188
gtkplacessidebar: implement libcloudproviders support
...
Add integration of the libcloudproviders DBus API to the
GtkPlacesSidebar by showing name and sync status of the cloud providers.
The exported menu is rendered as a GtkPopover.
The sidebar will be updated if the list of cloudproviders changes e.g.
by adding or removing an account. If any cloud provider changes detailed
information like sync status only the individual sidebar row gets
updated.
Co-authored-by: Carlos Soriano <csoriano@gnome.org>
Co-authored-by: Daniel Boles <dboles@src.gnome.org>
https://bugzilla.gnome.org/show_bug.cgi?id=786123
2017-09-04 11:32:03 -04:00
Matthias Clasen
d27c552630
emoji chooser: No emoji in the search entry
...
Recursion is fun, but better avoided in the ui.
https://bugzilla.gnome.org/show_bug.cgi?id=786960
2017-09-02 08:47:17 -04:00
Daniel Boles
da76699757
SidebarRow: Add Unmount tooltip to eject_button
...
It was reported that the lack of a tooltip made its purpose unclear.
This can be solved by just copying PlacesViewRow’s eject_button tooltip.
https://bugzilla.gnome.org/show_bug.cgi?id=766909
2017-08-23 21:41:50 +01:00
Matthias Clasen
c6c1619646
Add an Emoji chooser widget
...
Add a popover that shows color Emoji, with a search entry.
The recently-used Emoji are stored in a GSetting.
2017-08-12 18:48:14 -04:00
Matthias Clasen
c250dddb00
Use the right gettext domain
...
Most of our .ui files were still using the gtk30 domain,
despite the library having switched to gtk40. Fix this.
2017-08-05 18:17:29 -04:00
Benjamin Otte
6b7503b83e
placessidebar: Remove EventBox usage
2017-08-02 14:05:02 +01:00
Benjamin Otte
464ffad23e
placesview: Remove event box usage
2017-08-02 14:05:02 +01:00
Timm Bäder
9bf5def6b7
statusbar: Inherit from GtkWidget
2017-07-19 21:27:16 -04:00
Timm Bäder
3252630a4b
aboutdialog: Remove unused image
2017-07-19 21:27:15 -04:00
Timm Bäder
3505e0d6e7
filechooserwidget: Add GtkFileChooserErrorStack
...
Showing all the different errors and warnings when renaming and creating
files/folders without potentially resizing popovers on every keystroke
requires us to know the size of the error messages beforehand, so pack
all of the possible error messages and warnings in labels and those into
a stack. This way we can also neatly crossfade transition between them.
https://bugzilla.gnome.org/show_bug.cgi?id=775636
2017-07-18 15:11:26 -04:00
Timm Bäder
20d47e2a6c
filechooserwidget: Let the rename entry hexpand
...
This makes a difference with other locals where error messages are
longer than the standard width of entry+spacing+button.
https://bugzilla.gnome.org/show_bug.cgi?id=775636
2017-07-18 15:11:26 -04:00
Timm Bäder
03bfdce406
sidebarrow: Remove useless size group
...
Nice try, but size groups don't work with invisible widgets anyway.
Invisible widgets request 0×0.
2017-04-28 11:27:08 +02:00
Timm Bäder
fb927d1993
box: Remove center child
2017-04-25 20:30:37 +02:00
Timm Bäder
c92b7d4224
box: Remove fill child property
...
GtkWidget:halign and GtkWidget:valign are sufficient
2017-04-25 20:30:37 +02:00
Timm Bäder
5729ea7744
box: Remove expand child property
...
GtkWidget already has hexpand/vexpand properties.
2017-04-25 20:30:37 +02:00
Carlos Soriano
72d13535b7
gtkplacesview.ui: Remove translatable from server label helper
...
Translating it seems pointless if we can use a non-translatable example
such as gnome.org instead of foo.example.com.
This will help to make changes in here without breaking string freeze.
https://bugzilla.gnome.org/show_bug.cgi?id=781622
2017-04-22 21:53:45 +02:00
Timm Bäder
1a7cbddbd4
statusbar: Remove margins in ui file
...
Widgets themselves shouldn't have margins assigned.
2017-03-31 09:50:40 +02:00
Timm Bäder
cf80a03f91
appchooserwidget: Inherit from GtkWidget
2017-03-31 09:50:39 +02:00
Timm Bäder
fc22543b41
fontchooserwidget: Inherit from GtkWidget
2017-03-31 09:50:39 +02:00
Timm Bäder
806c4f7d2f
filechooserwidget: Inherit from GtkWidget
2017-03-31 09:50:38 +02:00
Daniel Boles
69d2459471
combobox—Remove useless button-press-event handler
...
We use toggled, which does everything we need; this adds nothing useful.
Credit to Timm for noticing this—I didn’t when moving it to the ui file.
2017-02-16 21:09:55 +00:00
Timm Bäder
07643764a6
infobar: Use GtkButton:icon-name
2017-02-05 15:03:35 +01:00
Timm Bäder
56a58655fe
Remove unnecessary gtk_widget_show calls
2017-01-22 14:38:21 +01:00
Daniel Boles
8c980445e3
combobox: Move area and menu to .ui file
...
Now that priv->area is guaranteed to be constructed by us, and not
passed in by a user, we can move it to the .ui file and stop manually
managing its lifetime altogether. And once the area is there, we can
move the menu there too (and stop pointlessly destroying/rebuilding it).
2017-01-21 21:34:46 +00:00
Timm Bäder
b1408c9694
fontbutton: Be a GtkWidget
2017-01-20 21:51:03 +01:00
Timm Bäder
3ec15d98fa
Fix some widget visibility fallout
2017-01-20 21:37:08 +01:00
Timm Bäder
f4341ee9f7
widget: Remove show-all property
...
Doesn't make sense anymore now that gtk_widget_show_all is gone.
2017-01-20 21:37:07 +01:00
Timm Bäder
5f57e3b711
filechooserbutton: Be a GtkWidget
...
Instead of subclassing GtkBox to have 2 child widgets, subclass
GtkWidget and only render one of them.
2017-01-20 21:33:38 +01:00
Timm Bäder
02c2887772
filechooser: adapt to GtkWidget:visible changes
2017-01-20 21:33:37 +01:00
Timm Bäder
b1eccd770e
coloreditor: Hide overlay boxes
2017-01-20 21:33:37 +01:00
Timm Bäder
28a3dd539d
scalebutton: Use GtkButon:icon-name in the ui file
2017-01-16 17:22:53 +01:00
Matthias Clasen
3024956df1
about dialog: Add a "system" tab
...
This is a free-form tab that can contain information about the
system environment. To see it, set GtkAboutDialog::system-information
to a non-NULL value.
https://bugzilla.gnome.org/show_bug.cgi?id=776604
2017-01-12 15:29:56 -05:00
Timm Bäder
1bb4f1e9d9
infobar: Add :revealed property
2017-01-12 09:16:02 +01:00
Timm Bäder
de6b788a91
printunixdialog: Remove leftover draw handler
2017-01-08 11:06:49 +01:00
Timm Bäder
48d5f7843b
actionbar: Add revealer as internal child
2017-01-08 10:49:06 +01:00
Matthias Clasen
e62696b145
about dialog: Simplify the template a bit
...
Remove some unnecessary complications, like an extraneous
box, and some child property settings that are not needed.
2016-12-30 10:33:16 -05:00
Timm Bäder
9f98138ffb
printunixdialog: Remove GtkDrawingArea::draw handler
...
the source file has been updated to use gtk_drawing_area_set_draw_func,
but the draw_cb handler in the ui file is still left.
2016-12-04 12:00:38 +01:00
Matthias Clasen
316b24e0a0
Fix reference handling in GtkScaleButton
...
We were leaking the adjustment, since we confuse ourselves
with a property whose initial value comes out of a template.
Stop doing that.
https://bugzilla.gnome.org/show_bug.cgi?id=775212
2016-11-28 15:04:20 -05:00
Benjamin Otte
dd6fb87443
printunixdialog: Use new drawing area API
2016-11-18 06:40:53 +01:00
Benjamin Otte
b0f392534f
coloreditor: Don't draw a background on boxes
...
Boxes know how to draw backgrounds these days.
2016-11-18 06:40:53 +01:00
Ondrej Holy
16bce17168
gtkplacesview: Add example of IPv6 address in guidance
...
Square brackets are mandatory for IPv6 addresses. Add example of IPv6
address in the guidance to make it obvious.
https://bugzilla.gnome.org/show_bug.cgi?id=756570
2016-11-17 08:15:40 -05:00
Timm Bäder
a829929a41
sidebarrow: Use GtkButton:icon-name
2016-10-31 12:20:41 +01:00
Timm Bäder
01723fa02f
filechooser: Use GtkButton's icon-name property
2016-10-31 12:20:41 +01:00
Matthias Clasen
6861a5d0a4
Spacing fixes for builtin dialogs
...
Replace border-width and padding by margins, in most places.
2016-10-26 20:58:07 -04:00
Benjamin Otte
4df6ddad54
API: container: Remove gtk_container_set_border_width()
2016-10-16 18:18:58 +02:00
Timm Bäder
9f930c08a6
ui: Don't unnecessarily set GtkEntry:invisible-char
2016-10-16 18:17:21 +02:00
Timm Bäder
f45dadadd0
box: Remove 'padding' child property
2016-10-16 18:17:21 +02:00
djb
fe6030a41b
gtkplacesviewrow: stop busy_spinner from offsetting the other widgets when visible
...
...by putting it in a stack. The busy_spinner and eject_button are
mutually exclusive, but only the latter was coded to ensure that its
visibility did not cause the rest of the row to reflow. By putting both
widgets in a stack and setting child_visible on that, the row allocates
enough space to show one - or none - at once, avoiding any misalignment.
https://bugzilla.gnome.org/show_bug.cgi?id=772345
https://bugzilla.gnome.org/show_bug.cgi?id=772348
2016-10-10 15:13:50 -04:00
Carlos Soriano
cc814fdeac
gtkplacesview: mark string as translatable
...
We missed it.
https://bugzilla.gnome.org/show_bug.cgi?id=771666
2016-09-22 17:02:19 +02:00
Tristan Van Berkom
c39ad84970
Revert "about dialog: Set a max-content-height on credits"
...
This reverts commit 6af5033386
.
Scrolled window behavior of propagating child natural sizes
has now been made optional, so there is no need to work around
this by setting a hard coded maximum content height anymore.
2016-09-06 21:29:03 +09:00
Timm Bäder
4f7ec1f1c0
gtk{info,search}bar.ui: Remove some leftover attributes
2016-09-01 12:32:51 +02:00
Matthias Clasen
6af5033386
about dialog: Set a max-content-height on credits
...
This keeps the credits section from making the dialog grow
when there are lots of credits.
https://bugzilla.gnome.org/show_bug.cgi?id=770458
2016-08-29 10:01:20 -04:00
Piotr Drąg
3831b2a725
placesview: fix spelling of WebDAV in a translatable string
2016-07-12 13:31:21 +02:00
Thomas Lange
e7765daf64
placesview: Do not mark icon name as translatable
...
https://bugzilla.gnome.org/show_bug.cgi?id=766878
2016-05-26 22:05:41 -04:00
Lapo Calamandrei
cca2a22b63
color scale: Really sync style classes with GtkScale
...
sync the alpha scale styleclass too.
2016-05-19 17:32:09 +02:00
Georges Basile Stavracas Neto
534ab9a9f0
placesview: update guiding list of protocols
...
The previous list of protocols in the guidance popover
was suboptimal and needed adjustments.
This commit updates this list to match the latest mockups [1].
[1] https://raw.githubusercontent.com/gnome-design-team/gnome-mockups/4847c79ea1aaf75046b3ec5bb1b167ac604d86ed/nautilus/nautilus-next/connect-to-server-wire.png
https://bugzilla.gnome.org/show_bug.cgi?id=756570
2016-05-08 17:38:49 -03:00
Timm Bäder
1b84d75d10
dialogs: remove 2px border width again
2016-05-08 21:33:53 +02:00
Matthias Clasen
cd581c9e81
Simplify our templates
...
This is applying the new property name simplification.
2016-05-06 16:09:12 -04:00
Georges Basile Stavracas Neto
bb8b459407
placesview: follow up fixes
...
This patch unmarks the addresses' prefixes as translatable,
and updates the callback name to reflect what it really does
now.
This is a follow up fix from commit 7449add82
.
https://bugzilla.gnome.org/show_bug.cgi?id=756570
2016-04-27 08:40:19 -03:00
Georges Basile Stavracas Neto
7449add82b
placesview: provide guidance on server addresses
...
GtkPlacesView currently provides no example of
server addresses, which may confuse users.
To fix that, add a helper popover with some
guidance on server addresses.
https://bugzilla.gnome.org/show_bug.cgi?id=756570
2016-04-26 20:50:45 -04:00
Matthias Clasen
4f45353a19
pathbar: Style slider buttons
...
Set a style class on the pathbar slider buttons, and have the
theme handle the separately from other image buttons.
2016-03-13 23:09:47 -04:00
Benjamin Otte
fc7335bdb4
colorscale: Draw a trough
...
Make sure the color info is actually drawn inside the trough.
2016-03-11 16:39:34 +01:00
Matthias Clasen
92662828ba
messagedialog: Respect the gtk-keynav-use-caret setting
...
We used to always make the labels in message dialogs selectable,
which is a bit problematic wrt. to keynav - the label can
unexpectedly 'turn blue', which irritates some people.
With the new gtk-keynav-use-caret setting, we can now only
make the labels selectable when it is required for accessibilty
reasons.
2016-03-04 22:44:30 -05:00
Carlos Soriano
fdde27ea9c
gtkplacessidebar: add new other locations with flags signal
...
We weren't using the open flags on the other locations signal, which
makes impossible for applications like nautilus to act in the same
way that for any other location where the user can choose between
opening in the current view, in a new window or in a new tab.
Add a new signal with an open flags parameter and deprecate
the other-location signal.
https://bugzilla.gnome.org/show_bug.cgi?id=754743
2016-03-04 20:15:52 -05:00
Benjamin Otte
222c43fc60
combobox: Put child into box
...
Put the combobox child into the box we added for this purpose. That way,
we don't have to maintain the child's position ourselves anymore.
2016-03-02 13:54:39 +01:00
Benjamin Otte
c3d3bf61e4
combobox: Put the button in a box
...
This is so we can put the entry into the box in the next commit.
2016-03-02 13:54:39 +01:00
Matthias Clasen
52e0ab53dc
print dialog: More baseline alignment
...
Some places were missing the right valign setting to make
baselines line up properly.
2016-02-21 00:09:32 -05:00
Matthias Clasen
7c577ddf4f
assistant: Add margin to action area
...
We are no longer setting a margin on the content area, so put
one on the action area itself to prevent the buttons from touching
the edge.
https://bugzilla.gnome.org/show_bug.cgi?id=762315
2016-02-20 11:27:56 -05:00
Matthias Clasen
3a4922a76f
file chooser: Add an ID to the box around the pathbar
...
Having an ID makes it easier to style this appropriately.
2016-02-16 14:37:54 -05:00
Matthias Clasen
e10f44e896
places sidebar: use a box
...
No need for a grid here. Patch by Timm Bäder.
2016-02-15 08:19:25 -05:00
Matthias Clasen
56ba81530a
placesview: Fix some minor issues
...
Make the button not grow too big, and ensure that the actionbar
has a background.
https://bugzilla.gnome.org/show_bug.cgi?id=761792
2016-02-11 22:16:33 -05:00
Matthias Clasen
3dce876555
print dialog: Stop using action_box in .ui
...
We can just use CSS margins nowadays to achieve the desired
appearance.
2016-01-28 22:29:30 -05:00
Matthias Clasen
a80b555274
color editor: Ensure spin buttons are wide enough
...
If we don't explicitly ask for 2 chars to be visible, we might
get less, and it doesn't look great.
2016-01-23 18:26:09 -05:00
Matthias Clasen
78162c5e88
message dialog: Prevent empty title from being shown
...
We don't want to grow the titlebar by showing an empty label.
2016-01-15 11:59:33 -05:00
Matthias Clasen
000b5b9055
color editor: Set a name on the color sample
...
This can be used to tweak the style from CSS, via #editor-color-sample.
2016-01-08 11:10:02 -05:00
Matthias Clasen
1aeaa33e68
lockbutton: Fix up the template
...
I forgot to clean this up when switching to a stack.
2016-01-03 10:42:13 -05:00
Matthias Clasen
9c39232ab3
assistant: Drop unnecessary frame
...
We can just style the sidebar box itself, no need for an
extra frame widget.
2016-01-03 10:33:54 -05:00
Matthias Clasen
adfb76dc7e
lockbutton: Use a stack
...
The previous way of manually juggling the visibility of the
labels doesn't work anymore, now that gadgets of invisible
widgets don't allocate space anymore.
2016-01-03 09:55:30 -05:00
Cosimo Cecchi
5764c09272
combobox: use GtkIcon to render button arrow
...
We can now use the newly introduced GtkIcon widget to properly render
the arrow in the combobox with CSS.
2015-12-22 09:29:43 -08:00
Matthias Clasen
a3fd5a010b
Simplify actionbar
...
We don't need a frame widget here, just render a top border on the
box.
2015-12-18 22:57:16 -05:00
Georges Basile Stavracas Neto
67125ae4e0
placesview: implement available space
...
GtkPlacesView is a widget to display locations
in the computer, such as root ("/") and volumes,
separating the persistent devices from removable
ones.
From the latest mockups[1], GtkPlacesView would
display the available space of local drives like
partitions. This, however, is not implemented in
the current codebase.
Fix that by implementing the measurement of disk
space, and adding a new property GtkPlacesView::show-disk-usage
which controls the visibility of measured disks.
[1] https://raw.githubusercontent.com/gnome-design-team/gnome-mockups/master/nautilus/nautilus-next/other-locations.png
https://bugzilla.gnome.org/show_bug.cgi?id=759225
2015-12-09 20:30:10 -02:00
Sebastien Bacher
635da34908
GtkAppChooserWidget: wrap the label, use a standard icon
...
Let the label wrap if needed, that's required in some locales, use an
icon which is available in the theme
https://bugzilla.gnome.org/show_bug.cgi?id=758908
2015-12-03 12:45:56 +01:00
Christian Hergert
5dcf4e10b7
filechooserbutton: add some spacing between icon and text
...
These were a bit crammed, which doesn't match well with spacing used in
various other parts of gtk.
2015-12-01 11:23:12 -08:00
Emmanuele Bassi
0e0b45602a
tooltipwindow: Use a builder UI file
...
It's not a hugely complicated file, but it's easier to deal with some of
the details of tooltip windows styling if we have a UI file to edit,
instead of source code.
2015-11-11 12:27:07 +00:00
Matthias Clasen
527df17ea3
places view: Remvoe some unused style classes
...
These style classes were not used in Adwaita, and didn't make
any difference for the appearance.
2015-11-05 23:44:16 -05:00
Matthias Clasen
a71bc24184
file chooser: Don't use .search-bar for a box
...
Just use the more general .view class to avoid special-casing
the file chooser in the theme.
2015-11-05 07:40:48 -05:00
Matthias Clasen
d229ea3de1
combobox: Use element names
...
Use combobox as the element name for the main CSS nodes of
GtkComboBox and GtkComboBoxText. Add the .combo style class
to the button and entry. in a GtkComboBox or GtkComboBoxText.
2015-11-02 13:56:25 -05:00
Matthias Clasen
f2434e7cea
file chooser button: Add a style class
...
Unfortunately, GtkFileChooserButton is different from the other
pickers in that it is not a button, but rather has a button.
We ignore the difference for styling purposes, and just add
a .file style class to the button.
2015-11-02 12:27:36 -05:00
Matthias Clasen
4fe1b9589e
message dialog: Use an element name
2015-10-30 23:48:46 -04:00
Georges Basile Stavracas Neto
50c6a11b05
placesview: vertically align path labels
...
The current situation is somewhat sad, with the path
label totally misaligned throughout the rows.
This is fixed by using a size group for the path labels,
so they all have the same allocated size (with the max
of 15 chars). Also, instead of hiding the eject button,
set it child-invisible, so it is hidden and yet it's size
is allocated by GtkBox.
https://bugzilla.gnome.org/show_bug.cgi?id=757303
2015-10-30 11:35:43 -02:00
Carlos Soriano
9341f64c19
gtkplacesview: add a clear button to address entry
...
So it allows a quick way to clear the entry.
https://bugzilla.gnome.org/show_bug.cgi?id=756568
2015-10-15 19:18:54 +02:00
Carlos Soriano
f9b6c07c8a
gtkplacesview: rotate server list icon on toggled
...
Disclosure triangles are usually used pointing down, however
in this case the popover spawns in the upper direction, which
makes it odd looking.
Instead of pointing always down or up, point down when not toggled and
animate a rotation when toggled.
https://bugzilla.gnome.org/show_bug.cgi?id=756568
2015-10-15 19:18:54 +02:00
Carlos Soriano
831509f6aa
gtkplacesview: tweak ui to allow more server rows
...
Following design guidance, reduce row height and increase
popover height so the user is allowed to see more than 3
rows.
https://bugzilla.gnome.org/show_bug.cgi?id=756568
2015-10-15 19:18:54 +02:00
Matthias Clasen
0b86b8b0a1
app chooser widget: protect against show_all
...
The visibility of the 'no apps' placeholder is managed by
the dialog, it should not be affected by gtk_widget_show_all.
https://bugzilla.gnome.org/show_bug.cgi?id=748080
2015-09-22 16:07:13 -04:00
Timm Bäder
9a33e531c5
ui: Remove border from dialogs again
2015-09-15 14:07:47 +02:00
Matthias Clasen
b9322433d3
Update all ui files again
...
Replace translatable="1" by translatable="yes" so
xgettext stays happy and extracts the strings.
2015-09-13 23:26:16 -04:00
Matthias Clasen
a531633660
Run gtk-builder-tool simplify over all templates
2015-09-12 11:24:36 -04:00
Carlos Soriano
528c576590
gtkplacessidebar: add sidebar row style
...
So designers can style it at their will.
2015-09-01 14:28:38 +02:00
Benjamin Otte
9ce91a1251
combobox: Add a special class for the button in the combobox
...
That way, the GTK engine doesn't think that the general .button CSS
might potentially apply to it.
And because combobox button is overly complex and stupid, it cannot be
cached.
So buttons thought they cannot ever cache anything because they might
suddenly end up inside a combobox without noticing and then they'd need
to round their corners differently. Of course they're just regular
"Remove" buttons like all the other 100s of "Remove" buttons in
gnome-software. But hey, better not cache anything for them and
recompute their CSS every time the :hover state changes on one of the
rows.
2015-08-27 20:08:15 +02:00
Georges Basile Stavracas Neto
8192a058a9
places-view: show a more verbose entry hint
...
As pointed out by Allan, this is not very helpful. A
call to action label fits better in this case.
2015-08-17 14:25:18 -03:00
Matthias Clasen
5f44339ce3
font chooser: Make the entry activate the default
2015-08-10 22:43:19 -04:00
Matthias Clasen
ecc8cd2369
font chooser: Use browse as selection mode
2015-08-10 22:43:19 -04:00
Matthias Clasen
61ffb517bc
font chooser: Make Escape stop search
2015-08-10 22:43:18 -04:00
Georges Basile Stavracas Neto
e548c71394
placesview: show Disconnect instead of Eject
...
Since we're dealing with networks, terms like "Eject" or
the eject button are misleading, since we're not actually
ejecting but disconnecting.
Fix that by showing the appropriate icon and tooltip.
2015-08-10 15:35:56 -03:00
Benjamin Otte
2550c6a4db
combobox: Refactor cell view treatment
...
Instead of putting it inside the button manually, put it there properly
by adding a box containing the cell view and the arrow.
Do the same thing in list mode, instead of creating an event box that
tries to behave as a button.
2015-07-31 04:03:44 +02:00