~canonical-dx-team/ubuntu/maverick/gtk+2.0/menuproxy

« back to all changes in this revision

Viewing changes to docs/reference/gdk/multihead.sgml

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2007-05-04 12:24:25 UTC
  • mfrom: (1.1.21 upstream)
  • Revision ID: james.westby@ubuntu.com-20070504122425-0m8midgzrp40y8w2
Tags: 2.10.12-1ubuntu1
* Sync with Debian
* New upstream version:
  Fixed bugs:
  - 379414 file chooser warnings when changing path in the entry
  - 418585 GtkFileChooserDefault sizing code is not DPI independent
  - 419568 Crash in search if start with special letter
  - 435062 build dies with icon cache validation
  - 379399 Segfault to call gtk_print_operation_run twice.
  - 387889 cups backend has problems when there are too many printers
  - 418531 invalid read to gtkicontheme.c gtk_icon_theme_lookup_icon...
  - 423916 crash in color scheme code
  - 424042 Segmentation fault while quickly pressing Alt+arrows
  - 415260 Protect against negative indices when setting values in G...
  - 419171 XGetVisualInfo() may not set nxvisuals
  - 128852 Gdk cursors don't look good on win32
  - 344657 Ctrl-H doesn't toggle "Show Hidden Files" setting
  - 345345 PrintOperation::paginate is not emitted for class handler
  - 347567 GtkPrintOperation::end-print is not emitted if it's cance...
  - 369112 gtk_ui_manager_add_ui should accept unnamed separator
  - 392015 Selected menu item invisible on Windows Vista
  - 399253 MS-Windows Theme Bottom Tab placement rendering glitches
  - 399425 gtk_input_dialog_fill_axes() adds child to gtkscrolledwin...
  - 403251 [patch] little memory leak in GtkPrintJob
  - 403267 [patch] memory leak in GtkPageSetupUnixDialog
  - 403470 MS-Windows Theme tab placement other than on top leaks a ...
  - 404506 Windows system fonts that have multi-byte font names cann...
  - 405089 Incorrect window placement for GtkEventBox private window
  - 405515 Minor leak in gtkfilesystemmodel.c
  - 405539 gdk_pixbuf_save() for PNG saver can return FALSE without ...
  - 415681 gdk_window_clear_area includes an extra line and column o...
  - 418219 GtkRecentChooser should apply filter before sorting and c...
  - 418403 Scroll to printer after selecting it from settings
  - 421985 _gtk_print_operation_platform_backend_launch_preview
  - 421990 gtk_print_job_get_surface
  - 421993 gtk_print_operation_init
  - 423064 Conditional jump or move depends on uninitialised value(s...
  - 423722 Fix printing header in gtk-demo
  - 424168 gtk_print_operation_run on async preview
  - 425655 Don't install gtk+-unix-print-2.0.pc on non-UNIX platforms
  - 425786 GDK segfaults if XineramaQueryScreens fails
  - 428665 Lpr Backend gets stuck in infinite loop during gtk_enumer...
  - 429902 GtkPrintOperation leaks cairo contextes
  - 431997 First delay of GdkPixbufAnimationIter is wrong
  - 433242 Inconsistent scroll arrow position calculations
  - 433972 Placing gtk.Expander inside a gtk.TextView() changes gtk....
  - 434261 _gtk_toolbar_elide_underscores incorrectly handles some s...
  - 383354 ctrl-L should make 'Location' entry disappear
  - 418673 gtk_recent_manager_add_item
  - 429732 gtk_accel_group_finalize accesses invalid memory
  - 435028 WM_CLIENT_LEADER is wrong on the leader_window
  - 431067 Background of the header window is not updated
  - 338843 add recent files support inside the ui manager
  - 148535 add drop shadow to menus, tooltips, etc. under Windows XP
* debian/control.in:
  - Conflicts on ubuntulooks (<= 0.9.11-1)
* debian/patches/15_default-fallback-icon-theme.patch:
  - patch from Debian, fallback on gnome icon theme

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<refentry id="multihead" revision="1 May 2002">
 
2
  <refmeta>
 
3
    <refentrytitle>Multi-head Support Overview</refentrytitle>
 
4
    <manvolnum>3</manvolnum>
 
5
    <refmiscinfo>GDK Library</refmiscinfo>
 
6
  </refmeta>
 
7
 
 
8
  <refnamediv>
 
9
    <refname>Multi-head Support Overview</refname>
 
10
    <refpurpose>Overview of GdkDisplay and GdkScreen</refpurpose>
 
11
  </refnamediv>
 
12
 
 
13
  <refsect1>
 
14
    <title>Overview</title>
 
15
      <para>
 
16
        Multihead support is based around two main object types:
 
17
        <itemizedlist>
 
18
          <listitem><para>GdkDisplay</para></listitem>
 
19
          <listitem><para>GdkScreen</para></listitem>
 
20
        </itemizedlist>
 
21
      </para>
 
22
      
 
23
      <para>
 
24
        <link linkend="gdk-GdkDisplay">GdkDisplay</link> objects are the GDK
 
25
        representation of the X Display which can be described as <emphasis>a
 
26
        workstation consisting of a keyboard a pointing device (such as a
 
27
          mouse) and one or more screens</emphasis>. 
 
28
        It is used to open and keep track of various <link
 
29
          linkend="gdk-GdkScreen">GdkScreen</link> objects currently 
 
30
        instanciated by the application. It is also used to grab and release
 
31
        the keyboard and the mouse pointer.
 
32
      </para>
 
33
      <para>
 
34
        <link linkend="gdk-GdkScreen">GdkScreen</link> objects are the GDK
 
35
        representation of a physical screen. It is used throughout GDK and GTK+
 
36
        to specify which screen the top level windows are to be displayed on. 
 
37
        It is also used to query the screen specification and default settings such as 
 
38
        the default colormap (<link linkend="gdk-screen-get-default-colormap">gdk_screen_get_default_colormap</link>()),
 
39
        the screen width (<link linkend="gdk-screen-get-width">gdk_screen_get_width</link>()), etc.
 
40
      </para>
 
41
      <para> 
 
42
        The following code samples demonstrate common usage of the objects described above.
 
43
      </para>
 
44
      
 
45
      <example>
 
46
        <title>Testing the number of screen on the current display</title>
 
47
        <programlisting><!--
 
48
-->gint num_screen = 0;
 
49
gchar *displayname = NULL;
 
50
GdkScreen **screen_list;
 
51
GdkDisplay *display;
 
52
 
 
53
gtk_init (&amp;argc, &amp;argv);
 
54
 
 
55
display = gdk_display_get_default ();
 
56
num_screen = gdk_display_get_n_screens (display);
 
57
displayname = gdk_display_get_name (display);
 
58
if (num_screen &lt;= 1)
 
59
  {
 
60
    printf ("This Xserver (%s) manages only one screen. exiting...\n",
 
61
            displayname);
 
62
    exit (1);
 
63
  }
 
64
else
 
65
  {
 
66
    printf ("This Xserver (%s) manages %d screens.\n", displayname,
 
67
            num_screen);
 
68
  }<!--
 
69
 
 
70
-->     </programlisting>
 
71
      </example>
 
72
      <example>
 
73
        <title>Opening a second display</title>
 
74
        <programlisting><!--
 
75
-->gchar *second_screen_name;
 
76
GdkDisplay *second_display;
 
77
GdkScreen *second_screen;
 
78
GtkWidget *window;
 
79
 
 
80
gtk_init (&amp;argc, &amp;argv);
 
81
 
 
82
/* screen2_name needs to be initialized before calling 
 
83
/* gdk_display_new() */
 
84
second_display = gdk_display_new (&amp;argc, &amp;argv, second_screen_name);
 
85
if (second_display)
 
86
    second_screen = gdk_display_get_default_screen (second_display);
 
87
else 
 
88
  {
 
89
        g_print ("Can't open display :\n\t%s\n\n",
 
90
                  second_screen_name);
 
91
    exit (1);   
 
92
  }
 
93
/* now GdkScreen can be assigned to GtkWindows */
 
94
 
 
95
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
 
96
gtk_window_set_screen (window, second_screen);<!--
 
97
     --></programlisting>
 
98
      </example>
 
99
    </refsect1>
 
100
    <refsect1>
 
101
      <title>See Also</title>
 
102
      <para>
 
103
        <variablelist>
 
104
          <varlistentry>
 
105
            <term><link linkend="gdk-GdkDisplay">GdkDisplay</link></term>
 
106
            <listitem><para>the GDK Object used to represent and manipulate display
 
107
                related data</para></listitem>
 
108
          </varlistentry>
 
109
          <varlistentry>
 
110
            <term><link linkend="gdk-GdkScreen">GdkScreen</link></term>
 
111
            <listitem><para>the GDK Object used to represent and query screen related
 
112
                data</para></listitem>
 
113
          </varlistentry>
 
114
        </variablelist>
 
115
      </para>
 
116
    </refsect1>
 
117
  </refentry>
 
118
  
 
119
<!--
 
120
Local variables:
 
121
mode: sgml
 
122
sgml-parent-document: ("gdk-docs.sgml" "book" "refentry" "")
 
123
End:
 
124
-->