~ubuntu-branches/ubuntu/quantal/anjuta/quantal

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Michael Biebl, Jeremy Bicha, Sebastien Bacher, Michael Biebl
  • Date: 2012-03-30 00:20:09 UTC
  • mfrom: (1.1.45) (27.1.20 sid)
  • Revision ID: package-import@ubuntu.com-20120330002009-pf04ws9la5ouas2u
Tags: 2:3.4.0-1
[ Jeremy Bicha ]
* New upstream release.
* debian/control.in:
  - Bump minimum glade to 3.11 and vala to 0.16

[ Sebastien Bacher ]
* debian/patches/workaround_python_config_bug.patch:
  - workaround python-config bug
* debian/patches/02_skip_directories_when_reading_schema_files.patch:
  - dropped, fixed upstream

[ Michael Biebl ]
* Move the glade catalog file from anjuta-common to libanjuta-dev alongside
  the .so it references. Update the Breaks/Replaces accordingly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
264
264
         */
265
265
        sv->priv->settings = g_settings_new (PREF_SCHEMA);
266
266
        sv->priv->msgman_settings = g_settings_new (MSGMAN_PREF_SCHEMA);
267
 
 
 
267
    
268
268
        /* Bind simple options to GSettings */
269
269
        g_settings_bind (sv->priv->settings, HIGHLIGHT_SYNTAX,
270
270
                         sv->priv->document, "highlight-syntax",
294
294
        g_settings_bind (sv->priv->settings, VIEW_LINENUMBERS,
295
295
                         sv->priv->view, "show-line-numbers",
296
296
                         G_SETTINGS_BIND_GET);
297
 
 
 
297
        
298
298
        /* Init non-simple options */
299
299
        gtk_source_view_set_indent_width(GTK_SOURCE_VIEW(sv->priv->view), -1); /* Same as tab width */
300
300
        gtk_source_view_set_insert_spaces_instead_of_tabs(GTK_SOURCE_VIEW(sv->priv->view),
337
337
void sourceview_prefs_destroy(Sourceview* sv)
338
338
{
339
339
        if (sv->priv->settings)
340
 
                g_object_unref (sv->priv->settings);
 
340
        {
 
341
                g_clear_object(&sv->priv->settings);
 
342
        }
341
343
        if (sv->priv->msgman_settings)
342
 
                g_object_unref (sv->priv->msgman_settings);
343
 
 
344
 
        sv->priv->settings = NULL;
345
 
        sv->priv->msgman_settings = NULL;
 
344
        {
 
345
                g_clear_object (&sv->priv->msgman_settings);
 
346
        }
346
347
}