| 40 | |
| 41 | |
| 42 | static GtkWidget * |
| 43 | find_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 | |
| 66 | static gboolean |
| 67 | validate_settings (signal_user_data_t *ud, GhbValue *settings, gint batch) |
no outgoing calls
no test coverage detected