Closed Bug 888863 Opened 11 years ago Closed 11 years ago

Port GTK2 to GTK3 - entry combo box update

Categories

(Core :: Widget: Gtk, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla25

People

(Reporter: stransky, Assigned: stransky)

References

Details

Attachments

(1 file, 1 obsolete file)

+++ This bug was initially created as a clone of Bug #627699 +++

GTK+ 3.0 and GNOME 3 are approaching and we should get Firefox ready for them. This one is about combo box rendering.
Attached patch added combo box entry widget (obsolete) — Splinter Review
Rather minor fix but we may do it, fixes a TODO we left here.
Attachment #770124 - Flags: review?(karlt)
The original purpose of this bug was incorrect combo box rendering, but it was caused by missing linux theme on my working tree. The comboboxes are rendered correctly in latest trunk, so let's address the TODO here at least.
Summary: Port GTK2 to GTK3 - combo box rendering → Port GTK2 to GTK3 - entry combo box update
Comment on attachment 770124 [details] [diff] [review]
added combo box entry widget

>-        if (GTK_IS_HBOX(buttonChild)) {
>+        if (GTK_IS_BOX(buttonChild)) {
>             /* appears-as-list = FALSE, cell-view = TRUE; the button
>              * contains an hbox. This hbox is there because ComboBoxEntry
>              * inherits from ComboBox which needs to place a cell renderer,
>              * a separator, and an arrow in the button when appears-as-list
>              * is FALSE. Here the hbox should only contain an arrow, since
>              * a ComboBoxEntry doesn't need all those widgets in the
>              * button. */
>             gtk_container_forall(GTK_CONTAINER(buttonChild),

I think this change is needed in ensure_combo_box_widgets() also.

The comment could do with some updating as ComboBoxEntry doesn't exist in GTK3.
I suggest copying the comment from ensure_combo_box_widgets(), and changing "hbox"s to "box"s.
I don't think the "should only contain an arrow" bit is or was true.
Attachment #770124 - Flags: review?(karlt) → review+
An updated patch for check-in.
Attachment #775572 - Flags: review+
Attachment #775572 - Flags: checkin?
Attachment #770124 - Attachment is obsolete: true
Attachment #775572 - Flags: checkin? → checkin+
https://hg.mozilla.org/mozilla-central/rev/9d889929c408
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
Depends on: 894606
No longer depends on: 894606
Blocks: 1034064
No longer blocks: 1034064
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: