[gedit] View: minor code changes
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] View: minor code changes
- Date: Mon, 23 Nov 2020 18:17:12 +0000 (UTC)
commit ef0d0ca9bd93ce6855b9b65d74fd03e8aae9fea7
Author: Sébastien Wilmet <swilmet gnome org>
Date: Mon Nov 23 19:07:34 2020 +0100
View: minor code changes
Group related things together.
gedit/gedit-view.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gedit/gedit-view.c b/gedit/gedit-view.c
index 8e3238bc6..83017fa1f 100644
--- a/gedit/gedit-view.c
+++ b/gedit/gedit-view.c
@@ -37,6 +37,7 @@ enum
struct _GeditViewPrivate
{
PeasExtensionSet *extensions;
+
gchar *direct_save_uri;
GtkCssProvider *css_provider;
@@ -143,10 +144,10 @@ gedit_view_init (GeditView *view)
NULL);
/* CSS stuff */
- view->priv->css_provider = gtk_css_provider_new ();
context = gtk_widget_get_style_context (GTK_WIDGET (view));
gtk_style_context_add_class (context, "gedit-view");
+ view->priv->css_provider = gtk_css_provider_new ();
gtk_style_context_add_provider (context,
GTK_STYLE_PROVIDER (view->priv->css_provider),
GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]