[devhelp/wip/swilmet/misc-improvements: 8/15] keyword-model: spring clean-up



commit f8fd21c92d5d5719202b37b7a14cb5087415145c
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sun May 24 16:51:23 2015 +0200

    keyword-model: spring clean-up
    
    https://bugzilla.gnome.org/show_bug.cgi?id=749797

 src/dh-keyword-model.c |    5 -----
 src/dh-keyword-model.h |    4 ++--
 2 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/src/dh-keyword-model.c b/src/dh-keyword-model.c
index a17b864..3ee0a3d 100644
--- a/src/dh-keyword-model.c
+++ b/src/dh-keyword-model.c
@@ -25,7 +25,6 @@
 #include <gtk/gtk.h>
 #include <string.h>
 
-#include "dh-link.h"
 #include "dh-book.h"
 
 typedef struct {
@@ -52,11 +51,7 @@ struct _DhKeywordGlobPattern {
 #define G_LIST(x) ((GList *) x)
 #define MAX_HITS 100
 
-static void dh_keyword_model_init            (DhKeywordModel      *list_store);
-static void dh_keyword_model_class_init      (DhKeywordModelClass *class);
 static void dh_keyword_model_tree_model_init (GtkTreeModelIface   *iface);
-static GList *dh_globbed_keywords_new        (GStrv                keywords);
-static void dh_globbed_keywords_free         (GList               *keyword_globs);
 
 G_DEFINE_TYPE_WITH_CODE (DhKeywordModel, dh_keyword_model, G_TYPE_OBJECT,
                          G_ADD_PRIVATE (DhKeywordModel)
diff --git a/src/dh-keyword-model.h b/src/dh-keyword-model.h
index 1338c31..fc18e33 100644
--- a/src/dh-keyword-model.h
+++ b/src/dh-keyword-model.h
@@ -20,7 +20,7 @@
 #ifndef __DH_KEYWORD_MODEL_H__
 #define __DH_KEYWORD_MODEL_H__
 
-#include <gtk/gtk.h>
+#include <glib-object.h>
 #include "dh-link.h"
 #include "dh-book-manager.h"
 
@@ -38,7 +38,7 @@ typedef struct _DhKeywordModelClass DhKeywordModelClass;
 
 struct _DhKeywordModel
 {
-        GObject             parent_instance;
+        GObject parent_instance;
 };
 
 struct _DhKeywordModelClass


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