Add a singleton object that we can use to get notification when displays
Thu Jun 20 16:49:00 2002 Owen Taylor <otaylor@redhat.com> * gdk/gdkdisplaymanager.[ch] gdk/gdk.[ch] gdk/gdkdisplay.c gdk/gdkinternals.h gdk/x11/gdkdisplay-x11.c gdk/win32/gdkdisplay-win32.c: Add a singleton object that we can use to get notification when displays appear / disappear or the default display changes. gdk_set_default_display() => gdk_display_manager_set_default_display() gdk_list_displays() => gdk_display_manager_list_displays(). (#85696) * gdk/Makefile.am gdk/gdkmarshalers.list: Add marshaler generation. * gdk/gdkintl.h: Add this. * gtk/gtkmain.c: Add gtk_parse_args() that initializes GTK+ without opening a display. * gtk/gtkmain.c: Set things up so if a module exports gtk_module_init() and gtk_module_display_init(), then we treat it as multihead aware, otherwise, we only initialize it after the default display is set.
This commit is contained in:
@@ -2830,6 +2830,15 @@ Creates a border around the arrows of a #GtkSpinButton. The type of border is de
|
||||
|
||||
@Returns:
|
||||
|
||||
<!-- ##### FUNCTION gtk_style_get_font_for_display ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@display:
|
||||
@style:
|
||||
@Returns:
|
||||
|
||||
<!-- ##### FUNCTION gtk_text_buffer_paste_primary ##### -->
|
||||
<para>
|
||||
|
||||
|
||||
@@ -135,8 +135,8 @@ Creates a new file selection dialog box. By default it will contain a #GtkCList
|
||||
<para>
|
||||
</para>
|
||||
|
||||
@filesel:
|
||||
@filename:
|
||||
@filesel:
|
||||
@filename:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_file_selection_get_filename ##### -->
|
||||
|
||||
@@ -106,27 +106,15 @@ functions such as g_signal_connect().
|
||||
|
||||
<!-- ##### FUNCTION gtk_init ##### -->
|
||||
<para>
|
||||
Call this function before using any other GTK+ functions in your GUI
|
||||
applications. It will initialize everything needed to operate the toolkit and
|
||||
parses some standard command line options. <parameter>argc</parameter> and
|
||||
<parameter>argv</parameter> are adjusted accordingly so your own code will
|
||||
never see those standard arguments.
|
||||
</para>
|
||||
|
||||
<note>
|
||||
<para>
|
||||
This function will terminate your program if it was unable to initialize
|
||||
the GUI for some reason. If you want your program to fall back to a
|
||||
textual interface you want to call gtk_init_check() instead.
|
||||
</para>
|
||||
</note>
|
||||
|
||||
@argc: Address of the <parameter>argc</parameter> parameter of your
|
||||
<function>main</function> function. Changed if any arguments were
|
||||
handled.
|
||||
@argv: Address of the <parameter>argv</parameter> parameter of
|
||||
<function>main()</function>. Any parameters understood by gtk_init()
|
||||
are stripped before return.
|
||||
@argc:
|
||||
@argv:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_init_check ##### -->
|
||||
@@ -144,8 +132,7 @@ with the user - for example a curses or command line interface.
|
||||
<function>main()</function> function.
|
||||
@argv: A reference to the <parameter>argv</parameter> of the
|
||||
<function>main()</function> function.
|
||||
@Returns: %TRUE if the GUI has been successfully initialized,
|
||||
%FALSE otherwise.
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_exit ##### -->
|
||||
|
||||
@@ -179,16 +179,6 @@ Returns whether the style is attached to a window.
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_style_get_font_for_display ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@display:
|
||||
@style:
|
||||
@Returns:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gtk_style_set_font ##### -->
|
||||
<para>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user