summaryrefslogtreecommitdiff
path: root/libwnck/selector.h
diff options
context:
space:
mode:
authorVincent Noel <vnoel@cox.net>2005-01-25 14:49:02 +0000
committerVincent Noel <vnoel@src.gnome.org>2005-01-25 14:49:02 +0000
commit0e1304ff0a952b07f26d288c0aecd3389276f9b8 (patch)
treecbbce4ebacafb5b956c6f404172f25a5258ddbb0 /libwnck/selector.h
parent38f7e81f96247f8fb7385fcefac2f5723b4d5420 (diff)
downloadlibwnck-0e1304ff0a952b07f26d288c0aecd3389276f9b8.tar.gz
Migrate the window menu widget handling code from gnome-panel. Promote the
2005-01-25 Vincent Noel <vnoel@cox.net> Migrate the window menu widget handling code from gnome-panel. Promote the window menu to a full-blown widget. Use GObject functions for private structures. Fixes #164474. * gtk-doc.make: * libwnck/Makefile.am: * libwnck/libwnck.h: * libwnck/selector.c: (wnck_selector_destroy), (wnck_selector_get_screen), (wnck_selector_get_default_window_icon), (wnck_selector_dimm_icon), (wnck_selector_set_window_icon), (wnck_selector_set_active_window), (wnck_selector_get_window_name), (wnck_selector_window_icon_changed), (wnck_selector_window_name_changed), (wnck_selector_window_state_changed), (wnck_selector_active_window_changed), (wnck_selector_activate_window), (wnck_selector_get_width), (wnck_selector_item_new), (wnck_selector_add_window), (wnck_selector_window_opened), (wnck_selector_window_closed), (wncklet_connect_while_alive), (wnck_selector_connect_to_window), (wnck_selector_connect_to_screen), (wnck_selector_destroy_menu), (wnck_selector_menu_hidden), (wnck_selector_on_show), (wnck_selector_setup_menu), (wnck_selector_fill), (wnck_selector_get_type), (wnck_selector_init), (wnck_selector_class_init), (wnck_selector_finalize), (wnck_selector_new): * libwnck/selector.h:
Diffstat (limited to 'libwnck/selector.h')
-rw-r--r--libwnck/selector.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/libwnck/selector.h b/libwnck/selector.h
new file mode 100644
index 0000000..31bc932
--- /dev/null
+++ b/libwnck/selector.h
@@ -0,0 +1,54 @@
+/* selector */
+
+/*
+ * Copyright (C) 2001 Havoc Pennington
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library 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
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#ifndef WNCK_SELECTOR_H
+#define WNCK_SELECTOR_H
+
+#include <gtk/gtk.h>
+#include "screen.h"
+
+G_BEGIN_DECLS
+#define WNCK_TYPE_SELECTOR (wnck_selector_get_type ())
+#define WNCK_SELECTOR(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), WNCK_TYPE_SELECTOR, WnckSelector))
+#define WNCK_SELECTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), WNCK_TYPE_SELECTOR, WnckSelectorClass))
+#define WNCK_IS_SELECTOR(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), WNCK_TYPE_SELECTOR))
+#define WNCK_IS_SELECTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), WNCK_TYPE_SELECTOR))
+#define WNCK_SELECTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), WNCK_TYPE_SELECTOR, WnckSelectorClass))
+typedef struct _WnckSelector WnckSelector;
+typedef struct _WnckSelectorClass WnckSelectorClass;
+typedef struct _WnckSelectorPrivate WnckSelectorPrivate;
+
+struct _WnckSelector
+{
+ GtkMenuBar parent_instance;
+ WnckSelectorPrivate *priv;
+};
+
+struct _WnckSelectorClass
+{
+ GtkMenuBarClass parent_class;
+};
+
+GtkWidget *wnck_selector_new (WnckScreen *screen);
+GType wnck_selector_get_type (void);
+
+G_END_DECLS
+#endif /* WNCK_SELECTOR_H */