Blame src/goabackend/nautilus-floating-bar.h

Packit 79f644
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
Packit 79f644
Packit 79f644
/* Nautilus - Floating status bar.
Packit 79f644
 *
Packit 79f644
 * Copyright (C) 2011 Red Hat Inc.
Packit 79f644
 *
Packit 79f644
 * This library is free software; you can redistribute it and/or
Packit 79f644
 * modify it under the terms of the GNU Library General Public
Packit 79f644
 * License as published by the Free Software Foundation; either
Packit 79f644
 * version 2 of the License, or (at your option) any later version.
Packit 79f644
 *
Packit 79f644
 * This library is distributed in the hope that it will be useful,
Packit 79f644
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 79f644
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 79f644
 * Library General Public License for more details.
Packit 79f644
 *
Packit 79f644
 * You should have received a copy of the GNU Library General Public
Packit 79f644
 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
Packit 79f644
 *
Packit 79f644
 * Authors: Cosimo Cecchi <cosimoc@redhat.com>
Packit 79f644
 *
Packit 79f644
 */
Packit 79f644
Packit 79f644
#ifndef __NAUTILUS_FLOATING_BAR_H__
Packit 79f644
#define __NAUTILUS_FLOATING_BAR_H__
Packit 79f644
Packit 79f644
#include <gtk/gtk.h>
Packit 79f644
Packit 79f644
#define NAUTILUS_FLOATING_BAR_ACTION_ID_STOP 1
Packit 79f644
Packit 79f644
#define NAUTILUS_TYPE_FLOATING_BAR nautilus_floating_bar_get_type()
Packit 79f644
#define NAUTILUS_FLOATING_BAR(obj) \
Packit 79f644
  (G_TYPE_CHECK_INSTANCE_CAST ((obj), NAUTILUS_TYPE_FLOATING_BAR, NautilusFloatingBar))
Packit 79f644
#define NAUTILUS_FLOATING_BAR_CLASS(klass) \
Packit 79f644
  (G_TYPE_CHECK_CLASS_CAST ((klass), NAUTILUS_TYPE_FLOATING_BAR, NautilusFloatingBarClass))
Packit 79f644
#define NAUTILUS_IS_FLOATING_BAR(obj) \
Packit 79f644
  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NAUTILUS_TYPE_FLOATING_BAR))
Packit 79f644
#define NAUTILUS_IS_FLOATING_BAR_CLASS(klass) \
Packit 79f644
  (G_TYPE_CHECK_CLASS_TYPE ((klass), NAUTILUS_TYPE_FLOATING_BAR))
Packit 79f644
#define NAUTILUS_FLOATING_BAR_GET_CLASS(obj) \
Packit 79f644
  (G_TYPE_INSTANCE_GET_CLASS ((obj), NAUTILUS_TYPE_FLOATING_BAR, NautilusFloatingBarClass))
Packit 79f644
Packit 79f644
typedef struct _NautilusFloatingBar NautilusFloatingBar;
Packit 79f644
typedef struct _NautilusFloatingBarClass NautilusFloatingBarClass;
Packit 79f644
typedef struct _NautilusFloatingBarDetails NautilusFloatingBarDetails;
Packit 79f644
Packit 79f644
struct _NautilusFloatingBar {
Packit 79f644
	GtkBox parent;
Packit 79f644
	NautilusFloatingBarDetails *priv;
Packit 79f644
};
Packit 79f644
Packit 79f644
struct _NautilusFloatingBarClass {
Packit 79f644
	GtkBoxClass parent_class;
Packit 79f644
};
Packit 79f644
Packit 79f644
/* GObject */
Packit 79f644
GType       nautilus_floating_bar_get_type  (void);
Packit 79f644
Packit 79f644
GtkWidget * nautilus_floating_bar_new              (const gchar *label,
Packit 79f644
						    gboolean show_spinner);
Packit 79f644
Packit 79f644
void        nautilus_floating_bar_set_label        (NautilusFloatingBar *self,
Packit 79f644
						    const gchar *label);
Packit 79f644
void        nautilus_floating_bar_set_show_spinner (NautilusFloatingBar *self,
Packit 79f644
						    gboolean show_spinner);
Packit 79f644
Packit 79f644
void        nautilus_floating_bar_add_action       (NautilusFloatingBar *self,
Packit 79f644
						    const gchar *icon_name,
Packit 79f644
						    gint action_id);
Packit 79f644
void        nautilus_floating_bar_cleanup_actions  (NautilusFloatingBar *self);
Packit 79f644
Packit 79f644
#endif /* __NAUTILUS_FLOATING_BAR_H__ */
Packit 79f644