[libgit2-glib] Set default property values of GgitDiffFindOptions



commit e8d667ffb8dd921bde029c23661df371a67561e6
Author: Jesse van den Kieboom <jessevdk gnome org>
Date:   Fri Jun 27 14:26:25 2014 +0200

    Set default property values of GgitDiffFindOptions

 libgit2-glib/ggit-diff-find-options.c |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/libgit2-glib/ggit-diff-find-options.c b/libgit2-glib/ggit-diff-find-options.c
index 67783c7..f7ce355 100644
--- a/libgit2-glib/ggit-diff-find-options.c
+++ b/libgit2-glib/ggit-diff-find-options.c
@@ -137,6 +137,7 @@ static void
 ggit_diff_find_options_class_init (GgitDiffFindOptionsClass *klass)
 {
        GObjectClass *object_class = G_OBJECT_CLASS (klass);
+       git_diff_find_options defopt = GIT_DIFF_FIND_OPTIONS_INIT;
 
        object_class->finalize = ggit_diff_find_options_finalize;
 
@@ -151,7 +152,7 @@ ggit_diff_find_options_class_init (GgitDiffFindOptionsClass *klass)
                                                             "Flags",
                                                             "Flags",
                                                             GGIT_TYPE_DIFF_FIND_FLAGS,
-                                                            0,
+                                                            defopt.flags,
                                                             G_PARAM_READWRITE |
                                                             G_PARAM_STATIC_STRINGS));
 
@@ -162,7 +163,7 @@ ggit_diff_find_options_class_init (GgitDiffFindOptionsClass *klass)
                                                            "Rename threshold",
                                                            0,
                                                            G_MAXUINT,
-                                                           0,
+                                                           defopt.rename_threshold,
                                                            G_PARAM_READWRITE |
                                                            G_PARAM_STATIC_STRINGS));
 
@@ -173,7 +174,7 @@ ggit_diff_find_options_class_init (GgitDiffFindOptionsClass *klass)
                                                            "Rename from rewrite threshold",
                                                            0,
                                                            G_MAXUINT,
-                                                           0,
+                                                           defopt.rename_from_rewrite_threshold,
                                                            G_PARAM_READWRITE |
                                                            G_PARAM_STATIC_STRINGS));
 
@@ -184,7 +185,7 @@ ggit_diff_find_options_class_init (GgitDiffFindOptionsClass *klass)
                                                            "Copy threshold",
                                                            0,
                                                            G_MAXUINT,
-                                                           0,
+                                                           defopt.copy_threshold,
                                                            G_PARAM_READWRITE |
                                                            G_PARAM_STATIC_STRINGS));
 
@@ -195,7 +196,7 @@ ggit_diff_find_options_class_init (GgitDiffFindOptionsClass *klass)
                                                            "Rename limit",
                                                            0,
                                                            G_MAXUINT,
-                                                           0,
+                                                           defopt.rename_limit,
                                                            G_PARAM_READWRITE |
                                                            G_PARAM_STATIC_STRINGS));
 


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