Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gtkurilauncher.h
Go to the documentation of this file.
1/* GTK - The GIMP Toolkit
2 *
3 * Copyright (C) 2022 Red Hat, Inc.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#pragma once
20
21#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
22#error "Only <gtk/gtk.h> can be included directly."
23#endif
24
25#include <gdk/gdk.h>
26#include <gtk/gtkwindow.h>
27
29
30#define GTK_TYPE_URI_LAUNCHER (gtk_uri_launcher_get_type ())
31
33G_DECLARE_FINAL_TYPE (GtkUriLauncher, gtk_uri_launcher, GTK, URI_LAUNCHER, GObject)
34
36GtkUriLauncher * gtk_uri_launcher_new (const char *uri);
37
39const char * gtk_uri_launcher_get_uri (GtkUriLauncher *self);
41void gtk_uri_launcher_set_uri (GtkUriLauncher *self,
42 const char *uri);
43
45void gtk_uri_launcher_launch (GtkUriLauncher *self,
46 GtkWindow *parent,
47 GCancellable *cancellable,
48 GAsyncReadyCallback callback,
49 gpointer user_data);
50
53 GAsyncResult *result,
54 GError **error);
55
56
#define GDK_AVAILABLE_IN_4_10
struct _GAsyncResult GAsyncResult
Definition giotypes.h:36
void(* GAsyncReadyCallback)(GObject *source_object, GAsyncResult *res, gpointer data)
Definition giotypes.h:190
#define G_END_DECLS
Definition gmacros.h:910
#define G_BEGIN_DECLS
Definition gmacros.h:909
GDK_AVAILABLE_IN_4_10 gboolean gtk_uri_launcher_launch_finish(GtkUriLauncher *self, GAsyncResult *result, GError **error)
GDK_AVAILABLE_IN_4_10 GDK_AVAILABLE_IN_4_10 GtkUriLauncher * gtk_uri_launcher_new(const char *uri)
GDK_AVAILABLE_IN_4_10 const char * gtk_uri_launcher_get_uri(GtkUriLauncher *self)
GDK_AVAILABLE_IN_4_10 void gtk_uri_launcher_set_uri(GtkUriLauncher *self, const char *uri)
GDK_AVAILABLE_IN_4_10 void gtk_uri_launcher_launch(GtkUriLauncher *self, GtkWindow *parent, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
#define G_DECLARE_FINAL_TYPE(ModuleObjName, module_obj_name, MODULE, OBJ_NAME, ParentName)
Definition gtype.h:1602
gint gboolean
Definition gtypes.h:56
void * gpointer
Definition gtypes.h:109
static void error(LoadState *S, const char *why)