[gtk+] frame: Remove get_path_for_child implementation



commit 0f6c9557959c9111714cee712d233ac3afc86657
Author: Benjamin Otte <otte redhat com>
Date:   Tue Jul 7 18:53:10 2015 +0200

    frame: Remove get_path_for_child implementation
    
    As far as I can read the code it added the .frame style class to the
    GtkFrame element. But GtKFrame already has a .frame style class these
    days.

 gtk/gtkframe.c |   20 --------------------
 1 files changed, 0 insertions(+), 20 deletions(-)
---
diff --git a/gtk/gtkframe.c b/gtk/gtkframe.c
index 7bb0d18..7c82e3a 100644
--- a/gtk/gtkframe.c
+++ b/gtk/gtkframe.c
@@ -110,8 +110,6 @@ static void gtk_frame_forall        (GtkContainer   *container,
                                     gboolean        include_internals,
                                     GtkCallback     callback,
                                     gpointer        callback_data);
-static GtkWidgetPath * gtk_frame_get_path_for_child (GtkContainer *container,
-                                                     GtkWidget    *child);
 
 static void gtk_frame_compute_child_allocation      (GtkFrame      *frame,
                                                     GtkAllocation *child_allocation);
@@ -211,7 +209,6 @@ gtk_frame_class_init (GtkFrameClass *class)
 
   container_class->remove = gtk_frame_remove;
   container_class->forall = gtk_frame_forall;
-  container_class->get_path_for_child = gtk_frame_get_path_for_child;
 
   class->compute_child_allocation = gtk_frame_real_compute_child_allocation;
 
@@ -371,23 +368,6 @@ gtk_frame_forall (GtkContainer *container,
     (* callback) (priv->label_widget, callback_data);
 }
 
-static GtkWidgetPath *
-gtk_frame_get_path_for_child (GtkContainer *container,
-                              GtkWidget    *child)
-{
-  GtkFramePrivate *priv = GTK_FRAME (container)->priv;
-  GtkWidgetPath *path;
-
-  path = GTK_CONTAINER_CLASS (gtk_frame_parent_class)->get_path_for_child (container, child);
-
-  if (child == priv->label_widget)
-    gtk_widget_path_iter_add_class (path,
-                                    gtk_widget_path_length (path) - 2,
-                                    GTK_STYLE_CLASS_FRAME);
-
-  return path;
-}
-
 /**
  * gtk_frame_set_label:
  * @frame: a #GtkFrame


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