~ubuntu-branches/ubuntu/trusty/anjuta/trusty

« back to all changes in this revision

Viewing changes to plugins/sourceview/sourceview-prefs.c

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2012-02-20 22:38:35 UTC
  • mfrom: (1.1.43)
  • Revision ID: package-import@ubuntu.com-20120220223835-ny223imz62qkk9ns
Tags: 2:3.3.90-0ubuntu1
* New upstream release.
* debian/rules: Watch for unstable releases

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
        g_signal_connect (settings, "changed::" key, G_CALLBACK(func), sv);
27
27
 
28
28
#define PREF_SCHEMA "org.gnome.anjuta.plugins.sourceview"
29
 
#define MSGMAN_PREF_SCHEMA "org.gnome.anjuta.message-manager"
 
29
#define MSGMAN_PREF_SCHEMA "org.gnome.anjuta.plugins.message-manager"
30
30
 
31
31
 
32
32
/* Editor preferences */
41
41
#define VIEW_RIGHTMARGIN           "rightmargin-visible"
42
42
#define RIGHTMARGIN_POSITION       "rightmargin-position"
43
43
 
44
 
#define MSGMAN_COLOR_ERROR                "msgman-color-error"
45
 
#define MSGMAN_COLOR_WARNING              "msgman-color-warning"
 
44
#define MSGMAN_COLOR_ERROR                "color-error"
 
45
#define MSGMAN_COLOR_WARNING              "color-warning"
 
46
#define MSGMAN_COLOR_IMPORTANT            "color-important"
46
47
 
47
48
 
48
49
#define FONT_THEME "font-use-theme"
207
208
        char* warning_color =
208
209
                 g_settings_get_string (settings,
209
210
                                        MSGMAN_COLOR_WARNING);
 
211
        char* important_color =
 
212
                 g_settings_get_string (settings,
 
213
                                        MSGMAN_COLOR_IMPORTANT);
210
214
        Sourceview* sv = ANJUTA_SOURCEVIEW (user_data);
211
215
 
212
216
        g_object_set (sv->priv->warning_indic, "foreground", warning_color, NULL);
213
217
        g_object_set (sv->priv->critical_indic, "foreground", error_color, NULL);
 
218
        g_object_set (sv->priv->important_indic, "background", important_color, NULL);
214
219
 
215
220
        g_free (error_color);
216
221
        g_free (warning_color);
 
222
        g_free (important_color);
217
223
}
218
224
 
219
225
static void
324
330
                          G_CALLBACK (on_notify_indic_colors), sv);
325
331
        g_signal_connect (sv->priv->msgman_settings, "changed::" MSGMAN_COLOR_WARNING,
326
332
                          G_CALLBACK (on_notify_indic_colors), sv);
 
333
        g_signal_connect (sv->priv->msgman_settings, "changed::" MSGMAN_COLOR_IMPORTANT,
 
334
                          G_CALLBACK (on_notify_indic_colors), sv);
327
335
}
328
336
 
329
337
void sourceview_prefs_destroy(Sourceview* sv)