~muktupavels/compiz/gwd-remove-settings-writable

« back to all changes in this revision

Viewing changes to gtk/window-decorator/gwd-settings.c

  • Committer: Alberts Muktupāvels
  • Date: 2016-05-21 09:42:24 UTC
  • Revision ID: alberts.muktupavels@gmail.com-20160521094224-ptg2zxi4vqsgs7rt
Add BLUR_TYPE_UNSET.

Show diffs side-by-side

added added

removed removed

Lines of Context:
580
580
 
581
581
    cmdline_opts = 0;
582
582
 
583
 
    if (blur != -1)
 
583
    if (blur != BLUR_TYPE_UNSET)
584
584
        cmdline_opts |= CMDLINE_BLUR;
585
585
 
586
586
    if (metacity_theme != NULL)
587
587
        cmdline_opts |= CMDLINE_THEME;
588
588
 
589
589
    return g_object_new (GWD_TYPE_SETTINGS,
590
 
                         "blur", blur != -1 ? blur : BLUR_TYPE_DEFAULT,
 
590
                         "blur", blur != BLUR_TYPE_UNSET ? blur : BLUR_TYPE_DEFAULT,
591
591
                         "metacity-theme", metacity_theme ? metacity_theme : METACITY_THEME_DEFAULT,
592
592
                         "cmdline-options", cmdline_opts,
593
593
                         NULL);
708
708
gwd_settings_blur_changed (GWDSettings *settings,
709
709
                           const gchar *type)
710
710
{
711
 
    gint new_type = -1;
 
711
    gint new_type = BLUR_TYPE_UNSET;
712
712
 
713
713
    if (settings->cmdline_opts & CMDLINE_BLUR)
714
714
        return FALSE;
720
720
    else if (strcmp (type, "none") == 0)
721
721
        new_type = BLUR_TYPE_NONE;
722
722
 
723
 
    if (new_type == -1)
 
723
    if (new_type == BLUR_TYPE_UNSET)
724
724
        return FALSE;
725
725
 
726
726
    if (settings->blur_type == new_type)