Commit Graph

47401 Commits

Author SHA1 Message Date
Daniel Boles
bb63cb41f0 combobox: Fix documentation typo bx => box 2017-01-21 16:12:59 +00:00
Daniel Boles
ea74712de8 menushell: Don’t dereference before typechecking 2017-01-20 22:19:33 +00:00
Daniel Boles
7f9ef6f9cb combobox: If typechecking, don’t dereference before 2017-01-20 21:38:12 +00:00
Daniel Boles
495456c3d1 combobox: popdown() the menu during unmap()
combo_box_popdown() of course doesn’t popdown our menu if it is NULL.
But the required call to this at end-of-life was in destroy(), by which
point dispose() already NULLed the menu, so Menu::popdown() would never
run, even if it should. Fix this by trying popdown() earlier in unmap().
Also, add a converse assurance that we don’t popup() while not mapped.
2017-01-20 21:31:50 +00:00
Daniel Boles
369fa0341b Scale: Always sync ::digits to Range::round-digits
The documents state that gtk_scale_set_digits() “causes the value of the
adjustment to be rounded off to this number of digits, so the retrieved
value matches the value the user saw.” Note the lack of any condition.

But in fact, if draw-value was false, rounding was disabled on the base
Range, so values that weren’t displayed weren’t rounded. This made the
docs wrong and made an apparently cosmetic detail alter functionality.

Fix by ensuring the number of digits set on Scale is always propagated
along to gtk_range_set_round_digits(), thus rounding to it in all cases
when the value changes, regardless of whether the value is displayed.

This doesn’t address the other idea from Bugzilla: that changing the
number of digits should clamp the _existing_ value if it’s more precise.
This contradicts digits docs in the base Range, but the above from Scale
can be read as implying it’ll happen. For now, that’s an open question.

https://bugzilla.gnome.org/show_bug.cgi?id=358970
2017-01-20 21:31:08 +00:00
Daniel Boles
320fe56ca0 Remove executable bit from C source files in tests 2017-01-20 21:27:17 +00:00
Daniel Boles
db214bbd1b combobox: Move variables into narrowest scopes 2017-01-20 21:26:28 +00:00
Daniel Boles
a9a90c7659 grid: Fix plural error in docs' @Short_description 2017-01-20 21:23:01 +00:00
Daniel Boles
90bca20555 revealer: Fix a typo in a function doc
Also, "ie" wasn't very clear, but fixing that to "i.e." would cause
truncation of the summary when processed by bindings using doxygen. So,
I replaced it with "in other words", which is no _less_ clear, at least.
2017-01-20 21:23:01 +00:00
Daniel Boles
41a07f9856 demos/icon-browser: increase default window size
...to get more than 1 row of icons to browse!

https://bugzilla.gnome.org/show_bug.cgi?id=776560

I've bumped the size a bit further, to 1024x768
2017-01-20 21:22:31 +00:00
Daniel Boles
4935441e99 scrolledwindow: Fix func summary being cut off in bindings using doxygen
...which treats the first '.' in doc comments as the end of the summary.
So, e.g., in gtkmm, get_kinetic_scrolling() is currently summarised as
"Changes the behaviour of @scrolled_window wrt." Not very informative!

No need for a period there & anyway, the phrase "wrt to" is superfluous,
and we have space to actually say "with regard to", so just do that now.
2017-01-20 21:22:23 +00:00
Carlos Garnacho
91417c6e04 gtkdnd: Remove unnecessary call
drag-data-delete is emitted based on the interchange of the
DELETE atom, which may well be set or bypassed locally by
the app. As such emitting it here is not right, the other
paths handling the DELETE atom interchange are still valid
and there.

https://bugzilla.gnome.org/show_bug.cgi?id=774726
2017-01-11 16:40:57 +01:00
Debarshi Ray
b1524a8ade flowbox: Fix get_child_at_index crash with an invalid index
https://bugzilla.gnome.org/show_bug.cgi?id=775525
2016-12-15 10:38:59 +01:00
Lapo Calamandrei
45ebb6afc6 HC: progressbar style fix
Reset styling on the progress node when trough node has the `empty'
styleclass.

See https://bugzilla.gnome.org/show_bug.cgi?id=774695
2016-12-03 17:19:17 +00:00
Lapo Calamandrei
6db39715d9 Adwaita: progressbar style fix
Reset styling on the progress node when trough node has the `empty'
styleclass.

See https://bugzilla.gnome.org/show_bug.cgi?id=774695
2016-12-03 17:19:17 +00:00
Daniel Boles
6053713acd GtkProgressBar: trivial conditional optimisation
I'd hope the compiler would realise this for us, but let's be explicit.
2016-12-03 17:19:17 +00:00
Simon Steinbeiss
4ed5f5ed43 progressbar: add empty and full classes on trough based on fill-level
Pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=774695
2016-12-03 17:19:17 +00:00
Matthias Clasen
51a6a325d2 widget-factory: Better progressbar testing
Hook the two top progressbars up to the scale with marks.
Your turn, Lapo.
2016-12-03 17:17:17 +00:00
Cosimo Cecchi
bec07e2847 Adwaita: make rubberband selection work again for libgd apps
libgd views still use the old style class.
2016-11-27 02:03:42 +01:00
Lapo Calamandrei
793265e020 Adwaita: dodge drop active style for window and decoration nodes
to hilight drop target there is a wildcard selector which turns
the border and shadow to green, this clearly shouldn't happen when
the whole window is a drop target.
2016-10-12 19:34:40 +02:00
Hannie Dumoleyn
ed178415d9 Updated Dutch translation gtk+-properties3.20 2016-10-12 17:19:29 +02:00
Hannie Dumoleyn
b64f94feba Updated Dutch translation gtk+ 3.20 2016-10-12 17:07:40 +02:00
Matthias Clasen
63240a7110 css: Complete the cross-fade implementation
We need to actually compute the images. Otherwise,
bad things happen when we try to draw.

https://bugzilla.gnome.org/show_bug.cgi?id=767391
2016-09-06 08:16:58 -04:00
Matthias Clasen
86852505a3 Fix whitespace 2016-09-06 08:16:52 -04:00
Matthias Clasen
f9167e5c99 css: Set meaningful fallback color
This code was passing out-of-range values into
gdk_cairo_set_source_rgb, which cannot really make
anything better.
2016-09-06 08:16:47 -04:00
Matthias Clasen
680ee57a79 gtk3-demo: Avoid underallocating columns
Setting a fixed width on the columns causes the headers to be
be underallocated. It is not necessary either.
2016-09-06 08:16:36 -04:00
Matthias Clasen
1024e0893e label: take padding into account when measuring
When doing height-for-width measurements, we need to take
padding into account. This was causing various allocation
errors.

https://bugzilla.gnome.org/show_bug.cgi?id=770849
2016-09-06 08:03:53 -04:00
Matthias Clasen
1dca723864 label: Fix indentation
Trivial, but annoying.
2016-09-06 08:03:43 -04:00
Matthias Clasen
6dd558a183 range: Ensure we don't underallocate the highlight gadget
This was causing warnings in HighContrast.

https://bugzilla.gnome.org/show_bug.cgi?id=770614
2016-09-06 08:03:35 -04:00
Joaquim Rocha
80063414ff listbox: Select the last row on page down when there are few rows
When pressing page down doesn't retrieve a valid row (because the list
box has few rows), the last visible one should be selected instead.

https://bugzilla.gnome.org/show_bug.cgi?id=770703
2016-09-06 08:03:11 -04:00
Joaquim Rocha
eb2a73704b listbox: Avoid crashing on page down if the list has few rows
The code always assumed that getting a row at a certain 'y' was
possible but if the list box has more empty space than rows then a
valid row may not be retrieved.

https://bugzilla.gnome.org/show_bug.cgi?id=770703
2016-09-06 08:03:05 -04:00
Arnaud Bonatti
8112b925a3 Use 'focused' everywhere.
https://bugzilla.gnome.org/show_bug.cgi?id=770624
2016-09-06 08:00:38 -04:00
Benjamin Otte
7298f8e94d Add braces to appease gcc
-ftrack-macro-expansion=0 doesn't like if statements without braces when
evaluating indentation levels.
2016-09-06 07:59:22 -04:00
Benjamin Otte
137c22e50c uimanager: Correctly indent code 2016-09-06 07:59:16 -04:00
Benjamin Otte
403f16766c a11y: Correctly indent code 2016-09-06 07:59:08 -04:00
Matthias Clasen
32679cb832 cell renderer text: Allow entries to shrink
Set a small max-width on entries used for editing cells, so they
adapt to small columns and don't overlap the next column.

https://bugzilla.gnome.org/show_bug.cgi?id=770374
2016-09-06 07:58:36 -04:00
Matthias Clasen
626190e275 Document window-icon related api as 'may not work'
Some platforms simply don't have window icons (such as Wayland).
2016-09-06 07:58:10 -04:00
Matthias Clasen
7ebc137190 notebook: Update arrow state when switching pages
Otherwise, we may end up showing clickable arrows that don't
do anything.

https://bugzilla.gnome.org/show_bug.cgi?id=770332
2016-09-06 07:58:01 -04:00
Matthias Clasen
0ba66846d7 scale: Document interaction between rounding and autoscrolling
This is a bit of a gotcha, so better document it.
2016-09-06 07:57:49 -04:00
Matthias Clasen
720988d962 gtk-demo: Make the scale demo fully functional
The adjustments need to have step-increment and page-increment
set up, or keynav and autoscrolling will not work.
2016-09-06 07:56:30 -04:00
Philip Withnall
a98d7a7569 gtkbindings: Add an example for gtk_binding_entry_add_signal()
Otherwise the way the varargs are supposed to be used is completely
opaque.

https://bugzilla.gnome.org/show_bug.cgi?id=770236
2016-09-06 07:55:43 -04:00
Philip Withnall
8d059bb487 gtkbindings: Clarify that widgets need has-focus for bindings to work
https://bugzilla.gnome.org/show_bug.cgi?id=770242
2016-09-06 07:55:32 -04:00
Timm Bäder
a59cb7ccff stylepropertyimpl: Remove double assignment 2016-09-06 07:54:48 -04:00
Timm Bäder
f1bcbfa8c1 widget-factory: Don't initially show popover
It'll  be set as the popover of a GtkMenuButton later anyway which will
hide it again.
2016-09-06 07:53:48 -04:00
GNOME Translation Robot
856d360d3f Updated Scottish Gaelic translation 2016-09-05 12:38:13 +00:00
GNOME Translation Robot
e295708854 Updated Scottish Gaelic translation 2016-09-05 12:28:50 +00:00
Baurzhan Muftakhidinov
caacf5a5cf Updated Kazakh translation 2016-09-04 04:53:31 +00:00
Carlos Soriano
24c25d44a5 gtkplacessidebar: fix signal marshal
We were using __VOID for the SHOW_OTHER_LOCATION signal that
uses flags named SHOR_OTHER_LOCATION_WITH_FLAGS.
However, if a signal uses flags the marshal needs to use __FLAGS.

This patch addresses this using VOID__FLAGS as the marshaler parameter.

Thanks to Jan Steffens for pointing this out.

https://bugzilla.gnome.org/show_bug.cgi?id=770550
2016-08-29 15:39:20 +02:00
Lapo Calamandrei
43da663c9e Adwaita: increase border radius on button.circular...
...to allow huge circular buttons.
See https://bugzilla.gnome.org/show_bug.cgi?id=770166
2016-08-22 14:19:09 +02:00
Rafael Fontenelle
e2453dc7cd Updated Brazilian Portuguese translation 2016-08-22 04:09:13 +00:00