~ubuntu-branches/ubuntu/vivid/gnome-desktop3/vivid

« back to all changes in this revision

Viewing changes to libgnome-desktop/gnome-rr-debug.c

  • Committer: Package Import Robot
  • Author(s): Jackson Doak
  • Date: 2014-10-31 07:46:09 UTC
  • mfrom: (1.6.5) (32.1.1 vivid-proposed)
  • Revision ID: package-import@ubuntu.com-20141031074609-gb280wdsxsgldc91
Tags: 3.14.1-1ubuntu1
* Merge with Debian, Remaining changes:
  - debian/patches:
    + 04_compute_average_color.patch: Compute the avergage color in
      gnome-desktop itself, not in unity to fix some races (LP #963140)
    + tweak_color_computation.patch, Patch from Gord, no patch header,
      no bug link.
    + git_revert_draw_background.patch
    + ubuntu_language.patch, Ported relevant bits from g-c-c 
      52_region_language.patch, as required for gnome 3.8 region panel
    + ubuntu_language_list_from_SUPPORTED.patch,
      adds api to get list of available languages from SUPPORTED file.
      To be used by gnome 3.8 region panel language installation.
  - debian/libgnome-desktop-3-10.symbols:
    + Add symbols included in Ubuntu patches
  - debian/control.in:
    + Mark gnome-desktop3-data Multi-Arch: foreign

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
        g_print ("\tprimary: %i\n", gnome_rr_output_get_is_primary (output));
42
42
        g_print ("\tid: %i\n", gnome_rr_output_get_id (output));
43
43
        gnome_rr_output_get_physical_size (output, &width_mm, &height_mm);
44
 
        g_print ("\tdimensions: %ix%i", width_mm, height_mm);
 
44
        g_print ("\tdimensions: %ix%i\n", width_mm, height_mm);
 
45
        g_print ("\tbacklight: %i (min step: %i)\n",
 
46
                 gnome_rr_output_get_backlight (output),
 
47
                 gnome_rr_output_get_min_backlight_step (output));
 
48
 
45
49
 
46
50
        /* get EDID */
47
51
        result = gnome_rr_output_get_edid_data (output, &len);
48
52
        if (result != NULL) {
 
53
                char *vendor, *product, *serial;
 
54
 
49
55
                g_print ("\tedid: %" G_GSIZE_FORMAT " bytes [%i:%i:%i:%i]\n",
50
56
                         len, result[0], result[1],
51
57
                         result[2], result[3]);
 
58
                gnome_rr_output_get_ids_from_edid (output, &vendor, &product, &serial);
 
59
                g_print ("\tvendor: '%s' product: '%s' serial: '%s'\n",
 
60
                         vendor, product, serial);
 
61
                g_free (vendor);
 
62
                g_free (product);
 
63
                g_free (serial);
52
64
        }
 
65
 
 
66
        g_print ("\n");
53
67
}
54
68
 
55
69
static void