From 470a4901638fdbef224bfc5af8cf2120bc41ace2 Mon Sep 17 00:00:00 2001 From: Yevgen Muntyan <17531749+muntyan@users.noreply.github.com> Date: Mon, 25 Jul 2005 13:11:00 +0000 Subject: [PATCH] Silent gcc --- moo/mooedit/mooedit-pygtk.override | 2 ++ moo/mooedit/mooeditprefs.c | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/moo/mooedit/mooedit-pygtk.override b/moo/mooedit/mooedit-pygtk.override index 9909864b..f300e54f 100644 --- a/moo/mooedit/mooedit-pygtk.override +++ b/moo/mooedit/mooedit-pygtk.override @@ -10,6 +10,8 @@ headers #include "mooedit/mooeditor.h" #include "mooedit/mooeditdialogs.h" #include "mooedit/mooeditsearch.h" +#include "mooedit/mooeditprefs.h" +#include "mooedit/mootextiter.h" %% modulename moo %% diff --git a/moo/mooedit/mooeditprefs.c b/moo/mooedit/mooeditprefs.c index 99ee9e7f..a9793af7 100644 --- a/moo/mooedit/mooeditprefs.c +++ b/moo/mooedit/mooeditprefs.c @@ -258,6 +258,7 @@ static void set_text_colors (MooEdit *edit) static void set_highlight_current_line (MooEdit *edit) { const GdkColor *color; + GdkColor c; GtkSourceView *view = GTK_SOURCE_VIEW (edit); color = get_color (MOO_EDIT_PREFS_HIGHLIGHT_CURRENT_LINE_COLOR); @@ -265,7 +266,9 @@ static void set_highlight_current_line (MooEdit *edit) moo_prefs_set_ignore_change (MOO_EDIT_PREFS_PREFIX "::" MOO_EDIT_PREFS_HIGHLIGHT_CURRENT_LINE_COLOR, "#EEF6FF"); color = get_color (MOO_EDIT_PREFS_HIGHLIGHT_CURRENT_LINE_COLOR); + g_return_if_fail (color != NULL); gtk_source_view_set_highlight_current_line (view, get_bool (MOO_EDIT_PREFS_HIGHLIGHT_CURRENT_LINE)); - gtk_source_view_set_highlight_current_line_color (view, color); + c = *color; + gtk_source_view_set_highlight_current_line_color (view, &c); }