summaryrefslogtreecommitdiffstats
path: root/gtk/src/settings.c
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2019-07-24 15:03:22 -0700
committerJohn Stebbins <[email protected]>2019-07-26 12:57:20 -0700
commita1d064d2f01d963213b1336c0aeda9e7a1a6817f (patch)
tree3857d6faaa5c61a71d1106403f1cbf74ba93d992 /gtk/src/settings.c
parent30b59112b75ef6572615db032fb461d9e9c51fa2 (diff)
LinGui: WIP gtk4 support
Known issues and todo: notebooks, use GtkNotebookPage semantics in ui file fix keypress delete in queue_list fix dest_file grab-focus? (highlight of filename for editing) focus-in/out with GtkEventControllerKey preview_state_cb how to handle icon-ified preview? preview_configure_cb, saving preview window size? accelerator alt-d grab-focus destination key-press-event in chapter list, ghbcellrenderertext -> GtkEventControllerKey Why doesn't summary preview image scale correctly? "System" in about dialog? why is the tab there when "system" prop not set? GtkSeparatorToolitem seems to ignore "draw" prop?
Diffstat (limited to 'gtk/src/settings.c')
-rw-r--r--gtk/src/settings.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/src/settings.c b/gtk/src/settings.c
index 91853a940..7dad5f7e8 100644
--- a/gtk/src/settings.c
+++ b/gtk/src/settings.c
@@ -102,7 +102,7 @@ ghb_widget_value(GtkWidget *widget)
name = ghb_get_setting_key(widget);
if (type == GTK_TYPE_ENTRY)
{
- const gchar *str = gtk_entry_get_text(GTK_ENTRY(widget));
+ const gchar *str = ghb_entry_get_text(GTK_ENTRY(widget));
value = ghb_string_value_new(str);
}
else if (type == GTK_TYPE_RADIO_BUTTON)
@@ -161,7 +161,7 @@ ghb_widget_value(GtkWidget *widget)
else if (gtk_combo_box_get_has_entry(GTK_COMBO_BOX(widget)))
{
const gchar *str;
- str = gtk_entry_get_text(GTK_ENTRY(gtk_bin_get_child(GTK_BIN(widget))));
+ str = ghb_entry_get_text(GTK_ENTRY(gtk_bin_get_child(GTK_BIN(widget))));
if (str == NULL) str = "";
value = ghb_string_value_new(str);
}
@@ -343,7 +343,7 @@ ghb_update_widget(GtkWidget *widget, const GhbValue *value)
if (type == GTK_TYPE_ENTRY)
{
- gtk_entry_set_text((GtkEntry*)widget, str);
+ ghb_entry_set_text((GtkEntry*)widget, str);
}
else if (type == GTK_TYPE_RADIO_BUTTON)
{
@@ -412,7 +412,7 @@ ghb_update_widget(GtkWidget *widget, const GhbValue *value)
GtkEntry *entry = GTK_ENTRY(gtk_bin_get_child(GTK_BIN(widget)));
if (entry)
{
- gtk_entry_set_text (entry, str);
+ ghb_entry_set_text (entry, str);
}
else
{