diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 15:18:46 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 15:18:46 +0000 |
commit | 56294d30a82ec2da6f9ce399740c1ef65a9ddef4 (patch) | |
tree | bbe3823e41495d026ba8edc6eeaef166edb7e2a2 /src/gs-common.h | |
parent | Initial commit. (diff) | |
download | gnome-software-56294d30a82ec2da6f9ce399740c1ef65a9ddef4.tar.xz gnome-software-56294d30a82ec2da6f9ce399740c1ef65a9ddef4.zip |
Adding upstream version 3.38.1.upstream/3.38.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/gs-common.h')
-rw-r--r-- | src/gs-common.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/src/gs-common.h b/src/gs-common.h new file mode 100644 index 0000000..7540aef --- /dev/null +++ b/src/gs-common.h @@ -0,0 +1,51 @@ +/* -*- 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) 2016 Kalev Lember <klember@redhat.com> + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#pragma once + +#include <gio/gdesktopappinfo.h> +#include <gtk/gtk.h> + +#include "gnome-software-private.h" + +G_BEGIN_DECLS + +void gs_start_spinner (GtkSpinner *spinner); +void gs_stop_spinner (GtkSpinner *spinner); +void gs_container_remove_all (GtkContainer *container); +void gs_grab_focus_when_mapped (GtkWidget *widget); + +void gs_app_notify_installed (GsApp *app); +GtkResponseType + gs_app_notify_unavailable (GsApp *app, + GtkWindow *parent); + +void gs_image_set_from_pixbuf_with_scale (GtkImage *image, + const GdkPixbuf *pixbuf, + gint scale); +void gs_image_set_from_pixbuf (GtkImage *image, + const GdkPixbuf *pixbuf); + +gboolean gs_utils_is_current_desktop (const gchar *name); +void gs_utils_widget_set_css (GtkWidget *widget, + GtkCssProvider **provider, + const gchar *class_name, + const gchar *css); +const gchar *gs_utils_get_error_value (const GError *error); +void gs_utils_show_error_dialog (GtkWindow *parent, + const gchar *title, + const gchar *msg, + const gchar *details); +gchar *gs_utils_build_unique_id_kind (AsAppKind kind, + const gchar *id); +gboolean gs_utils_list_has_app_fuzzy (GsAppList *list, + GsApp *app); +void gs_utils_reboot_notify (GsAppList *list); + +G_END_DECLS |