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

Function find_widget

gtk/src/title-add.c:42–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40
41
42static GtkWidget *
43find_widget (GtkWidget *widget, const char *name)
44{
45 const char *wname;
46 GtkWidget *result = NULL;
47
48 if (widget == NULL || name == NULL)
49 return NULL;
50
51 wname = gtk_widget_get_name(widget);
52 if (wname != NULL && !strncmp(wname, name, 80))
53 {
54 return widget;
55 }
56 GtkWidget *child = gtk_widget_get_first_child(widget);
57 while (child != NULL)
58 {
59 result = find_widget(child, name);
60 if (result != NULL) break;
61 child = gtk_widget_get_next_sibling(child);
62 }
63 return result;
64}
65
66static gboolean
67validate_settings (signal_user_data_t *ud, GhbValue *settings, gint batch)

Callers 8

title_add_set_sensitiveFunction · 0.70
title_add_select_all_cbFunction · 0.70
title_add_clear_all_cbFunction · 0.70
title_add_invert_cbFunction · 0.70
title_dest_file_cbFunction · 0.70
title_dest_dir_cbFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected