summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorThomas James Alexander Thurman <tthurman@src.gnome.org>2009-02-10 05:12:53 +0000
committerThomas James Alexander Thurman <tthurman@src.gnome.org>2009-02-10 05:12:53 +0000
commit3d0bfbb4f40735fa2ae2fc1b5f664bf647721a71 (patch)
tree4263155859f16736c9e0cecd6a23ddbd3cd2a790 /src/include
parentb893e88e8b9edce521b340725848237bb0a1fd78 (diff)
downloadmetacity-3d0bfbb4f40735fa2ae2fc1b5f664bf647721a71.tar.gz
metacity-3d0bfbb4f40735fa2ae2fc1b5f664bf647721a71.tar.bz2
Further movement of code out of metacity-dialog into Zenity;
this time it's the "kill or wait?" dialogue. Much code saved. * src/core/delete.c: * src/core/keybindings.c: * src/core/main.c: * src/core/util.c: * src/core/window-private.h: * src/core/window.c: * src/include/util.h: svn path=/trunk/; revision=4125
Diffstat (limited to 'src/include')
-rw-r--r--src/include/util.h36
1 files changed, 35 insertions, 1 deletions
diff --git a/src/include/util.h b/src/include/util.h
index 5041f5e..ba202d3 100644
--- a/src/include/util.h
+++ b/src/include/util.h
@@ -26,6 +26,7 @@
#define META_UTIL_H
#include <glib.h>
+#include <glib-object.h>
gboolean meta_is_verbose (void);
void meta_set_verbose (gboolean setting);
@@ -97,10 +98,13 @@ char* meta_g_utf8_strndup (const gchar *src, gsize n);
void meta_free_gslist_and_elements (GSList *list_to_deep_free);
-void meta_show_dialog (const char *type,
+GPid meta_show_dialog (const char *type,
const char *title,
const char *message,
gint timeout,
+ const char *ok_text,
+ const char *cancel_text,
+ const int transient_for,
const char **columns,
const char **entries);
@@ -127,6 +131,36 @@ void meta_show_dialog (const char *type,
#endif /* !WITH_VERBOSE_MODE */
+#include <glib-object.h>
+
+#define META_TYPE_NEXUS (meta_nexus_get_type ())
+#define META_NEXUS(obj) (GTK_CHECK_CAST ((obj), META_TYPE_NEXUS, MetaNexus))
+#define META_NEXUS_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), META_TYPE_NEXUS, MetaNexusClass))
+#define META_IS_NEXUS(obj) (GTK_CHECK_TYPE ((obj), META_TYPE_NEXUS))
+#define META_IS_NEXUS_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), META_TYPE_NEXUS))
+#define META_NEXUS_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), META_TYPE_NEXUS, MetaNexusClass))
+
+typedef struct _MetaNexus
+{
+ GObject parent_instance;
+} MetaNexus;
+
+typedef struct _MetaNexusClass
+{
+ GObjectClass parent_class;
+} MetaNexusClass;
+
+GType meta_nexus_get_type (void) G_GNUC_CONST;
+MetaNexus *meta_nexus_new ();
+
+/**
+ * An object which exists purely to attach signals to; this is to receive
+ * signals when a child process exits. The signal is "sigchld" with no detail.
+ *
+ * \bug Eventually we should have a specialised type for objects like these.
+ */
+extern MetaNexus *sigchld_nexus;
+
#endif /* META_UTIL_H */