summaryrefslogtreecommitdiff
path: root/mate-panel/panel-menu-button.h
diff options
context:
space:
mode:
authorPerberos <[email protected]>2011-12-01 22:56:10 -0300
committerPerberos <[email protected]>2011-12-01 22:56:10 -0300
commitc51ef797a707f4e2c6f9688d4378f2b0e9898a66 (patch)
tree019ae92bb53c19b30077545cb14743cbd1b57aef /mate-panel/panel-menu-button.h
downloadmate-panel-c51ef797a707f4e2c6f9688d4378f2b0e9898a66.tar.bz2
mate-panel-c51ef797a707f4e2c6f9688d4378f2b0e9898a66.tar.xz
moving from https://github.com/perberos/mate-desktop-environment
Diffstat (limited to 'mate-panel/panel-menu-button.h')
-rw-r--r--mate-panel/panel-menu-button.h98
1 files changed, 98 insertions, 0 deletions
diff --git a/mate-panel/panel-menu-button.h b/mate-panel/panel-menu-button.h
new file mode 100644
index 00000000..c6c9d564
--- /dev/null
+++ b/mate-panel/panel-menu-button.h
@@ -0,0 +1,98 @@
+/*
+ * panel-menu-button.h: panel menu button
+ *
+ * Copyright (C) 2003 Sun Microsystems, Inc.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+ * 02111-1307, USA.
+ *
+ * Authors:
+ * Mark McLoughlin <[email protected]>
+ */
+
+#ifndef __PANEL_MENU_BUTTON_H__
+#define __PANEL_MENU_BUTTON_H__
+
+#include <gtk/gtk.h>
+#include "button-widget.h"
+#include "panel-widget.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define PANEL_TYPE_MENU_BUTTON (panel_menu_button_get_type ())
+#define PANEL_MENU_BUTTON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), PANEL_TYPE_MENU_BUTTON, PanelMenuButton))
+#define PANEL_MENU_BUTTON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), PANEL_TYPE_MENU_BUTTON, PanelMenuButtonClass))
+#define PANEL_IS_MENU_BUTTON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), PANEL_TYPE_MENU_BUTTON))
+#define PANEL_IS_MENU_BUTTON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), PANEL_TYPE_MENU_BUTTON))
+#define PANEL_MENU_BUTTON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), PANEL_TYPE_MENU_BUTTON, PanelMenuButtonClass))
+
+typedef struct _PanelMenuButton PanelMenuButton;
+typedef struct _PanelMenuButtonClass PanelMenuButtonClass;
+typedef struct _PanelMenuButtonPrivate PanelMenuButtonPrivate;
+
+struct _PanelMenuButton {
+ ButtonWidget button;
+
+ PanelMenuButtonPrivate *priv;
+};
+
+struct _PanelMenuButtonClass {
+ ButtonWidgetClass button_class;
+};
+
+GType panel_menu_button_get_type (void) G_GNUC_CONST;
+
+gboolean panel_menu_button_create (PanelToplevel *toplevel,
+ int position,
+ const char *filename,
+ const char *menu_path,
+ gboolean use_menu_path,
+ const char *tooltip);
+
+void panel_menu_button_set_menu_path (PanelMenuButton *button,
+ const char *menu_path);
+void panel_menu_button_set_custom_icon (PanelMenuButton *button,
+ const char *custom_icon);
+void panel_menu_button_set_tooltip (PanelMenuButton *button,
+ const char *tooltip);
+void panel_menu_button_set_use_menu_path (PanelMenuButton *button,
+ gboolean use_menu_path);
+gboolean panel_menu_button_get_use_menu_path (PanelMenuButton *button);
+void panel_menu_button_set_use_custom_icon (PanelMenuButton *button,
+ gboolean use_custom_icon);
+
+void panel_menu_button_load_from_mateconf (PanelWidget *panel,
+ gboolean locked,
+ int position,
+ gboolean exactpos,
+ const char *id);
+
+void panel_menu_button_invoke_menu (PanelMenuButton *button,
+ const char *callback_name);
+
+void panel_menu_button_popup_menu (PanelMenuButton *button,
+ guint n_button,
+ guint32 activate_time);
+
+void panel_menu_button_set_dnd_enabled (PanelMenuButton *button,
+ gboolean dnd_enabled);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __PANEL_MENU_BUTTON_H__ */