[gtk: 4/60] gtk-demo: Avoid double borders in the dnd demo




commit fc63c6371fdde3dc4ab8182d52aaeaa0817f9320
Author: nana-4 <hnmaigo gmail com>
Date:   Fri Aug 7 00:54:41 2020 +0900

    gtk-demo: Avoid double borders in the dnd demo
    
    Replace the frame with a separator.

 demos/gtk-demo/dnd.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/demos/gtk-demo/dnd.c b/demos/gtk-demo/dnd.c
index 1aff3b1bcd..83e6e92359 100644
--- a/demos/gtk-demo/dnd.c
+++ b/demos/gtk-demo/dnd.c
@@ -566,7 +566,6 @@ canvas_new (void)
   canvas = gtk_fixed_new ();
   gtk_widget_set_hexpand (canvas, TRUE);
   gtk_widget_set_vexpand (canvas, TRUE);
-  gtk_widget_add_css_class (canvas, "frame");
 
   source = gtk_drag_source_new ();
   gtk_drag_source_set_actions (source, GDK_ACTION_MOVE);
@@ -764,6 +763,8 @@ do_dnd (GtkWidget *do_widget)
           y += 100;
         }
 
+      gtk_box_append (GTK_BOX (box), gtk_separator_new (GTK_ORIENTATION_HORIZONTAL));
+
       sw = gtk_scrolled_window_new ();
       gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw),
                                       GTK_POLICY_AUTOMATIC,


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