[gtk+] widget: Make _set_clip private



commit 5720f2a845f24df99c266207c342754373d096bd
Author: Timm Bäder <mail baedert org>
Date:   Wed Jul 12 13:28:00 2017 +0200

    widget: Make _set_clip private
    
    We don't need this anymore since clips are now reported in
    size-allocate.

 docs/reference/gtk/gtk4-sections.txt |    1 -
 gtk/gtkwidget.c                      |    5 ++---
 gtk/gtkwidget.h                      |    3 ---
 3 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/docs/reference/gtk/gtk4-sections.txt b/docs/reference/gtk/gtk4-sections.txt
index b472333..3f7eaf3 100644
--- a/docs/reference/gtk/gtk4-sections.txt
+++ b/docs/reference/gtk/gtk4-sections.txt
@@ -4612,7 +4612,6 @@ gtk_widget_get_allocation
 gtk_widget_get_allocated_baseline
 gtk_widget_get_allocated_size
 gtk_widget_get_clip
-gtk_widget_set_clip
 gtk_widget_get_can_default
 gtk_widget_set_can_default
 gtk_widget_get_can_focus
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index f2e58d7..ac726ab 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -754,6 +754,7 @@ static gboolean event_window_is_still_viewable (const GdkEvent *event);
 static void gtk_widget_update_input_shape (GtkWidget *widget);
 
 static gboolean gtk_widget_class_get_visible_by_default (GtkWidgetClass *widget_class);
+static void gtk_widget_set_clip (GtkWidget *widget, const GtkAllocation *clip);
 
 
 /* --- variables --- */
@@ -13123,10 +13124,8 @@ gtk_widget_get_clip (GtkWidget     *widget,
  *
  * If this function is not called by @widget during a ::size-allocate handler,
  * the clip will be set to @widget's allocation.
- *
- * Since: 3.14
  */
-void
+static void
 gtk_widget_set_clip (GtkWidget           *widget,
                      const GtkAllocation *clip)
 {
diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h
index bfaf04a..dea23f1 100644
--- a/gtk/gtkwidget.h
+++ b/gtk/gtkwidget.h
@@ -750,9 +750,6 @@ GDK_AVAILABLE_IN_ALL
 void                  gtk_widget_get_allocation         (GtkWidget     *widget,
                                                          GtkAllocation *allocation);
 GDK_AVAILABLE_IN_3_14
-void                  gtk_widget_set_clip               (GtkWidget     *widget,
-                                                         const GtkAllocation *clip);
-GDK_AVAILABLE_IN_3_14
 void                  gtk_widget_get_clip               (GtkWidget     *widget,
                                                          GtkAllocation *clip);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]