summaryrefslogtreecommitdiff
path: root/gtk/gtkcombobox.c
Commit message (Collapse)AuthorAgeFilesLines
* combobox: Correct the CSS node docsMatthias Clasen2016-03-021-3/+5
| | | | The box was somehow overlooked in the diagrams.
* combobox: Put child into boxBenjamin Otte2016-03-021-153/+39
| | | | | 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.
* combobox: Put the button in a boxBenjamin Otte2016-03-021-12/+15
| | | | This is so we can put the entry into the box in the next commit.
* combobox: Make sure the cellview expandsBenjamin Otte2016-03-021-0/+24
| | | | | Windows theme needs the expansion for correct drawing of the focus outline.
* combobox: Ensure an entry gets created for has_entry combosBenjamin Otte2016-03-021-27/+33
| | | | | Previously add/remove on the combobox would result in a cellview being created.
* Remove more unnecessary redrawsTimm Bäder2016-02-071-2/+0
| | | | | The call to gtk_widget_set_state_flags immediately before these already queues a redraw/allocate/resize in case they have to be queued.
* combobox: Avoid a misleading indentationMatthias Clasen2016-01-301-6/+4
| | | | | gcc 6 warns about this sort of thing. There were also some stray ; here.
* combo: Add .linked class when appropriateMatthias Clasen2016-01-151-0/+3
| | | | | Add the .linked style class to combo boxes which have an entry, since that is what they are.
* combobox: Document the popup window CSS nodeMatthias Clasen2016-01-151-2/+3
|
* combobox: remove unused struct memberCosimo Cecchi2015-12-221-12/+3
| | | | The box was removed a while ago.
* combobox: deprecate shadow-type style propertyCosimo Cecchi2015-12-221-14/+4
| | | | | It does not add any value to what can be achieved through regular CSS styling.
* combobox: port to use a gadgetCosimo Cecchi2015-12-221-298/+331
| | | | | Wrap the size request and allocate code into a GtkCssCustomGadget. This makes margins work on GtkComboBox.
* combobox: use a private variable when possibleCosimo Cecchi2015-12-221-147/+182
| | | | Instead of dereferencing the same variable over and over.
* combobox: trivial code cleanupCosimo Cecchi2015-12-221-8/+6
|
* combobox: remove unneeded checkCosimo Cecchi2015-12-221-7/+0
| | | | The combobox always has a window.
* combobox: use GtkIcon to render button arrowCosimo Cecchi2015-12-221-24/+11
| | | | | We can now use the newly introduced GtkIcon widget to properly render the arrow in the combobox with CSS.
* GtkComboBox: Avoid GdkDeviceManager APICarlos Garnacho2015-12-161-8/+2
| | | | | We used to pick a master pointer "at random", use the default seat pointer instead.
* GtkComboBox: Use gdk_seat_grab()Carlos Garnacho2015-12-151-44/+15
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=759309
* Fix method to update menu sensitivity of combo boxAdam Reichold2015-12-071-10/+2
| | | | | | | After removal of the selectable header and separator from the combo box, the method to update the menu sensitivity must be changed as it assumes at least two items within each sub menu and contains special handling for the separator. Removing this fixes bug #759079.
* combobox: Don't add .linkedMatthias Clasen2015-11-051-3/+0
| | | | | It interferes with getting the desired styling for combo boxes with an entry, and is not needed.
* combo box: Add diagrams to CSS documentationMatthias Clasen2015-11-031-1/+6
|
* Deprecate widget-specific :focus-on-click propertiesFlorian Müllner2015-11-031-35/+4
| | | | | | | | | The differences between the existing properties and the newly added GtkWidget:focus-on-click property are minimal (different owner_type in GParamSpec), so it is extremely unlikely that dropping the former would break anything. https://bugzilla.gnome.org/show_bug.cgi?id=757269
* combobox: Use element namesMatthias Clasen2015-11-021-1/+15
| | | | | | 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.
* entry: Always render like with is_cellrendererBenjamin Otte2015-10-281-5/+0
| | | | | | | And remove the API to set that variable. If you want the entry to not fill its whole allocated area, gtk_widget_set_valign (entry, GTK_ALIGN_FILL); will give you the old behavior.
* combobox: Stop using old styling codeBenjamin Otte2015-09-131-82/+7
| | | | Instead of get_path_for_child() use CSS nodes.
* combobox: Refactor cell view treatmentBenjamin Otte2015-07-311-278/+88
| | | | | | | | 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.
* combobox: Handle NULLing the cellview on remove simplerBenjamin Otte2015-07-311-7/+1
|
* combobox: Remove unused variablesBenjamin Otte2015-07-311-5/+0
|
* combobox: Create cell view identicallyBenjamin Otte2015-07-311-17/+15
| | | | ... in the two places it can be created.
* combobox: Use ui file to construct internal button childBenjamin Otte2015-07-261-12/+25
|
* combobox: Create button on init() and destroy in destroy()Benjamin Otte2015-07-261-38/+25
| | | | | The button is the same in both menu and list mode, so there's no need to destroy and recreate it.
* combobox: Add scroll support in list modeBenjamin Otte2015-07-261-0/+2
|
* combobox: Remove unused argumentBenjamin Otte2015-07-261-49/+10
| | | | The visible check is always FALSE, so no need to keep the code around.
* combobox: Remove the box from the buttonBenjamin Otte2015-07-261-42/+21
| | | | | | | ... when in menu mode. Now that we don't have a separator anymore, the box is not needed anymore.
* combobox: Remove the separatorBenjamin Otte2015-07-261-21/+0
| | | | | | | It was a special case and it's not used by themes anymore. Plus, in the CSS world, if a theme wants a separator, it can just style the button's border to create one.
* combobox: Unconditionally draw background and borderBenjamin Otte2015-07-211-12/+8
|
* combobox: Remove autoscroll timer on popdownBenjamin Otte2015-07-211-0/+6
|
* combobox: Remove cell_view_frameBenjamin Otte2015-07-211-93/+2
| | | | Cell views can draw their own frames now.
* combobox: Simplify codeBenjamin Otte2015-07-181-13/+4
| | | | | We don't add new children to the child's parent, we add them to ourself. Because guess who a child's parent is?
* combobox: Remove unused header function functionalityBenjamin Otte2015-07-181-15/+0
|
* combobox: Remove unused argument from private functionBenjamin Otte2015-07-181-6/+4
|
* combo box: Fix compiler warningsMatthias Clasen2015-06-021-3/+2
| | | | Fix warnings due to -Wdeclaration-after-statement and -Wshadow.
* combobox: Don't set cell view backgroundBenjamin Otte2014-10-031-53/+0
| | | | | This can be done with CSS these days. Also, these days the background of cell views is transparent, so it doesn't even have to be done.
* widget: Make _gtk_set_simple_clip() take an optional content clipBenjamin Otte2014-08-211-1/+1
|
* gtk: Don't use GObjectClass.constructorJasper St. Pierre2014-06-261-18/+7
| | | | Use the newer constructed instead, which has a fast path in GObject.
* Revert "gtkbin: replace internal api"Matthias Clasen2014-06-161-5/+13
| | | | | | This reverts commit 0f4751c08e22a4f45d58e2368e4ae82df407d330. This causes warnings from the notebook and combobox code.
* gtkbin: replace internal apiStefan Sauer2014-06-141-13/+5
|
* GtkComboBox: Add private api to get the popupMatthias Clasen2014-06-101-0/+10
| | | | This will be used to make the popup appear in the inspector.
* GtkComboBox: Notify for has-frame and editing-canceledMatthias Clasen2014-06-091-17/+25
|
* GtkComboBox: Use G_PARAM_EXPLICIT_NOTIFYMatthias Clasen2014-06-091-16/+17
|