[glade3] * gladeui/glade-command.[ch]: Exposed glade_command_add() internal command so that plugins can cre
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade3] * gladeui/glade-command.[ch]: Exposed glade_command_add() internal command so that plugins can cre
- Date: Sun, 9 Jan 2011 02:34:42 +0000 (UTC)
commit 41afdceb4e5f8130b5ae6c90182f2250b065ff1c
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Sun Jan 9 11:40:12 2011 +0900
* gladeui/glade-command.[ch]: Exposed glade_command_add() internal command so that
plugins can create command groups that play with adding/removing widgets inline without
creating copies of them.
ChangeLog | 4 ++++
gladeui/glade-command.c | 2 +-
gladeui/glade-command.h | 9 ++++++++-
3 files changed, 13 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 6e6e12a..01f235a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -12,6 +12,10 @@
* plugins/gtk+/gtk+.xml.in: Added translatable/multiline to entry tooltip properties
+ * gladeui/glade-command.[ch]: Exposed glade_command_add() internal command so that
+ plugins can create command groups that play with adding/removing widgets inline without
+ creating copies of them.
+
2011-01-08 Tristan Van Berkom <tristanvb openismus com>
* gladeui/glade-utils.[ch], gladeui/glade-widget.c, gladeui/glade-builtins.c,
diff --git a/gladeui/glade-command.c b/gladeui/glade-command.c
index f3ed30d..4d95764 100644
--- a/gladeui/glade-command.c
+++ b/gladeui/glade-command.c
@@ -1008,7 +1008,7 @@ get_all_parentless_reffed_widgets (GList * reffed, GladeWidget * widget)
* while newly added widgets will prefer packing defaults.
*
*/
-static void
+void
glade_command_add (GList *widgets,
GladeWidget *parent,
GladePlaceholder *placeholder,
diff --git a/gladeui/glade-command.h b/gladeui/glade-command.h
index 3a0277d..7f1f3fc 100644
--- a/gladeui/glade-command.h
+++ b/gladeui/glade-command.h
@@ -112,7 +112,14 @@ void glade_command_lock_widget (GladeWidget *widget,
void glade_command_unlock_widget (GladeWidget *widget);
-/************************ create/delete ******************************/
+
+/************************ create/add/delete ******************************/
+
+void glade_command_add (GList *widgets,
+ GladeWidget *parent,
+ GladePlaceholder *placeholder,
+ GladeProject *project,
+ gboolean pasting);
void glade_command_delete (GList *widgets);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]