~ubuntu-branches/ubuntu/trusty/xfce4-indicator-plugin/trusty

« back to all changes in this revision

Viewing changes to panel-plugin/indicator-button.h

  • Committer: Package Import Robot
  • Author(s): Unit 193
  • Date: 2014-02-13 16:07:50 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20140213160750-d34ou82fz6gn1z2n
Tags: upstream-2.2.0
ImportĀ upstreamĀ versionĀ 2.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*  Copyright (c) 2012 Andrzej <ndrwrdck@gmail.com>
 
1
/*  Copyright (c) 2012-2013 Andrzej <ndrwrdck@gmail.com>
2
2
 *
3
3
 *  This program is free software; you can redistribute it and/or modify
4
4
 *  it under the terms of the GNU General Public License as published by
18
18
#ifndef __INDICATOR_BUTTON_H__
19
19
#define __INDICATOR_BUTTON_H__
20
20
 
 
21
#include <glib.h>
 
22
#include <gtk/gtk.h>
 
23
#include <libindicator/indicator-object.h>
 
24
 
 
25
#include "indicator-config.h"
 
26
#include "indicator-box.h"
 
27
 
21
28
G_BEGIN_DECLS
22
29
 
23
30
GType xfce_indicator_button_get_type (void);
29
36
#define XFCE_IS_INDICATOR_BUTTON_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE((klass), XFCE_TYPE_INDICATOR_BUTTON))
30
37
#define XFCE_INDICATOR_BUTTON_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS((obj), XFCE_TYPE_INDICATOR_BUTTON, XfceIndicatorButtonClass))
31
38
 
32
 
typedef struct _XfceIndicatorButton XfceIndicatorButton;
33
 
typedef struct _XfceIndicatorButtonClass XfceIndicatorButtonClass;
34
 
 
35
 
struct _XfceIndicatorButton
36
 
{
37
 
  GtkToggleButton       __parent__;
38
 
 
39
 
  IndicatorObject      *io;
40
 
  IndicatorObjectEntry *entry;
41
 
  GtkMenu              *menu;
42
 
 
43
 
  GtkWidget            *box;
44
 
  GtkWidget            *label;
45
 
  GtkWidget            *icon;
46
 
  GtkWidget            *orig_icon;
47
 
  gulong                orig_icon_handler;
48
 
 
49
 
  gint                  panel_size;
50
 
  gint                  size;
51
 
  gint                  icon_size;
52
 
 
53
 
  GtkOrientation        panel_orientation;
54
 
  GtkOrientation        orientation;
55
 
};
56
 
 
57
 
struct _XfceIndicatorButtonClass
58
 
{
59
 
  GtkToggleButtonClass __parent__;
60
 
};
61
 
 
62
 
void xfce_indicator_button_set_label (XfceIndicatorButton *button, GtkLabel *label);
63
 
 
64
 
void xfce_indicator_button_set_image (XfceIndicatorButton *button, GtkImage *image);
65
 
 
66
 
void xfce_indicator_button_set_menu (XfceIndicatorButton *button, GtkMenu *menu);
67
 
 
68
 
GtkWidget *xfce_indicator_button_get_label (XfceIndicatorButton *button);
69
 
 
70
 
GtkWidget *xfce_indicator_button_get_image (XfceIndicatorButton *button);
71
 
 
72
 
IndicatorObjectEntry *xfce_indicator_button_get_entry (XfceIndicatorButton *button);
73
 
 
74
 
IndicatorObject *xfce_indicator_button_get_io (XfceIndicatorButton *button);
75
 
 
76
 
GtkMenu *xfce_indicator_button_get_menu (XfceIndicatorButton *button);
77
 
 
78
 
void xfce_indicator_button_set_orientation (XfceIndicatorButton *button,
79
 
                                            GtkOrientation panel_orientation,
80
 
                                            GtkOrientation orientation);
81
 
 
82
 
void xfce_indicator_button_set_size (XfceIndicatorButton *button,
83
 
                                     gint panel_size,
84
 
                                     gint size);
85
 
 
86
 
GtkWidget *xfce_indicator_button_new (IndicatorObject *io, IndicatorObjectEntry *entry);
 
39
typedef struct          _XfceIndicatorButton              XfceIndicatorButton;
 
40
typedef struct          _XfceIndicatorButtonClass         XfceIndicatorButtonClass;
 
41
 
 
42
 
 
43
void                    xfce_indicator_button_set_label   (XfceIndicatorButton        *button,
 
44
                                                           GtkLabel                   *label);
 
45
 
 
46
void                    xfce_indicator_button_set_image   (XfceIndicatorButton        *button,
 
47
                                                           GtkImage                   *image);
 
48
 
 
49
void                    xfce_indicator_button_set_menu    (XfceIndicatorButton        *button,
 
50
                                                           GtkMenu                    *menu);
 
51
 
 
52
IndicatorObjectEntry   *xfce_indicator_button_get_entry   (XfceIndicatorButton        *button);
 
53
 
 
54
IndicatorObject        *xfce_indicator_button_get_io      (XfceIndicatorButton        *button);
 
55
 
 
56
const gchar            *xfce_indicator_button_get_io_name (XfceIndicatorButton        *button);
 
57
 
 
58
guint                   xfce_indicator_button_get_pos     (XfceIndicatorButton        *button);
 
59
 
 
60
GtkMenu                *xfce_indicator_button_get_menu    (XfceIndicatorButton        *button);
 
61
 
 
62
gboolean                xfce_indicator_button_is_small    (XfceIndicatorButton        *button);
 
63
 
 
64
gint                    xfce_indicator_button_get_button_border (XfceIndicatorButton  *button);
 
65
 
 
66
GtkWidget              *xfce_indicator_button_new         (IndicatorObject            *io,
 
67
                                                           const gchar                *io_name,
 
68
                                                           IndicatorObjectEntry       *entry,
 
69
                                                           XfcePanelPlugin            *plugin,
 
70
                                                           IndicatorConfig            *config);
 
71
 
 
72
void                    xfce_indicator_button_disconnect_signals (XfceIndicatorButton *button);
87
73
 
88
74
G_END_DECLS
89
75