diff options
Diffstat (limited to 'src/gs-updates-section.h')
-rw-r--r-- | src/gs-updates-section.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/src/gs-updates-section.h b/src/gs-updates-section.h new file mode 100644 index 0000000..852a0b5 --- /dev/null +++ b/src/gs-updates-section.h @@ -0,0 +1,46 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- + * vi:set noexpandtab tabstop=8 shiftwidth=8: + * + * Copyright (C) 2013 Richard Hughes <richard@hughsie.com> + * Copyright (C) 2015-2017 Kalev Lember <klember@redhat.com> + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#pragma once + +#include <gtk/gtk.h> + +#include "gs-app-list.h" +#include "gs-plugin-loader.h" +#include "gs-page.h" + +G_BEGIN_DECLS + +#define GS_TYPE_UPDATES_SECTION (gs_updates_section_get_type ()) + +G_DECLARE_FINAL_TYPE (GsUpdatesSection, gs_updates_section, GS, UPDATES_SECTION, GtkListBox) + +typedef enum { + GS_UPDATES_SECTION_KIND_OFFLINE_FIRMWARE, + GS_UPDATES_SECTION_KIND_OFFLINE, + GS_UPDATES_SECTION_KIND_ONLINE, + GS_UPDATES_SECTION_KIND_ONLINE_FIRMWARE, + GS_UPDATES_SECTION_KIND_LAST +} GsUpdatesSectionKind; + +GtkListBox *gs_updates_section_new (GsUpdatesSectionKind kind, + GsPluginLoader *plugin_loader, + GsPage *page); +GsAppList *gs_updates_section_get_list (GsUpdatesSection *self); +void gs_updates_section_add_app (GsUpdatesSection *self, + GsApp *app); +void gs_updates_section_remove_all (GsUpdatesSection *self); +void gs_updates_section_set_size_groups (GsUpdatesSection *self, + GtkSizeGroup *image, + GtkSizeGroup *name, + GtkSizeGroup *desc, + GtkSizeGroup *button, + GtkSizeGroup *header); + +G_END_DECLS |