mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 888863 - Port GTK2 to GTK3 - entry combo box update. r=karlt
This commit is contained in:
parent
e79e36b645
commit
5b6c5c5aa2
@ -312,7 +312,7 @@ ensure_combo_box_widgets()
|
||||
if (gComboBoxButtonWidget) {
|
||||
/* Get the widgets inside the Button */
|
||||
buttonChild = gtk_bin_get_child(GTK_BIN(gComboBoxButtonWidget));
|
||||
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 the ComboBox
|
||||
* needs to place a cell renderer, a separator, and an arrow in
|
||||
@ -401,7 +401,7 @@ ensure_combo_box_entry_widgets()
|
||||
|
||||
/* Create a ComboBoxEntry if needed */
|
||||
if (!gComboBoxEntryWidget) {
|
||||
gComboBoxEntryWidget = NULL; /* TODO - gtk_combo_box_entry_new();*/
|
||||
gComboBoxEntryWidget = gtk_combo_box_new_with_entry();
|
||||
setup_widget_prototype(gComboBoxEntryWidget);
|
||||
}
|
||||
|
||||
@ -418,14 +418,11 @@ ensure_combo_box_entry_widgets()
|
||||
if (gComboBoxEntryButtonWidget) {
|
||||
/* Get the Arrow inside the Button */
|
||||
buttonChild = gtk_bin_get_child(GTK_BIN(gComboBoxEntryButtonWidget));
|
||||
if (GTK_IS_HBOX(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. */
|
||||
if (GTK_IS_BOX(buttonChild)) {
|
||||
/* appears-as-list = FALSE, cell-view = TRUE; the button
|
||||
* contains an hbox. This hbox is there because the ComboBox
|
||||
* needs to place a cell renderer, a separator, and an arrow in
|
||||
* the button when appears-as-list is FALSE. */
|
||||
gtk_container_forall(GTK_CONTAINER(buttonChild),
|
||||
moz_gtk_get_combo_box_entry_arrow,
|
||||
NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user