[gtksourceview/wip/gtk-buildable: 2/2] CompletionInfo: set a border width of 3



commit 514ac57de6cf96d6d2e26ad2d284535baae58577
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Fri Sep 12 19:23:35 2014 +0200

    CompletionInfo: set a border width of 3
    
    So that the label or another widget has some space around it in the
    calltip.
    
    Since the main completion window is also a CompletionInfo, set the
    border width to 0 for it.

 gtksourceview/gtksourcecompletion.c     |    2 ++
 gtksourceview/gtksourcecompletioninfo.c |    1 +
 2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtksourceview/gtksourcecompletion.c b/gtksourceview/gtksourcecompletion.c
index 9b64da5..4bb8f05 100644
--- a/gtksourceview/gtksourcecompletion.c
+++ b/gtksourceview/gtksourcecompletion.c
@@ -2050,6 +2050,8 @@ init_main_window (GtkSourceCompletion *completion,
        completion->priv->selection_label = GTK_LABEL (gtk_builder_get_object (builder, "selection_label"));
        completion->priv->bottom_bar = GTK_WIDGET (gtk_builder_get_object (builder, "bottom_bar"));
 
+       gtk_container_set_border_width (GTK_CONTAINER (completion->priv->main_window), 0);
+
        gtk_window_set_attached_to (GTK_WINDOW (completion->priv->main_window),
                                    GTK_WIDGET (completion->priv->view));
 
diff --git a/gtksourceview/gtksourcecompletioninfo.c b/gtksourceview/gtksourcecompletioninfo.c
index 2357115..134a1e0 100644
--- a/gtksourceview/gtksourcecompletioninfo.c
+++ b/gtksourceview/gtksourcecompletioninfo.c
@@ -539,6 +539,7 @@ gtk_source_completion_info_new (void)
 {
        return g_object_new (GTK_SOURCE_TYPE_COMPLETION_INFO,
                             "type", GTK_WINDOW_POPUP,
+                            "border-width", 3,
                             NULL);
 }
 


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