[yelp/wip/cdavis/hdywindow: 29/29] window: Use HdyApplicationWindow for rounded bottom corners
- From: Christopher Davis <christopherdavis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp/wip/cdavis/hdywindow: 29/29] window: Use HdyApplicationWindow for rounded bottom corners
- Date: Fri, 10 Sep 2021 02:57:55 +0000 (UTC)
commit fed1182912c5a2837ff64ced472dfef17a7ead67
Author: Christopher Davis <christopherdavis gnome org>
Date: Wed Feb 17 12:38:28 2021 -0800
window: Use HdyApplicationWindow for rounded bottom corners
GNOME core apps are now using HdyApplicationWindow to get
rounded bottom corners everywhere.
configure.ac | 1 +
src/yelp-application.c | 3 +++
src/yelp-window.c | 2 +-
src/yelp-window.h | 5 +++--
4 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index f4c37120..71f075e2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -40,6 +40,7 @@ PKG_CHECK_MODULES(YELP,
gio-unix-2.0
gtk+-unix-print-3.0
gtk+-3.0 >= 3.13.3
+ libhandy-1 >= 1.0.0
libxml-2.0 >= 2.6.5
libxslt >= 1.1.4
libexslt >= 0.8.1
diff --git a/src/yelp-application.c b/src/yelp-application.c
index b284757e..8d046f31 100644
--- a/src/yelp-application.c
+++ b/src/yelp-application.c
@@ -31,6 +31,7 @@
#ifdef GDK_WINDOWING_X11
#include <gdk/gdkx.h>
#endif
+#include <libhandy-1/handy.h>
#include <stdlib.h>
#include "yelp-bookmarks.h"
@@ -270,6 +271,8 @@ yelp_application_startup (GApplication *application)
/* chain up */
G_APPLICATION_CLASS (yelp_application_parent_class)->startup (application);
+ hdy_init ();
+
settings = yelp_settings_get_default ();
if (editor_mode)
yelp_settings_set_editor_mode (settings, TRUE);
diff --git a/src/yelp-window.c b/src/yelp-window.c
index 3bf44d0e..a6326d98 100644
--- a/src/yelp-window.c
+++ b/src/yelp-window.c
@@ -330,7 +330,7 @@ window_construct (YelpWindow *window)
entries, G_N_ELEMENTS (entries), window);
yelp_view_register_actions (priv->view, G_ACTION_MAP (window));
- priv->vbox_full = gtk_box_new (GTK_ORIENTATION_VERTICAL, 3);
+ priv->vbox_full = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_container_add (GTK_CONTAINER (window), priv->vbox_full);
priv->header = gtk_header_bar_new ();
diff --git a/src/yelp-window.h b/src/yelp-window.h
index a1303068..5b562504 100644
--- a/src/yelp-window.h
+++ b/src/yelp-window.h
@@ -22,6 +22,7 @@
#define __YELP_WINDOW_H__
#include <gtk/gtk.h>
+#include <libhandy-1/handy.h>
#include "yelp-uri.h"
@@ -36,12 +37,12 @@ typedef struct _YelpWindowClass YelpWindowClass;
struct _YelpWindow
{
- GtkApplicationWindow parent;
+ HdyApplicationWindow parent;
};
struct _YelpWindowClass
{
- GtkApplicationWindowClass parent_class;
+ HdyApplicationWindowClass parent_class;
};
GType yelp_window_get_type (void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]