- 11 May, 2012 4 commits
-
-
Matthias Clasen authored
We forgot the documentation when we simplified the GtkApplication session api.
-
Benjamin Otte authored
-
Benjamin Otte authored
This is getting kinda dangerous because we imply that a child is at least 4px high by now.
-
Benjamin Otte authored
-
- 09 May, 2012 5 commits
-
-
Benjamin Otte authored
This is more a workaround for Clutter-GTK than anything else. Most of all, it makes gnome-boxes start again.
-
Benjamin Otte authored
The scrollbar doesn't do anything. It's just put in the correct place.
-
Benjamin Otte authored
No public API yet, I don't have a good one...
-
Benjamin Otte authored
-
Benjamin Otte authored
The widget doesn't do very much yet. But at least it prints lots of "Hello world".
-
- 08 May, 2012 4 commits
-
-
Benjamin Otte authored
Code was using different places to compute the icon size when layouting and when doing size requests. This resulted in non-matching behavior in obscure cases. And that lead to iconviews that were too small.
-
Benjamin Otte authored
Apparently GtkCellAreaContext is broken enough to not allow multiple allocations...
-
Benjamin Otte authored
-
Benjamin Otte authored
Handle both the case where a widget is set and also the case where a widget path is set.
-
- 07 May, 2012 9 commits
-
-
Rui Matos authored
This makes sure that if the gtk-im-module setting changes we update our internal state immediately on the next event whichever it is. In particular this fixes the case of the gtk-im-module setting changing while the user is typing and the slave context remaining the same, effectively ignoring the setting change. https://bugzilla.gnome.org/show_bug.cgi?id=675365
-
Cosimo Cecchi authored
Commit cdf473ec deprecated the style properties associated with the container border width and box spacing of the action and content areas, in favour of using gtk_container_set_border_width() and gtk_box_set_spacing() on the widgets themselves, but failed to initialize those values to the defaults.
-
John Ralls authored
Rearrange the gtk_private_h_sources so that they're all added to EXTRA_DIST instead of only the ones included in the current build.
-
John Ralls authored
Makes name consistent with other quartz-only modules and makes it clear that this works with the GMenuModel system rather than the older GtkMenu system.
-
Federico Mena Quintero authored
The window's role is 'GtkFileChooserDialog', so that window managers can match it for positioning. Signed-off-by:
Federico Mena Quintero <federico@gnome.org>
-
Benjamin Otte authored
Actually print out the function we're warning about
-
Benjamin Otte authored
-
Benjamin Otte authored
-
Benjamin Otte authored
Instead, always use PKG_CHECK_MODULES(). That macro actually gets it right. In particular the erroring out part when you miss xkbcommon or wayland-client.
-
- 06 May, 2012 11 commits
-
-
Benjamin Otte authored
This ensures that items stay left-aligned instead of slowly expanding into empty space when widening the iconview. It's also what the iconview did pre-refactoring. Note that for cases where natural width != minimum width, the cells might still expand and shrink back.
-
Benjamin Otte authored
Fixes build
-
Benjamin Otte authored
-
Benjamin Otte authored
-
Benjamin Otte authored
Always assume max-columns and min-rows. The old approach was kinda insane. As an example, try to write an algorithm that optimizes the minimum size for infinite (take a reasonably large number like 2520) word-wrapped Monospace text cells containing the text "XXXXX XXX XXX XXXXX" (keep in mind that this is the easy problem, because it's assuming equal cell renderers). There's 4 ways to reasonably lay out this text: 19 glyphs (19x1): XXXXX XXX XXX XXXXX 18 glyphs (9x2): XXXXX XXX XXX XXXXX 21 glyphs (7x3): XXXXX XXX XXX XXXXX 20 glyphs (5x4): XXXXX XXX XXX XXXXX The best thing to do usually is using the 9x2 approach, but that's neither the one using the natural nor the one using the minimum size. As a side note, this does not include spacing and padding, which might also influence the decision. Nor does it include height-for-width considerations. Look at this table (numbers given in glyphs, not pixels, as for pixel-sizes it gets even more interesting): given best solution width columns sizing glyphs per cell 6 1 6x4 20 7 1 7x3 21 8 1 7x3 24 9 1 9x2 18 10 1/2 9x2/5x4 20 11 1/2 9x2/5x4 22 12 1/2 9x2/5x4 24 13 1/2 9x2/5x4 26 14 2 7x3 21 15 3 5x4 20 16 3 5x4 21.3 17 3 5x4 22.7 18 2 9x2 18 19 1/2 19x1/8x2 19 20 1/2/4 19x1/8x2/5x4 20 21 1-4 any 21 22 1-4 any 22 23 1-4 any 23 24 1-4 any 24 25 5 5x4 20 26 5 5x4 20.8 27 3 9x2 18 28 3 9x2 18.7 29 3 9x2 19.3 30 3/6 9x2/5x4 20 Now of course, nobody wants the number of columns to randomly change in inexplicable ways while they enlarge or shrink an iconview, so we not only have to optimize for smallest or other size measurements, but we also have to optimize for "most pleasing to the eye". And last but not least, I'd like to once again remind you - if you kept up until now - that this discussion was for identically-sized cells only.
-
Benjamin Otte authored
-
Benjamin Otte authored
Instead of just returning the last allocated numbers, we now compute the proper sizes from scratch. This is a bit less trivial, but it results in proper height-for-width handling.
-
Benjamin Otte authored
This is a huge quest to remove all caching from GtkIconview to simplify the code. As it turns out, iconview performance is a joke, so the caches are kinda unnecessary. If we need caching, we can add it in a useful way later.
-
Benjamin Otte authored
If we use &item->cell_area instead of (GdkRectangle *) item there is no need anymore to keep the cell_area as the first member of the the item. And we cget compile-time checks for changes to the item struct.
-
José Alburquerque authored
-
Paolo Borelli authored
-
- 05 May, 2012 3 commits
-
-
This is along the changes introduced in bd55519f, A TOUCHPAD device behaves like a mouse" https://bugzilla.gnome.org/show_bug.cgi?id=674549
-
Yaron Shahrabani authored
-
Fran Diéguez authored
-
- 04 May, 2012 4 commits
-
-
Cosimo Cecchi authored
It's wrong to hardcode the slider lines here; those should be rendered as an additional background layer using background-image if the theme specifies so. https://bugzilla.gnome.org/show_bug.cgi?id=652304
-
Cosimo Cecchi authored
Instead of setting it on the child scrolled window. This is needed because the whole window's allocation must be equal to the one of the entry (in case the popup-set-width property is TRUE); if we set the size request on a children of the window, there might be other children with borders/paddings in between the toplevel and the child we set the size request too, which will break alignment. https://bugzilla.gnome.org/show_bug.cgi?id=672947
-
Cosimo Cecchi authored
The completion popup should be aligned with the GtkEntry allocation, not less than that. https://bugzilla.gnome.org/show_bug.cgi?id=672947
-
Daniel Mustieles García authored
-