Cosimo Cecchi
26ff536069
combobox: fix cell area allocation in menu mode for RTL
...
We were missing a padding to subtract from the child widget here.
2012-01-31 20:30:43 -05:00
Cosimo Cecchi
aa16f469bc
combobox: fix dropdown menu alignment for RTL languages
...
We need to add in the left padding, instead of subtracting it in that
case.
2012-01-31 20:30:43 -05:00
Cosimo Cecchi
65e6248542
combobox: use gtk_container_class_handle_border_width()
...
Avoids us fiddling with the border width manually in our size request
and allocation cycles.
2012-01-31 20:30:43 -05:00
Cosimo Cecchi
cf7f0cb27a
combobox: always trim the allocated area by padding and border for child
...
When we're size allocating the children widgets, always trim the
allocation for padding and border of GtkComboBox, as that's all the area
they have available.
2012-01-31 20:30:42 -05:00
Cosimo Cecchi
ec6b36add5
combobox: cleanup allocation of children in list mode
...
Instead of setting the same values for child allocation in different
places, just do it once.
2012-01-31 20:30:42 -05:00
Cosimo Cecchi
a8211b75b2
combobox: cleanup and comment the allocation code somewhat
2012-01-31 20:30:42 -05:00
Cosimo Cecchi
00325e992b
combobox: make sure to respect the GtkComboBox padding in menu mode
...
When the combobox is in menu mode, we still shouldn't discard the
GtkComboBox padding value; it's wrong to allocate it to the button.
2012-01-31 20:30:42 -05:00
Cosimo Cecchi
c598a9501f
combobox: cleanup GTK_COMBO_BOX_SIZE_ALLOCATE_BUTTON
...
It was using the wrong padding values for RTL, and generally, using the
same variables in a distant macro makes this method even more
complicated than it already is...
2012-01-31 20:30:41 -05:00
Cosimo Cecchi
1bbd2c48c5
combobox: simplify size request code by using the button content box
...
Similar to what we did for size_allocate.
2012-01-31 20:30:41 -05:00
Cosimo Cecchi
821365af15
combobox: move the allocation of the button contents box directly
...
If we're in menu mode with no children, instead of tweaking the
allocation of the arrow and the separator separately, tweak the
allocation of the box that contain both.
2012-01-31 20:30:41 -05:00
Cosimo Cecchi
93523e70a0
combobox: allocate the CSS borders to GtkComboBox
...
Consider borders in the allocation/size-request machinery, like every
widget should do.
2012-01-31 20:30:40 -05:00
Cosimo Cecchi
4675ed27fd
combobox: remove handling of focus-padding and focus-line-width
...
GtkComboBox always handles focus through its children, so there's no
need to request and allocate them again.
In fact, Adwaita was forcing these style properties to zero for
GtkComboBox.
2012-01-31 20:30:40 -05:00
Javier Jardón
9d7a722b38
gtkentry: Fix compilation warnings
2012-01-31 20:46:14 +00:00
Javier Jardón
44135ba2eb
gtkspinbutton: Fix compilation warning
2012-01-31 20:46:13 +00:00
Ryan Lortie
8abc74680d
Bring back the GMenu separators
...
4240bfb74a
contained a likely copy/paste
mishap that accidentally disabled all separators for GtkMenus created
from GMenuModels.
Bring them back.
2012-01-31 13:23:34 -05:00
Cosimo Cecchi
0e395ea5a2
entry: deprecate the progress-border style property
...
Since we don't use it anymore.
2012-01-31 10:04:27 -05:00
Cosimo Cecchi
8dab59e5c9
entry: use the CSS margin for the progress margin offset
...
The progressbar inside GtkEntry has a progress-border style property,
which is actually the margin of the progressbar inside the GtkEntry
allocation.
Use a CSS margin instead of reading the progress-border property.
2012-01-31 10:04:27 -05:00
Cosimo Cecchi
5ec36a015c
entry: use padding on the image area to position the image
...
Don't assume the padding of the icons is the same padding of the rest of
the entry.
This also allows to set different paddings for left and right icons.
2012-01-31 10:04:27 -05:00
Cosimo Cecchi
2cbe088674
entry: deprecate inner-border and gtk_entry_get/set_inner_border()
...
They're unused in GTK now and have suitable replacements in the CSS
properties.
2012-01-31 10:04:27 -05:00
Cosimo Cecchi
dd2bbd1b85
cell-renderer-text: don't use gtk_entry_set_inner_border()
...
There's no need to, since now the theme can just tweak the padding like:
.cell.entry {
padding: 12;
}
2012-01-31 10:04:26 -05:00
Cosimo Cecchi
a5b189093b
cell-renderer: add the CELL style class to the editing widget
...
When we create an editing widget, add the CELL style class to it, for
identification by the themes.
2012-01-31 10:04:26 -05:00
Cosimo Cecchi
4b90ba2701
entry: always add padding to the allocation
...
Even when we don't have a frame. We just ignore the borders in this
case.
2012-01-31 10:04:26 -05:00
Cosimo Cecchi
d140411698
entry: don't consider inner-border for allocation and layout
...
We want to deprecate the inner-border property and use the standard CSS
border/padding properties. Start with replacing its uses in GtkEntry.
2012-01-31 10:04:26 -05:00
Cosimo Cecchi
3ca795d447
entry: don't blindly center the text area in the allocated height
...
Since top/bottom borders might be different.
2012-01-31 10:04:25 -05:00
Cosimo Cecchi
8275a20026
entry: change _gtk_entry_get_borders() to return a GtkBorder
2012-01-31 10:04:25 -05:00
Cosimo Cecchi
5b2c1ee828
entry: allocate the CSS borders to GtkEntry
...
Every widget should allocate its borders. Make this true for GtkEntry.
2012-01-31 10:04:25 -05:00
Ryan Lortie
4041accda3
GtkBuilder menus: reject all attributes on <item>
...
These were just being silently ignored before. That's bad, since it
used to be valid to have these.
2012-01-31 00:09:11 -05:00
Matthias Clasen
26da21f352
Drop some unintentional exports
2012-01-30 22:14:05 -05:00
Matthias Clasen
f663d4c82e
Fix menu xml syntax in tests
2012-01-30 22:14:05 -05:00
Benjamin Otte
50c5bf97ea
shorthand: Only unset values that are set
...
Otherwise g_value_unset() complains. And that breaks the testsuite.
2012-01-31 03:59:32 +01:00
Benjamin Otte
f01cef05c8
window: Avoid unnecessary attach-widget resets
2012-01-31 03:43:43 +01:00
Matthias Clasen
9b6ae2e9d5
Fix make check
...
Several unwanted symbols have sneaked in.
2012-01-30 20:46:44 -05:00
Matthias Clasen
4497ac6b58
Document the gtkbuilder xml file better
...
Replace the (invalid) DTD in the GtkBuilder docs by a
RELAX NG schema. Also install the schema in /usr/share/gtk-3.0,
so it can be used to validate GtkBuilder ui files.
2012-01-30 20:32:22 -05:00
Matthias Clasen
585a6652d5
Use G_SOURCE_CONTINUE/REMOVE
...
Now that GLib provides these macros, we should use them
to make the code more readable.
2012-01-30 19:12:27 -05:00
Matthias Clasen
7a080413ad
Typo fix
2012-01-30 18:38:04 -05:00
Carlos Garcia Campos
67c3bf7b02
gtktreeviewcolumn: Use symbolic names for button numbers
2012-01-27 09:47:44 +01:00
Carlos Garcia Campos
349b1eff03
gtktreeview: Use symbolic names for button numbers
2012-01-27 09:47:44 +01:00
Carlos Garcia Campos
4e41b5c5fd
gtktextview: Use symbolic names for button numbers
2012-01-27 09:47:44 +01:00
Carlos Garcia Campos
f20551e2ed
gtkstatusicon: Use symbolic names for button numbers
2012-01-27 09:47:44 +01:00
Carlos Garcia Campos
f84ec775d8
gtkspinbutton: Use symbolic names for button numbers
2012-01-27 09:47:44 +01:00
Carlos Garcia Campos
99c903ec04
gtkrange: Use symbolic names for button numbers
2012-01-27 09:47:44 +01:00
Carlos Garcia Campos
15711a3bf7
gtkpathbar: Use symbolic names for button numbers
2012-01-27 09:47:44 +01:00
Carlos Garcia Campos
0453f91f02
gtkpaned: Use symbolic names for button numbers
2012-01-27 09:47:43 +01:00
Carlos Garcia Campos
594903ecde
gtknotebook: Use symbolic names for button numbers
2012-01-27 09:47:43 +01:00
Carlos Garcia Campos
59a1434557
gtkmenutoolbutton: Use symbolic names for button numbers
2012-01-27 09:47:43 +01:00
Carlos Garcia Campos
73449a4e28
gtkmenu: Use symbolic names for button numbers
2012-01-27 09:47:43 +01:00
Carlos Garcia Campos
38d869cb8e
gtklabel: Use symbolic names for button numbers
2012-01-27 09:47:43 +01:00
Carlos Garcia Campos
c7756f0410
gtkiconview: Use symbolic names for button numbers
2012-01-27 09:47:43 +01:00
Carlos Garcia Campos
203f600373
gtkhsv: Use symbolic names for button numbers
2012-01-27 09:47:43 +01:00
Carlos Garcia Campos
76420c4793
gtkexpander: Use symbolic names for button numbers
2012-01-27 09:47:43 +01:00