~ubuntu-branches/ubuntu/precise/nvidia-settings/precise

« back to all changes in this revision

Viewing changes to src/gtk+-2.x/ctkgvo.c

  • Committer: Bazaar Package Importer
  • Author(s): Alberto Milone
  • Date: 2011-02-25 15:18:56 UTC
  • mfrom: (1.1.15 upstream)
  • Revision ID: james.westby@ubuntu.com-20110225151856-0lgdoygo8o4g3q47
Tags: 270.29-0ubuntu1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
459
459
 
460
460
        if ((refresh_rate != input_refresh_rate) &&
461
461
            (!(ctk_gvo->caps & NV_CTRL_GVO_CAPABILITIES_MULTIRATE_SYNC) ||
462
 
             (((refresh_rate % 1000) ? TRUE : FALSE) !=
463
 
              ((input_refresh_rate % 1000) ? TRUE : FALSE)))) {
 
462
             ((refresh_rate % 1000 == 0) != (input_refresh_rate % 1000 == 0)))) {
464
463
             valid &= ~(GVO_VIDEO_FORMAT_REFRESH_VALID);
465
464
        }
466
465
    }
503
502
    for (i = 0; dataFormatNames[i].name; i++) {
504
503
        if (dataFormatNames[i].format == format) {
505
504
            /* Only the first three formats are valid */
506
 
            return (i < 3) ? TRUE : FALSE;
 
505
            return (i < 3);
507
506
        }
508
507
    }
509
508
 
1152
1151
            g_free(str);
1153
1152
        }
1154
1153
 
1155
 
        gtk_widget_set_sensitive(label, (valid ? TRUE : FALSE));
 
1154
        gtk_widget_set_sensitive(label, valid);
1156
1155
    }
1157
1156
 
1158
1157
} /* fill_output_data_format_menu() */
1647
1646
    g_list_free(children);
1648
1647
 
1649
1648
    enabled =
1650
 
        (ctk_gvo->lock_owner == NV_CTRL_GVO_LOCK_OWNER_CLONE) ? TRUE : FALSE;
 
1649
        (ctk_gvo->lock_owner == NV_CTRL_GVO_LOCK_OWNER_CLONE);
1651
1650
 
1652
1651
    if (enabled) {
1653
1652
        gtk_container_add(GTK_CONTAINER(ctk_gvo->toggle_clone_mode_button),