Package list xapp / 77a1fd2 libxapp / xapp-gtk-window.h
77a1fd2

Tree @77a1fd2 (Download .tar.gz)

xapp-gtk-window.h @77a1fd2raw · history · blame

#ifndef __XAPP_GTK_WINDOW_H__
#define __XAPP_GTK_WINDOW_H__

#include <stdio.h>

#include <glib-object.h>
#include <gtk/gtk.h>

G_BEGIN_DECLS

#define XAPP_TYPE_GTK_WINDOW            (xapp_gtk_window_get_type ())
#define XAPP_GTK_WINDOW(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), XAPP_TYPE_GTK_WINDOW, XAppGtkWindow))
#define XAPP_GTK_WINDOW_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass),  XAPP_TYPE_GTK_WINDOW, XAppGtkWindowClass))
#define XAPP_IS_GTK_WINDOW(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), XAPP_TYPE_GTK_WINDOW))
#define XAPP_IS_GTK_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass),  XAPP_TYPE_GTK_WINDOW))
#define XAPP_GTK_WINDOW_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj),  XAPP_TYPE_GTK_WINDOW, XAppGtkWindowClass))

typedef struct _XAppGtkWindowPrivate XAppGtkWindowPrivate;
typedef struct _XAppGtkWindow XAppGtkWindow;
typedef struct _XAppGtkWindowClass XAppGtkWindowClass;

struct _XAppGtkWindow
{
    GtkWindow parent_object;

    XAppGtkWindowPrivate *priv;
};

struct _XAppGtkWindowClass
{
    GtkWindowClass parent_class;
};

/* Class */
GType                    xapp_gtk_window_get_type                        (void);
XAppGtkWindow           *xapp_gtk_window_new                             (void);

void                     xapp_gtk_window_set_icon_name                   (XAppGtkWindow   *window,
                                                                          const gchar     *icon_name);

void                     xapp_gtk_window_set_icon_from_file              (XAppGtkWindow   *window,
                                                                          const gchar     *file_name,
                                                                          GError         **error);

/* Wrappers (for GtkWindow subclasses like GtkDialog)*/

void                     xapp_set_window_icon_name                       (GtkWindow       *window,
                                                                          const gchar     *icon_name);

void                     xapp_set_window_icon_from_file                  (GtkWindow   *window,
                                                                          const gchar *file_name,
                                                                          GError     **error);

G_END_DECLS

#endif  /* __XAPP_GTK_WINDOW_H__ */