cfb54d81bd
combobox: allocate the right border to the arrow and not to the label
...
When the combobox is in menu mode, the right padding of the togglebutton
inside, should be allocated to its rightmost children, which is the
arrow.
https://bugzilla.gnome.org/show_bug.cgi?id=646882
2011-04-12 17:14:34 -04:00
bb038d4dd4
combobox: don't use the border as a padding
...
This causes the combobox to behave badly from the theme.
https://bugzilla.gnome.org/show_bug.cgi?id=646882
2011-04-12 17:14:33 -04:00
2613e412d7
combobox: don't add the button style class to the whole widget
...
It already has a toggle button inside, and this way we cannot theme them
separately.
https://bugzilla.gnome.org/show_bug.cgi?id=646882
2011-04-12 17:14:32 -04:00
f2441c08f1
combobox: Don't set the menu's name twice
2011-03-27 00:48:25 +01:00
0ff4fdb233
combobox: add an arrow-scaling property to GtkComboBox
2011-03-03 17:48:25 -05:00
4164a49b84
Added documentation to "cell-area" construct-only properties.
...
Indicate what kind of area will be used by default if none is
provided by the user.
2011-02-24 16:05:41 +09:00
beb8c290d1
Always chain up in ::style-updated
...
This was not handled consistently, but the default handler
does useful things, so we should always chain up.
2011-02-07 07:30:37 -05:00
42778894c0
s/state_changed/state_flags_changed/ in GtkComboBox
2011-02-06 11:21:42 +01:00
726b0d8736
Bandaid fix for icon view subclassing
...
I've decided that it is isn't feasible to make cell areas runtime-settable
in the time we have left before 3.0, therefore, I'm going with the
approach to allow init() functions to instantiate the default cell area
and issue a warning if a construct property is ignored.
This is not ideal, but it keeps existing icon view and combo box
subclasses working.
https://bugzilla.gnome.org/show_bug.cgi?id=639139
2011-01-31 17:39:42 -05:00
f941f7b123
Fix keynav issue in menu mode
...
Skipping insensitive and separator rows was broken in menu mode.
https://bugzilla.gnome.org/show_bug.cgi?id=639845
2011-01-20 23:40:14 -05:00
374e76a19d
[GI] Mark unintrospectable constructs as (skip)
...
Also adds 'Rename to:' annotation to some constructs replacing the
skipped ones.
2011-01-20 13:57:21 +01:00
a41402c455
combobox: Update adjustment usage for sealing
2011-01-05 23:50:22 +01:00
98440ad031
Remove gtktypeutils altogether
...
Based on patches by Javier Jardón.
https://bugzilla.gnome.org/show_bug.cgi?id=629955
2011-01-04 14:51:19 -05:00
b5c6904c2f
Drop explicit includes of gdkkeysyms.h
...
These are no longer needed. At the same time, port gtkimcontextsimpleseqs.h
to use the new GDK_KEY_ symbols.
2011-01-04 12:21:41 -05:00
52e1722f35
GtkComboBox(Text): Add documentation about the entry
2011-01-04 10:36:08 -05:00
68aa336f5f
Removed TABs and trailing whitespace from GtkComboBox and GtkTreeMenu
2011-01-05 00:14:25 +09:00
4ff893979b
Fixed conflicts after rebasing master into combo-refactor branch.
2011-01-04 23:37:14 +09:00
d681aa7977
Fixed GtkComboBox to properly set tearoff state on delegate GtkTreeMenu.
...
This breakage was also the cause of not correctly positioning the child
menu over the selected item.
2011-01-04 23:37:13 +09:00
7b2d6e5cdf
Make GtkTreeMenu a private class:
...
- Removed GtkTreeMenu from gtk-docs.sgml
- Removed GtkTreeMenu from gtk3-sections.txt
- Removed GtkTreeMenu from gtk.symbols
- Make GtkTreeMenu apis prefixed with '_' (including _get_type()).
- Updated GtkComboBox sources to use the private apis
- Updated GtkCellView to not mention #GtkTreeMenu in gtk-doc statements
- Updated tests/testtreemenu to not use a GtkTreeMenu but still
show a very fancy GtkComboBox
- Moved gtktreemenu.h to private headers section in the makefile.
- Removed include of gtktreemenu.h from gtk.h
2011-01-04 23:37:13 +09:00
57857f13df
Added new constructors gtk_combo_box_new_with_area and gtk_combo_box_new_with_area_and_entry.
2011-01-04 23:37:13 +09:00
b3ff60db71
Fixed GtkComboBox to let the cell-layout implementation handle <cell-packing>
2011-01-04 23:37:13 +09:00
01981311da
Removed GtkComboBoxPrivate->minimum/natural_width members.
...
And updated gtk_combo_box_list_position() which is still waiting
for GtkTreeView to report natural width in order to properly do
non fixed width dropdown menus.
2011-01-04 23:37:12 +09:00
ee02ac5863
Re-refactored GtkComboBox to not reorder the file.
...
Turns out reordering the file the way I did before put
me in an unmergable situation, now re-refactored the
combo and list-mode works again.
2011-01-04 23:37:12 +09:00
f3de78a023
Fixing GtkComboBox breakage after merge, completing hand-merge of style-context GtkBorder issues (now it works again).
2011-01-04 23:37:11 +09:00
83c69f4cf3
Implementing GtkComboBox using GtkTreeMenu !
...
First iteration at implementing combo box using a delegate
treemenu, almost everything is working. Still need to finalize
sensitivity issues in GtkTreeMenu (and should go ahead and pass
through GtkComboBox code with a fine comb...).
2011-01-04 23:37:08 +09:00
c659542333
Check for NULL pointer
2010-12-24 14:45:47 +01:00
2ed81aa57c
Remove sealed members from GtkMenuShell
2010-12-23 18:21:53 -05:00
c5b020e628
Remove sealed members from GtkMenu
2010-12-23 15:51:20 -05:00
e92da3e166
gtkcombobox.c: Use accessor functions to access GtkTreeSelection
2010-12-19 01:27:41 +00:00
faf35d708b
Fix size allocation for list mode combo box
2010-12-17 16:53:46 +01:00
21fc66f120
Set cell_view to NULL immediately after unparenting
...
This way we are sure no invalid pointer will be accessed in between.
2010-12-17 16:53:46 +01:00
81515f7183
Check if popup_window is mapped, not popup_widget
...
Before hide_all was used on popup_window, which means popup_widget
was also unmapped. This is now no longer the case. This fixes
subsequent pop ups for appears-as-list == 1.
2010-12-17 16:53:46 +01:00
4038cd76b3
Removed GtkTreeViewPrivate from gtktreeprivate.h and added a few more accessors.
...
This actually much simplifies interaction with GtkTreeSelection
(at least reduces code size where dealing width the treeview anchor path).
2010-12-05 22:11:37 +09:00
d351b40a0b
Add internal accessor for GtkEntry->is_cell_renderer
...
This fixes commit fb3429e507
2010-12-04 22:06:02 -05:00
cf0bd12e6c
GtkStyleProperties: Turn border-width into a GtkBorder property.
...
All current users of this CSS property have been updated to deal
with a GtkBorder.
Also a 0 border width has been set in the default CSS to ensure
GtkStyleContext and GtkThemingEngine always provide a non-NULL
pointer for this property.
2010-12-04 15:39:52 +01:00
1d5a6b687e
GtkComboBox: Use style context for rendering
2010-12-04 15:39:40 +01:00
0e25b19515
GtkComboBox: Set widget state as state flags.
2010-12-04 15:38:30 +01:00
922324553b
Bug 619148 - "active ID" properties (GtkComboBox)
...
Based on a patch by Matthias, add an "active-id" property for
GtkComboBox and add some convenience API for GtkComboBoxText.
Also, add a test case to gtk-demo.
2010-11-30 00:29:16 -05:00
2451e6f690
Small doc fixup
2010-11-29 11:25:10 -05:00
fb5dd9f72f
Move all GdkDevice members to private and add one missing accessor
2010-11-23 20:25:13 +01:00
4e3db2e3a8
gtkcombobox: Use accessor functions to access GtkTreeViewColumn
2010-11-19 08:38:12 +01:00
fb3429e507
gtkcombobox: Do not access GtkEntry internals
...
It's not needed anymore
2010-11-19 06:15:27 +01:00
3a0afce509
gtk: remove "gboolean homogeneous" from gtk_box_new()
...
Because it's FALSE in virtually all use cases.
2010-10-31 19:22:28 +01:00
a9894d4cf4
Use gtk_box_new() instead gtk_[v|h]box_new()
2010-10-30 05:22:58 +02:00
8d008790be
Use gtk_separator_new() instead gtk_[v|h]separator_new()
2010-10-30 02:26:23 +02:00
ac3fe174f7
GtkComboBox: Add a constructor that takes a model and adds an entry
...
https://bugzilla.gnome.org/show_bug.cgi?id=633050
2010-10-29 12:28:42 -04:00
520a6aeb8f
Fix up docs
2010-10-23 23:41:08 +02:00
7651c231e0
Revert the id-column patch
...
It didn't quite turn out as I wanted it.
I'll put it in bug 619148 for now.
2010-10-23 19:34:20 +02:00
9fb36fff36
Add a way to associate numeric ids with combobox values
...
This will let us use combo boxes as property editors for
GSettings enmerations easily.
2010-10-23 02:31:30 +02:00
d6a73fd5b0
Assign all g_signal_connect() and friends to gulong variables
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=87821
2010-10-22 18:58:47 +02:00