MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / ghb_get_setting_key

Function ghb_get_setting_key

gtk/src/settings.c:55–76  ·  view source on GitHub ↗

Map widget names to setting keys Widgets that map to settings have names of this format: s_

Source from the content-addressed store, hash-verified

53// Widgets that map to settings have names
54// of this format: s_<setting key>
55const gchar*
56ghb_get_setting_key(GtkWidget *widget)
57{
58 const gchar *name;
59
60 ghb_log_func();
61 if (widget == NULL) return NULL;
62 g_return_val_if_fail(GTK_IS_WIDGET(widget), NULL);
63 name = gtk_buildable_get_buildable_id(GTK_BUILDABLE(widget));
64
65 if (name == NULL || !strncmp(name, "Gtk", 3))
66 {
67 name = gtk_widget_get_name(widget);
68 }
69 if (name == NULL)
70 {
71 // Bad widget pointer? Should never happen.
72 g_debug("Bad widget");
73 return NULL;
74 }
75 return name;
76}
77
78GhbValue*
79ghb_widget_value(GtkWidget *widget)

Callers 13

activity_font_changed_cbFunction · 0.85
when_complete_changed_cbFunction · 0.85
pref_changed_cbFunction · 0.85
use_m4v_changed_cbFunction · 0.85
tweaks_changed_cbFunction · 0.85
show_preview_changed_cbFunction · 0.85
hbfd_feature_changed_cbFunction · 0.85
ghb_widget_valueFunction · 0.85
ghb_widget_to_settingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected