|
Lines 135-140
struct _GsDetailsPage
Link Here
|
| 135 |
GtkWidget *button_update; |
135 |
GtkWidget *button_update; |
| 136 |
GtkWidget *button_remove; |
136 |
GtkWidget *button_remove; |
| 137 |
GsProgressButton *button_cancel; |
137 |
GsProgressButton *button_cancel; |
|
|
138 |
GtkWidget *infobar_details_untrusted; |
| 139 |
GtkWidget *infobar_details_label_untrusted; |
| 138 |
GtkWidget *infobar_details_eol; |
140 |
GtkWidget *infobar_details_eol; |
| 139 |
GtkWidget *label_eol; |
141 |
GtkWidget *label_eol; |
| 140 |
GtkWidget *infobar_details_problems_label; |
142 |
GtkWidget *infobar_details_problems_label; |
|
Lines 1304-1309
gs_details_page_refresh_all (GsDetailsPage *self)
Link Here
|
| 1304 |
const gchar *tmp; |
1306 |
const gchar *tmp; |
| 1305 |
g_autoptr(GPtrArray) version_history = NULL; |
1307 |
g_autoptr(GPtrArray) version_history = NULL; |
| 1306 |
gboolean link_rows_visible; |
1308 |
gboolean link_rows_visible; |
|
|
1309 |
gboolean show_untrusted_card = FALSE; |
| 1310 |
|
| 1311 |
tmp = gs_app_get_origin_hostname(self->app); |
| 1312 |
if (g_settings_get_boolean(self->settings, "enable-hostname-whitelist") && gs_app_get_bundle_kind(self->app) != AS_BUNDLE_KIND_PACKAGE) { |
| 1313 |
if (tmp != NULL && tmp[0] != '\0') { |
| 1314 |
if (!g_strv_contains((const gchar * const*) g_settings_get_strv(self->settings, "hostname-whitelist"), tmp)) { |
| 1315 |
show_untrusted_card = TRUE; |
| 1316 |
} |
| 1317 |
} else { |
| 1318 |
show_untrusted_card = TRUE; |
| 1319 |
} |
| 1320 |
} |
| 1321 |
|
| 1322 |
gtk_label_set_label( |
| 1323 |
GTK_LABEL(self->infobar_details_label_untrusted), |
| 1324 |
g_strdup_printf( |
| 1325 |
_("Use caution when accessing third party content shown here, as it may contain executable code that hasn't been tested by %s for safety, stability, or quality."), |
| 1326 |
g_get_os_info(G_OS_INFO_KEY_NAME) |
| 1327 |
) |
| 1328 |
); |
| 1329 |
gtk_widget_set_visible(self->infobar_details_untrusted, show_untrusted_card); |
| 1307 |
|
1330 |
|
| 1308 |
/* change widgets */ |
1331 |
/* change widgets */ |
| 1309 |
tmp = gs_app_get_name (self->app); |
1332 |
tmp = gs_app_get_name (self->app); |
|
Lines 2780-2785
gs_details_page_class_init (GsDetailsPageClass *klass)
Link Here
|
| 2780 |
gtk_widget_class_bind_template_child (widget_class, GsDetailsPage, button_update); |
2803 |
gtk_widget_class_bind_template_child (widget_class, GsDetailsPage, button_update); |
| 2781 |
gtk_widget_class_bind_template_child (widget_class, GsDetailsPage, button_remove); |
2804 |
gtk_widget_class_bind_template_child (widget_class, GsDetailsPage, button_remove); |
| 2782 |
gtk_widget_class_bind_template_child (widget_class, GsDetailsPage, button_cancel); |
2805 |
gtk_widget_class_bind_template_child (widget_class, GsDetailsPage, button_cancel); |
|
|
2806 |
gtk_widget_class_bind_template_child (widget_class, GsDetailsPage, infobar_details_untrusted); |
| 2807 |
gtk_widget_class_bind_template_child (widget_class, GsDetailsPage, infobar_details_label_untrusted); |
| 2783 |
gtk_widget_class_bind_template_child (widget_class, GsDetailsPage, infobar_details_eol); |
2808 |
gtk_widget_class_bind_template_child (widget_class, GsDetailsPage, infobar_details_eol); |
| 2784 |
gtk_widget_class_bind_template_child (widget_class, GsDetailsPage, label_eol); |
2809 |
gtk_widget_class_bind_template_child (widget_class, GsDetailsPage, label_eol); |
| 2785 |
gtk_widget_class_bind_template_child (widget_class, GsDetailsPage, infobar_details_problems_label); |
2810 |
gtk_widget_class_bind_template_child (widget_class, GsDetailsPage, infobar_details_problems_label); |