[gtk: 1/4] entrycompletion: Remove unnecessary frame
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk: 1/4] entrycompletion: Remove unnecessary frame
- Date: Sat, 22 Aug 2020 14:09:36 +0000 (UTC)
commit 8eb807d7f472ac54090bbf8e0641b3d29c5e4ce1
Author: nana-4 <hnmaigo gmail com>
Date: Sat Aug 22 09:18:31 2020 +0900
entrycompletion: Remove unnecessary frame
The popover already has a border as a frame. Don't create double
borders.
gtk/gtkentrycompletion.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
---
diff --git a/gtk/gtkentrycompletion.c b/gtk/gtkentrycompletion.c
index 05b965f2aa..9139109ebf 100644
--- a/gtk/gtkentrycompletion.c
+++ b/gtk/gtkentrycompletion.c
@@ -67,7 +67,6 @@
#include "gtkintl.h"
#include "gtkcellrenderertext.h"
-#include "gtkframe.h"
#include "gtktreeselection.h"
#include "gtktreeview.h"
#include "gtkscrolledwindow.h"
@@ -464,7 +463,6 @@ gtk_entry_completion_constructed (GObject *object)
{
GtkEntryCompletion *completion = GTK_ENTRY_COMPLETION (object);
GtkTreeSelection *sel;
- GtkWidget *popup_frame;
GtkEventController *controller;
G_OBJECT_CLASS (gtk_entry_completion_parent_class)->constructed (object);
@@ -526,14 +524,11 @@ gtk_entry_completion_constructed (GObject *object)
completion);
gtk_widget_add_controller (completion->popup_window, controller);
- popup_frame = gtk_frame_new (NULL);
- gtk_popover_set_child (GTK_POPOVER (completion->popup_window), popup_frame);
-
gtk_scrolled_window_set_child (GTK_SCROLLED_WINDOW (completion->scrolled_window),
completion->tree_view);
gtk_widget_set_hexpand (completion->scrolled_window, TRUE);
gtk_widget_set_vexpand (completion->scrolled_window, TRUE);
- gtk_frame_set_child (GTK_FRAME (popup_frame), completion->scrolled_window);
+ gtk_popover_set_child (GTK_POPOVER (completion->popup_window), completion->scrolled_window);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]