mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Gtk3: fix direct access issue for entry widget in cell renderer mode
The old code directly accessed a member variable of GtkEntry. This direct access is no longer possible, but there is no public function to get/set this variable. There is a private one used by GtkComboBox internally) but it's not exported so it can't be used either. As an interim solution I peeked at how hesiod handled it in his earlier (unmerged) gtk3 branch. He replaced this private access with setting gtk_widget_set_visible, something I wouldn't have considered in this situation. The issue is in the register2 code, so for now it's not too important. We can investigate this more when the register rewrite is picked up again.
This commit is contained in:
parent
e26480ccbb
commit
87a0cb7360
@ -101,7 +101,7 @@ gnc_popup_entry_init (GncPopupEntry *widget)
|
||||
gtk_widget_show (widget->hbox);
|
||||
|
||||
widget->entry = g_object_new (GTK_TYPE_ENTRY, "has_frame", FALSE, NULL);
|
||||
GTK_ENTRY (widget->entry)->is_cell_renderer = TRUE;
|
||||
gtk_entry_set_visibility (GTK_ENTRY (widget->entry), TRUE);
|
||||
gtk_widget_show (widget->entry);
|
||||
|
||||
widget->button = gtk_button_new ();
|
||||
|
Loading…
Reference in New Issue
Block a user