[gimp] app: add gimp_item_tree_view_get_delete_button()
- From: N/A <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: add gimp_item_tree_view_get_delete_button()
- Date: Wed, 7 Mar 2018 11:19:08 +0000 (UTC)
commit 15883c7be04a93550f1b9a84aa0549b74d036110
Author: Ell <ell_se yahoo com>
Date: Wed Mar 7 05:40:38 2018 -0500
app: add gimp_item_tree_view_get_delete_button()
... which returns the editor button associated with the "delete"
action.
app/widgets/gimpitemtreeview.c | 8 ++++++
app/widgets/gimpitemtreeview.h | 51 ++++++++++++++++++++-------------------
2 files changed, 34 insertions(+), 25 deletions(-)
---
diff --git a/app/widgets/gimpitemtreeview.c b/app/widgets/gimpitemtreeview.c
index a4a6b62..4988e13 100644
--- a/app/widgets/gimpitemtreeview.c
+++ b/app/widgets/gimpitemtreeview.c
@@ -772,6 +772,14 @@ gimp_item_tree_view_get_new_button (GimpItemTreeView *view)
return view->priv->new_button;
}
+GtkWidget *
+gimp_item_tree_view_get_delete_button (GimpItemTreeView *view)
+{
+ g_return_val_if_fail (GIMP_IS_ITEM_TREE_VIEW (view), NULL);
+
+ return view->priv->delete_button;
+}
+
gint
gimp_item_tree_view_get_drop_index (GimpItemTreeView *view,
GimpViewable *dest_viewable,
diff --git a/app/widgets/gimpitemtreeview.h b/app/widgets/gimpitemtreeview.h
index 19a39c1..7a2efcb 100644
--- a/app/widgets/gimpitemtreeview.h
+++ b/app/widgets/gimpitemtreeview.h
@@ -102,31 +102,32 @@ struct _GimpItemTreeViewClass
};
-GType gimp_item_tree_view_get_type (void) G_GNUC_CONST;
-
-GtkWidget * gimp_item_tree_view_new (GType view_type,
- gint view_size,
- gint view_border_width,
- GimpImage *image,
- GimpMenuFactory *menu_facotry,
- const gchar *menu_identifier,
- const gchar *ui_identifier);
-
-void gimp_item_tree_view_set_image (GimpItemTreeView *view,
- GimpImage *image);
-GimpImage * gimp_item_tree_view_get_image (GimpItemTreeView *view);
-
-void gimp_item_tree_view_add_options (GimpItemTreeView *view,
- const gchar *label,
- GtkWidget *options);
-GtkWidget * gimp_item_tree_view_get_lock_box (GimpItemTreeView *view);
-
-GtkWidget * gimp_item_tree_view_get_new_button (GimpItemTreeView *view);
-
-gint gimp_item_tree_view_get_drop_index (GimpItemTreeView *view,
- GimpViewable *dest_viewable,
- GtkTreeViewDropPosition drop_pos,
- GimpViewable **parent);
+GType gimp_item_tree_view_get_type (void) G_GNUC_CONST;
+
+GtkWidget * gimp_item_tree_view_new (GType view_type,
+ gint view_size,
+ gint view_border_width,
+ GimpImage *image,
+ GimpMenuFactory *menu_facotry,
+ const gchar *menu_identifier,
+ const gchar *ui_identifier);
+
+void gimp_item_tree_view_set_image (GimpItemTreeView *view,
+ GimpImage *image);
+GimpImage * gimp_item_tree_view_get_image (GimpItemTreeView *view);
+
+void gimp_item_tree_view_add_options (GimpItemTreeView *view,
+ const gchar *label,
+ GtkWidget *options);
+GtkWidget * gimp_item_tree_view_get_lock_box (GimpItemTreeView *view);
+
+GtkWidget * gimp_item_tree_view_get_new_button (GimpItemTreeView *view);
+GtkWidget * gimp_item_tree_view_get_delete_button (GimpItemTreeView *view);
+
+gint gimp_item_tree_view_get_drop_index (GimpItemTreeView *view,
+ GimpViewable *dest_viewable,
+ GtkTreeViewDropPosition drop_pos,
+ GimpViewable **parent);
#endif /* __GIMP_ITEM_TREE_VIEW_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]