]> Pileus Git - ~andy/gtk/commitdiff
new function, turns off decorations for a window.
authorHavoc Pennington <hp@redhat.com>
Wed, 7 Mar 2001 21:10:44 +0000 (21:10 +0000)
committerHavoc Pennington <hp@src.gnome.org>
Wed, 7 Mar 2001 21:10:44 +0000 (21:10 +0000)
2001-03-07  Havoc Pennington  <hp@redhat.com>

* gtk/gtkwindow.c (gtk_window_set_decorated): new function, turns
off decorations for a window.

* demos/gtk-demo/button_box.c (create_bbox): adapt to button box
changes

* gtk/gtklabel.c (gtk_label_get_layout_offsets): new function
to get location of PangoLayout inside the label, closes #51198

* gtk/testgtk.c (create_bbox): fix up button box usage

* gtk/testcalendar.c (create_calendar): fix up button box usage

* gtk/gtkfilesel.c (gtk_file_selection_init): fixup buttonbox usage

* gtk/gtkdialog.c (gtk_dialog_init): fixup buttonbox usage

* gtk/gtkhbbox.h: deprecations

* gtk/gtkvbbox.h: deprecations

* gtk/gtkbox.c (gtk_box_get_spacing): new function, used to
emulate deprecated gtk_button_box_get_spacing

* gtk/gtkbbox.h: deprecate some useless functions, remove entirely
the "set global default" functions
(struct _GtkButtonBox): remove "spacing" field, use the one from
GtkBox base class

* gtk/gtkbbox.c (_gtk_button_box_child_requisition): rename with uscore

* gtk/gtkiconfactory.c (gtk_icon_set_render_icon): If we fail to
render the icon, return the missing image icon.

* gtk/gtkimage.c (gtk_image_set_from_file): fall back to missing
image icon if the load fails.

* gtk/gtkstock.h (GTK_STOCK_MISSING_IMAGE): Add stock icon for use
when no image is found; should be the Netscape "missing image"
icon eventually but for now is a random image

* gtk/gtkwindow.c (gtk_window_set_role): new function, sets the
role for the session manager

* gtk/testgtk.c (dnd_drop): remove use of GTK_WINDOW_DIALOG

* gtk/gtkcompat.h (GTK_WINDOW_DIALOG): compat #define
GTK_WINDOW_DIALOG GTK_WINDOW_TOPLEVEL

* gtk/gtkenums.h (enum GtkWindowType): remove GTK_WINDOW_DIALOG

40 files changed:
ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
demos/gtk-demo/button_box.c
docs/reference/gdk-pixbuf/gdk-pixbuf.hierarchy
docs/reference/gdk-pixbuf/gdk-pixbuf.signals
docs/reference/gdk-pixbuf/tmpl/gdk-pixbuf-loader.sgml
docs/reference/gtk/tmpl/gtk-unused.sgml
docs/reference/gtk/tmpl/gtkbbox.sgml
docs/reference/gtk/tmpl/gtkenums.sgml
docs/reference/gtk/tmpl/gtksignal.sgml
docs/reference/gtk/tmpl/gtktypeutils.sgml
docs/reference/gtk/tmpl/gtkwidget.sgml
gdk/gdkdraw.c
gtk/gtkbbox.c
gtk/gtkbbox.h
gtk/gtkbox.c
gtk/gtkbox.h
gtk/gtkdialog.c
gtk/gtkenums.h
gtk/gtkfilesel.c
gtk/gtkhbbox.c
gtk/gtkhbbox.h
gtk/gtkiconfactory.c
gtk/gtkimage.c
gtk/gtklabel.c
gtk/gtklabel.h
gtk/gtkstock.h
gtk/gtkvbbox.c
gtk/gtkvbbox.h
gtk/gtkwindow.c
gtk/gtkwindow.h
gtk/testcalendar.c
gtk/testgtk.c
tests/testcalendar.c
tests/testgtk.c

index 8a64745d4e209f0281f0c880dd952a587c23cf4b..bed341a8f3e1f09b7c54b97a7730f0e524ae5145 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,56 @@
+2001-03-07  Havoc Pennington  <hp@redhat.com>
+
+       * gtk/gtkwindow.c (gtk_window_set_decorated): new function, turns
+       off decorations for a window.
+
+       * demos/gtk-demo/button_box.c (create_bbox): adapt to button box
+       changes
+
+       * gtk/gtklabel.c (gtk_label_get_layout_offsets): new function 
+       to get location of PangoLayout inside the label, closes #51198
+
+       * gtk/testgtk.c (create_bbox): fix up button box usage
+
+       * gtk/testcalendar.c (create_calendar): fix up button box usage
+
+       * gtk/gtkfilesel.c (gtk_file_selection_init): fixup buttonbox usage
+
+       * gtk/gtkdialog.c (gtk_dialog_init): fixup buttonbox usage
+
+       * gtk/gtkhbbox.h: deprecations
+
+       * gtk/gtkvbbox.h: deprecations
+
+       * gtk/gtkbox.c (gtk_box_get_spacing): new function, used to
+       emulate deprecated gtk_button_box_get_spacing
+
+       * gtk/gtkbbox.h: deprecate some useless functions, remove entirely 
+       the "set global default" functions
+       (struct _GtkButtonBox): remove "spacing" field, use the one from 
+       GtkBox base class
+
+       * gtk/gtkbbox.c (_gtk_button_box_child_requisition): rename with uscore
+
+       * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): If we fail to
+       render the icon, return the missing image icon.
+
+       * gtk/gtkimage.c (gtk_image_set_from_file): fall back to missing
+       image icon if the load fails.   
+
+       * gtk/gtkstock.h (GTK_STOCK_MISSING_IMAGE): Add stock icon for use
+       when no image is found; should be the Netscape "missing image"
+       icon eventually but for now is a random image
+
+       * gtk/gtkwindow.c (gtk_window_set_role): new function, sets the 
+       role for the session manager
+
+       * gtk/testgtk.c (dnd_drop): remove use of GTK_WINDOW_DIALOG
+
+       * gtk/gtkcompat.h (GTK_WINDOW_DIALOG): compat #define
+       GTK_WINDOW_DIALOG GTK_WINDOW_TOPLEVEL
+
+       * gtk/gtkenums.h (enum GtkWindowType): remove GTK_WINDOW_DIALOG
+
 Wed Mar  7 13:24:57 2001  Tim Janik  <timj@gtk.org>
 
        * gtk/*.c: marshaller fixes.
index 8a64745d4e209f0281f0c880dd952a587c23cf4b..bed341a8f3e1f09b7c54b97a7730f0e524ae5145 100644 (file)
@@ -1,3 +1,56 @@
+2001-03-07  Havoc Pennington  <hp@redhat.com>
+
+       * gtk/gtkwindow.c (gtk_window_set_decorated): new function, turns
+       off decorations for a window.
+
+       * demos/gtk-demo/button_box.c (create_bbox): adapt to button box
+       changes
+
+       * gtk/gtklabel.c (gtk_label_get_layout_offsets): new function 
+       to get location of PangoLayout inside the label, closes #51198
+
+       * gtk/testgtk.c (create_bbox): fix up button box usage
+
+       * gtk/testcalendar.c (create_calendar): fix up button box usage
+
+       * gtk/gtkfilesel.c (gtk_file_selection_init): fixup buttonbox usage
+
+       * gtk/gtkdialog.c (gtk_dialog_init): fixup buttonbox usage
+
+       * gtk/gtkhbbox.h: deprecations
+
+       * gtk/gtkvbbox.h: deprecations
+
+       * gtk/gtkbox.c (gtk_box_get_spacing): new function, used to
+       emulate deprecated gtk_button_box_get_spacing
+
+       * gtk/gtkbbox.h: deprecate some useless functions, remove entirely 
+       the "set global default" functions
+       (struct _GtkButtonBox): remove "spacing" field, use the one from 
+       GtkBox base class
+
+       * gtk/gtkbbox.c (_gtk_button_box_child_requisition): rename with uscore
+
+       * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): If we fail to
+       render the icon, return the missing image icon.
+
+       * gtk/gtkimage.c (gtk_image_set_from_file): fall back to missing
+       image icon if the load fails.   
+
+       * gtk/gtkstock.h (GTK_STOCK_MISSING_IMAGE): Add stock icon for use
+       when no image is found; should be the Netscape "missing image"
+       icon eventually but for now is a random image
+
+       * gtk/gtkwindow.c (gtk_window_set_role): new function, sets the 
+       role for the session manager
+
+       * gtk/testgtk.c (dnd_drop): remove use of GTK_WINDOW_DIALOG
+
+       * gtk/gtkcompat.h (GTK_WINDOW_DIALOG): compat #define
+       GTK_WINDOW_DIALOG GTK_WINDOW_TOPLEVEL
+
+       * gtk/gtkenums.h (enum GtkWindowType): remove GTK_WINDOW_DIALOG
+
 Wed Mar  7 13:24:57 2001  Tim Janik  <timj@gtk.org>
 
        * gtk/*.c: marshaller fixes.
index 8a64745d4e209f0281f0c880dd952a587c23cf4b..bed341a8f3e1f09b7c54b97a7730f0e524ae5145 100644 (file)
@@ -1,3 +1,56 @@
+2001-03-07  Havoc Pennington  <hp@redhat.com>
+
+       * gtk/gtkwindow.c (gtk_window_set_decorated): new function, turns
+       off decorations for a window.
+
+       * demos/gtk-demo/button_box.c (create_bbox): adapt to button box
+       changes
+
+       * gtk/gtklabel.c (gtk_label_get_layout_offsets): new function 
+       to get location of PangoLayout inside the label, closes #51198
+
+       * gtk/testgtk.c (create_bbox): fix up button box usage
+
+       * gtk/testcalendar.c (create_calendar): fix up button box usage
+
+       * gtk/gtkfilesel.c (gtk_file_selection_init): fixup buttonbox usage
+
+       * gtk/gtkdialog.c (gtk_dialog_init): fixup buttonbox usage
+
+       * gtk/gtkhbbox.h: deprecations
+
+       * gtk/gtkvbbox.h: deprecations
+
+       * gtk/gtkbox.c (gtk_box_get_spacing): new function, used to
+       emulate deprecated gtk_button_box_get_spacing
+
+       * gtk/gtkbbox.h: deprecate some useless functions, remove entirely 
+       the "set global default" functions
+       (struct _GtkButtonBox): remove "spacing" field, use the one from 
+       GtkBox base class
+
+       * gtk/gtkbbox.c (_gtk_button_box_child_requisition): rename with uscore
+
+       * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): If we fail to
+       render the icon, return the missing image icon.
+
+       * gtk/gtkimage.c (gtk_image_set_from_file): fall back to missing
+       image icon if the load fails.   
+
+       * gtk/gtkstock.h (GTK_STOCK_MISSING_IMAGE): Add stock icon for use
+       when no image is found; should be the Netscape "missing image"
+       icon eventually but for now is a random image
+
+       * gtk/gtkwindow.c (gtk_window_set_role): new function, sets the 
+       role for the session manager
+
+       * gtk/testgtk.c (dnd_drop): remove use of GTK_WINDOW_DIALOG
+
+       * gtk/gtkcompat.h (GTK_WINDOW_DIALOG): compat #define
+       GTK_WINDOW_DIALOG GTK_WINDOW_TOPLEVEL
+
+       * gtk/gtkenums.h (enum GtkWindowType): remove GTK_WINDOW_DIALOG
+
 Wed Mar  7 13:24:57 2001  Tim Janik  <timj@gtk.org>
 
        * gtk/*.c: marshaller fixes.
index 8a64745d4e209f0281f0c880dd952a587c23cf4b..bed341a8f3e1f09b7c54b97a7730f0e524ae5145 100644 (file)
@@ -1,3 +1,56 @@
+2001-03-07  Havoc Pennington  <hp@redhat.com>
+
+       * gtk/gtkwindow.c (gtk_window_set_decorated): new function, turns
+       off decorations for a window.
+
+       * demos/gtk-demo/button_box.c (create_bbox): adapt to button box
+       changes
+
+       * gtk/gtklabel.c (gtk_label_get_layout_offsets): new function 
+       to get location of PangoLayout inside the label, closes #51198
+
+       * gtk/testgtk.c (create_bbox): fix up button box usage
+
+       * gtk/testcalendar.c (create_calendar): fix up button box usage
+
+       * gtk/gtkfilesel.c (gtk_file_selection_init): fixup buttonbox usage
+
+       * gtk/gtkdialog.c (gtk_dialog_init): fixup buttonbox usage
+
+       * gtk/gtkhbbox.h: deprecations
+
+       * gtk/gtkvbbox.h: deprecations
+
+       * gtk/gtkbox.c (gtk_box_get_spacing): new function, used to
+       emulate deprecated gtk_button_box_get_spacing
+
+       * gtk/gtkbbox.h: deprecate some useless functions, remove entirely 
+       the "set global default" functions
+       (struct _GtkButtonBox): remove "spacing" field, use the one from 
+       GtkBox base class
+
+       * gtk/gtkbbox.c (_gtk_button_box_child_requisition): rename with uscore
+
+       * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): If we fail to
+       render the icon, return the missing image icon.
+
+       * gtk/gtkimage.c (gtk_image_set_from_file): fall back to missing
+       image icon if the load fails.   
+
+       * gtk/gtkstock.h (GTK_STOCK_MISSING_IMAGE): Add stock icon for use
+       when no image is found; should be the Netscape "missing image"
+       icon eventually but for now is a random image
+
+       * gtk/gtkwindow.c (gtk_window_set_role): new function, sets the 
+       role for the session manager
+
+       * gtk/testgtk.c (dnd_drop): remove use of GTK_WINDOW_DIALOG
+
+       * gtk/gtkcompat.h (GTK_WINDOW_DIALOG): compat #define
+       GTK_WINDOW_DIALOG GTK_WINDOW_TOPLEVEL
+
+       * gtk/gtkenums.h (enum GtkWindowType): remove GTK_WINDOW_DIALOG
+
 Wed Mar  7 13:24:57 2001  Tim Janik  <timj@gtk.org>
 
        * gtk/*.c: marshaller fixes.
index 8a64745d4e209f0281f0c880dd952a587c23cf4b..bed341a8f3e1f09b7c54b97a7730f0e524ae5145 100644 (file)
@@ -1,3 +1,56 @@
+2001-03-07  Havoc Pennington  <hp@redhat.com>
+
+       * gtk/gtkwindow.c (gtk_window_set_decorated): new function, turns
+       off decorations for a window.
+
+       * demos/gtk-demo/button_box.c (create_bbox): adapt to button box
+       changes
+
+       * gtk/gtklabel.c (gtk_label_get_layout_offsets): new function 
+       to get location of PangoLayout inside the label, closes #51198
+
+       * gtk/testgtk.c (create_bbox): fix up button box usage
+
+       * gtk/testcalendar.c (create_calendar): fix up button box usage
+
+       * gtk/gtkfilesel.c (gtk_file_selection_init): fixup buttonbox usage
+
+       * gtk/gtkdialog.c (gtk_dialog_init): fixup buttonbox usage
+
+       * gtk/gtkhbbox.h: deprecations
+
+       * gtk/gtkvbbox.h: deprecations
+
+       * gtk/gtkbox.c (gtk_box_get_spacing): new function, used to
+       emulate deprecated gtk_button_box_get_spacing
+
+       * gtk/gtkbbox.h: deprecate some useless functions, remove entirely 
+       the "set global default" functions
+       (struct _GtkButtonBox): remove "spacing" field, use the one from 
+       GtkBox base class
+
+       * gtk/gtkbbox.c (_gtk_button_box_child_requisition): rename with uscore
+
+       * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): If we fail to
+       render the icon, return the missing image icon.
+
+       * gtk/gtkimage.c (gtk_image_set_from_file): fall back to missing
+       image icon if the load fails.   
+
+       * gtk/gtkstock.h (GTK_STOCK_MISSING_IMAGE): Add stock icon for use
+       when no image is found; should be the Netscape "missing image"
+       icon eventually but for now is a random image
+
+       * gtk/gtkwindow.c (gtk_window_set_role): new function, sets the 
+       role for the session manager
+
+       * gtk/testgtk.c (dnd_drop): remove use of GTK_WINDOW_DIALOG
+
+       * gtk/gtkcompat.h (GTK_WINDOW_DIALOG): compat #define
+       GTK_WINDOW_DIALOG GTK_WINDOW_TOPLEVEL
+
+       * gtk/gtkenums.h (enum GtkWindowType): remove GTK_WINDOW_DIALOG
+
 Wed Mar  7 13:24:57 2001  Tim Janik  <timj@gtk.org>
 
        * gtk/*.c: marshaller fixes.
index 8a64745d4e209f0281f0c880dd952a587c23cf4b..bed341a8f3e1f09b7c54b97a7730f0e524ae5145 100644 (file)
@@ -1,3 +1,56 @@
+2001-03-07  Havoc Pennington  <hp@redhat.com>
+
+       * gtk/gtkwindow.c (gtk_window_set_decorated): new function, turns
+       off decorations for a window.
+
+       * demos/gtk-demo/button_box.c (create_bbox): adapt to button box
+       changes
+
+       * gtk/gtklabel.c (gtk_label_get_layout_offsets): new function 
+       to get location of PangoLayout inside the label, closes #51198
+
+       * gtk/testgtk.c (create_bbox): fix up button box usage
+
+       * gtk/testcalendar.c (create_calendar): fix up button box usage
+
+       * gtk/gtkfilesel.c (gtk_file_selection_init): fixup buttonbox usage
+
+       * gtk/gtkdialog.c (gtk_dialog_init): fixup buttonbox usage
+
+       * gtk/gtkhbbox.h: deprecations
+
+       * gtk/gtkvbbox.h: deprecations
+
+       * gtk/gtkbox.c (gtk_box_get_spacing): new function, used to
+       emulate deprecated gtk_button_box_get_spacing
+
+       * gtk/gtkbbox.h: deprecate some useless functions, remove entirely 
+       the "set global default" functions
+       (struct _GtkButtonBox): remove "spacing" field, use the one from 
+       GtkBox base class
+
+       * gtk/gtkbbox.c (_gtk_button_box_child_requisition): rename with uscore
+
+       * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): If we fail to
+       render the icon, return the missing image icon.
+
+       * gtk/gtkimage.c (gtk_image_set_from_file): fall back to missing
+       image icon if the load fails.   
+
+       * gtk/gtkstock.h (GTK_STOCK_MISSING_IMAGE): Add stock icon for use
+       when no image is found; should be the Netscape "missing image"
+       icon eventually but for now is a random image
+
+       * gtk/gtkwindow.c (gtk_window_set_role): new function, sets the 
+       role for the session manager
+
+       * gtk/testgtk.c (dnd_drop): remove use of GTK_WINDOW_DIALOG
+
+       * gtk/gtkcompat.h (GTK_WINDOW_DIALOG): compat #define
+       GTK_WINDOW_DIALOG GTK_WINDOW_TOPLEVEL
+
+       * gtk/gtkenums.h (enum GtkWindowType): remove GTK_WINDOW_DIALOG
+
 Wed Mar  7 13:24:57 2001  Tim Janik  <timj@gtk.org>
 
        * gtk/*.c: marshaller fixes.
index 8a64745d4e209f0281f0c880dd952a587c23cf4b..bed341a8f3e1f09b7c54b97a7730f0e524ae5145 100644 (file)
@@ -1,3 +1,56 @@
+2001-03-07  Havoc Pennington  <hp@redhat.com>
+
+       * gtk/gtkwindow.c (gtk_window_set_decorated): new function, turns
+       off decorations for a window.
+
+       * demos/gtk-demo/button_box.c (create_bbox): adapt to button box
+       changes
+
+       * gtk/gtklabel.c (gtk_label_get_layout_offsets): new function 
+       to get location of PangoLayout inside the label, closes #51198
+
+       * gtk/testgtk.c (create_bbox): fix up button box usage
+
+       * gtk/testcalendar.c (create_calendar): fix up button box usage
+
+       * gtk/gtkfilesel.c (gtk_file_selection_init): fixup buttonbox usage
+
+       * gtk/gtkdialog.c (gtk_dialog_init): fixup buttonbox usage
+
+       * gtk/gtkhbbox.h: deprecations
+
+       * gtk/gtkvbbox.h: deprecations
+
+       * gtk/gtkbox.c (gtk_box_get_spacing): new function, used to
+       emulate deprecated gtk_button_box_get_spacing
+
+       * gtk/gtkbbox.h: deprecate some useless functions, remove entirely 
+       the "set global default" functions
+       (struct _GtkButtonBox): remove "spacing" field, use the one from 
+       GtkBox base class
+
+       * gtk/gtkbbox.c (_gtk_button_box_child_requisition): rename with uscore
+
+       * gtk/gtkiconfactory.c (gtk_icon_set_render_icon): If we fail to
+       render the icon, return the missing image icon.
+
+       * gtk/gtkimage.c (gtk_image_set_from_file): fall back to missing
+       image icon if the load fails.   
+
+       * gtk/gtkstock.h (GTK_STOCK_MISSING_IMAGE): Add stock icon for use
+       when no image is found; should be the Netscape "missing image"
+       icon eventually but for now is a random image
+
+       * gtk/gtkwindow.c (gtk_window_set_role): new function, sets the 
+       role for the session manager
+
+       * gtk/testgtk.c (dnd_drop): remove use of GTK_WINDOW_DIALOG
+
+       * gtk/gtkcompat.h (GTK_WINDOW_DIALOG): compat #define
+       GTK_WINDOW_DIALOG GTK_WINDOW_TOPLEVEL
+
+       * gtk/gtkenums.h (enum GtkWindowType): remove GTK_WINDOW_DIALOG
+
 Wed Mar  7 13:24:57 2001  Tim Janik  <timj@gtk.org>
 
        * gtk/*.c: marshaller fixes.
index 6291375d2e392a510fb88948d757f80f6cd6bf4b..3cbdb09058ea1e0bd0065e613d8c3e2df10e4c4b 100644 (file)
@@ -9,8 +9,6 @@ static GtkWidget *
 create_bbox (gint  horizontal,
             char* title, 
             gint  spacing,
-            gint  child_w, 
-            gint  child_h, 
             gint  layout)
 {
   GtkWidget *frame;
@@ -28,8 +26,7 @@ create_bbox (gint  horizontal,
   gtk_container_add (GTK_CONTAINER (frame), bbox);
 
   gtk_button_box_set_layout (GTK_BUTTON_BOX (bbox), layout);
-  gtk_button_box_set_spacing (GTK_BUTTON_BOX (bbox), spacing);
-  gtk_button_box_set_child_size (GTK_BUTTON_BOX (bbox), child_w, child_h);
+  gtk_box_set_spacing (GTK_BOX (bbox), spacing);
   
   button = gtk_button_new_with_label ("OK");
   gtk_container_add (GTK_CONTAINER (bbox), button);
@@ -75,19 +72,19 @@ do_button_box (void)
     gtk_container_add (GTK_CONTAINER (frame_horz), vbox);
 
     gtk_box_pack_start (GTK_BOX (vbox), 
-          create_bbox (TRUE, "Spread", 40, 85, 20, GTK_BUTTONBOX_SPREAD),
+          create_bbox (TRUE, "Spread", 40, GTK_BUTTONBOX_SPREAD),
                        TRUE, TRUE, 0);
 
     gtk_box_pack_start (GTK_BOX (vbox), 
-          create_bbox (TRUE, "Edge", 40, 85, 20, GTK_BUTTONBOX_EDGE),
+          create_bbox (TRUE, "Edge", 40, GTK_BUTTONBOX_EDGE),
                        TRUE, TRUE, 5);
 
     gtk_box_pack_start (GTK_BOX (vbox), 
-          create_bbox (TRUE, "Start", 40, 85, 20, GTK_BUTTONBOX_START),
+          create_bbox (TRUE, "Start", 40, GTK_BUTTONBOX_START),
                        TRUE, TRUE, 5);
 
     gtk_box_pack_start (GTK_BOX (vbox), 
-          create_bbox (TRUE, "End", 40, 85, 20, GTK_BUTTONBOX_END),
+          create_bbox (TRUE, "End", 40, GTK_BUTTONBOX_END),
                        TRUE, TRUE, 5);
 
     frame_vert = gtk_frame_new ("Vertical Button Boxes");
@@ -98,19 +95,19 @@ do_button_box (void)
     gtk_container_add (GTK_CONTAINER (frame_vert), hbox);
 
     gtk_box_pack_start (GTK_BOX (hbox), 
-          create_bbox (FALSE, "Spread", 30, 85, 20, GTK_BUTTONBOX_SPREAD),
+          create_bbox (FALSE, "Spread", 30, GTK_BUTTONBOX_SPREAD),
                        TRUE, TRUE, 0);
 
     gtk_box_pack_start (GTK_BOX (hbox), 
-          create_bbox (FALSE, "Edge", 30, 85, 20, GTK_BUTTONBOX_EDGE),
+          create_bbox (FALSE, "Edge", 30, GTK_BUTTONBOX_EDGE),
                        TRUE, TRUE, 5);
 
     gtk_box_pack_start (GTK_BOX (hbox), 
-          create_bbox (FALSE, "Start", 30, 85, 20, GTK_BUTTONBOX_START),
+          create_bbox (FALSE, "Start", 30, GTK_BUTTONBOX_START),
                        TRUE, TRUE, 5);
 
     gtk_box_pack_start (GTK_BOX (hbox), 
-          create_bbox (FALSE, "End", 30, 85, 20, GTK_BUTTONBOX_END),
+          create_bbox (FALSE, "End", 30, GTK_BUTTONBOX_END),
                        TRUE, TRUE, 5);
   }
 
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..7346c3efc467e5f8b0bf31b13e2956be53642ab3 100644 (file)
@@ -0,0 +1,2 @@
+GObject
+  GdkPixbufLoader
index b3db0835eca2a0e566ad14f1628314c6d62fef87..252ed60d480b5e9ada5ae6d1a61bc01b18b70eea 100644 (file)
@@ -1,11 +1,7 @@
 <SIGNAL>
-<NAME>GdkPixbufLoader::area-updated</NAME>
+<NAME>GdkPixbufLoader::animation-done</NAME>
 <RETURNS>void</RETURNS>
 GdkPixbufLoader *gdkpixbufloader
-gint  arg1
-gint  arg2
-gint  arg3
-gint  arg4
 </SIGNAL>
 
 <SIGNAL>
@@ -15,21 +11,25 @@ GdkPixbufLoader *gdkpixbufloader
 </SIGNAL>
 
 <SIGNAL>
-<NAME>GdkPixbufLoader::frame-done</NAME>
+<NAME>GdkPixbufLoader::area-updated</NAME>
 <RETURNS>void</RETURNS>
 GdkPixbufLoader *gdkpixbufloader
-gpointer  arg1
+gint  arg1
+gint  arg2
+gint  arg3
+gint  arg4
 </SIGNAL>
 
 <SIGNAL>
-<NAME>GdkPixbufLoader::animation-done</NAME>
+<NAME>GdkPixbufLoader::closed</NAME>
 <RETURNS>void</RETURNS>
 GdkPixbufLoader *gdkpixbufloader
 </SIGNAL>
 
 <SIGNAL>
-<NAME>GdkPixbufLoader::closed</NAME>
+<NAME>GdkPixbufLoader::frame-done</NAME>
 <RETURNS>void</RETURNS>
 GdkPixbufLoader *gdkpixbufloader
+GdkPixbufFrame  arg1
 </SIGNAL>
 
index afa985da2670c26a4f82e53eb151bab87c3f0a04..b2f07bd0ef628ace1cf93fb2a9962f2ac3f30cc9 100644 (file)
@@ -132,26 +132,14 @@ Application-driven progressive image loading.
 @Returns: 
 
 
-<!-- ##### SIGNAL GdkPixbufLoader::area-updated ##### -->
+<!-- ##### SIGNAL GdkPixbufLoader::animation-done ##### -->
   <para>
-    This signal is emitted when a significant area of the image being
-    loaded has been updated.  Normally it means that a complete
-    scanline has been read in, but it could be a different area as
-    well.  Applications can use this signal to know when to repaint
-    areas of an image that is being loaded.
+    This signal is emitted when an animation is done loading.
   </para>
 
 @gdkpixbufloader: the object which received the signal.
-@arg1: 
-@arg2: 
-@arg3: 
-@arg4: 
 <!-- # Unused Parameters # -->
 @loader: Loader which emitted the signal.
-@x: X offset of upper-left corner of the updated area.
-@y: Y offset of upper-left corner of the updated area.
-@width: Width of updated area.
-@height: Height of updated area.
 
 <!-- ##### SIGNAL GdkPixbufLoader::area-prepared ##### -->
   <para>
@@ -166,26 +154,26 @@ Application-driven progressive image loading.
 <!-- # Unused Parameters # -->
 @loader: Loader which emitted the signal.
 
-<!-- ##### SIGNAL GdkPixbufLoader::frame-done ##### -->
+<!-- ##### SIGNAL GdkPixbufLoader::area-updated ##### -->
   <para>
-    This signal is emitted when a frame is done loading.  It will be
-    emitted for each frame in an animation data stream.
+    This signal is emitted when a significant area of the image being
+    loaded has been updated.  Normally it means that a complete
+    scanline has been read in, but it could be a different area as
+    well.  Applications can use this signal to know when to repaint
+    areas of an image that is being loaded.
   </para>
 
 @gdkpixbufloader: the object which received the signal.
 @arg1: 
+@arg2: 
+@arg3: 
+@arg4: 
 <!-- # Unused Parameters # -->
 @loader: Loader which emitted the signal.
-@frame: Frame which just completed loading.
-
-<!-- ##### SIGNAL GdkPixbufLoader::animation-done ##### -->
-  <para>
-    This signal is emitted when an animation is done loading.
-  </para>
-
-@gdkpixbufloader: the object which received the signal.
-<!-- # Unused Parameters # -->
-@loader: Loader which emitted the signal.
+@x: X offset of upper-left corner of the updated area.
+@y: Y offset of upper-left corner of the updated area.
+@width: Width of updated area.
+@height: Height of updated area.
 
 <!-- ##### SIGNAL GdkPixbufLoader::closed ##### -->
   <para>
@@ -206,3 +194,15 @@ sgml-parent-document: ("../gdk-pixbuf.sgml" "book" "refsect2" "")
 End:
 -->
 
+<!-- ##### SIGNAL GdkPixbufLoader::frame-done ##### -->
+  <para>
+    This signal is emitted when a frame is done loading.  It will be
+    emitted for each frame in an animation data stream.
+  </para>
+
+@gdkpixbufloader: the object which received the signal.
+@arg1: 
+<!-- # Unused Parameters # -->
+@loader: Loader which emitted the signal.
+@frame: Frame which just completed loading.
+
index 8d8f64b286555b2b512f68c409de919a332c8247..84e9b4c6781862cd06ed5a208e8a37f3de6f9008 100644 (file)
@@ -571,6 +571,14 @@ produce superscript and subscript.
 </para>
 
 
+<!-- ##### SIGNAL GtkWidget::debug-msg ##### -->
+<para>
+
+</para>
+
+@widget: the object which received the signal.
+@message: 
+
 <!-- ##### SIGNAL GtkWidget::draw ##### -->
 <para>
 
@@ -593,6 +601,53 @@ produce superscript and subscript.
 
 @widget: the object which received the signal.
 
+<!-- ##### FUNCTION gtk_button_box_child_requisition ##### -->
+<para>\r
+This is an internally used function and should never be called from an\r
+application.\r
+</para>
+
+@widget: 
+@nvis_children: 
+@width: 
+@height: 
+
+<!-- ##### FUNCTION gtk_button_box_get_child_ipadding_default ##### -->
+<para>\r
+The internal padding of a button is the amount of space between the outside\r
+of the button and the widget it contains. This function gets the default\r
+amount of horizontal and vertical padding, placing the results in @ipad_x\r
+and @ipad_y, respectively.\r
+</para>
+
+@ipad_x: the default horizontal internal button padding.
+@ipad_y: the default vertical internal button padding.
+
+<!-- ##### FUNCTION gtk_button_box_get_child_size_default ##### -->
+<para>\r
+Retrieves the default minimum width and height for all button boxes, and\r
+places the values in @min_width and @min_height, respectively.\r
+</para>
+
+@min_width: the default minimum width of a child widget.
+@min_height: the default minimum height of a child widget.
+
+<!-- ##### FUNCTION gtk_button_box_set_child_ipadding_default ##### -->
+<para>\r
+Sets the default number of pixels that pad each button in every button box.\r
+</para>
+
+@ipad_x: new default horizontal padding.
+@ipad_y: new default vertical padding.
+
+<!-- ##### FUNCTION gtk_button_box_set_child_size_default ##### -->
+<para>\r
+Sets the default size of child buttons.\r
+</para>
+
+@min_width: minimum default width for child buttons.
+@min_height: minimum default height for child buttons.
+
 <!-- ##### FUNCTION gtk_clist_construct ##### -->
 <para>
 Initializes a previously allocated #GtkCList widget for use.  This should not
@@ -954,6 +1009,12 @@ This function is labeled private.
 
 @object: the object whose signal handlers should be destroyed.
 
+<!-- ##### FUNCTION gtk_signal_init ##### -->
+<para>
+
+</para>
+
+
 <!-- ##### FUNCTION gtk_signal_n_emissions ##### -->
 <para>
 Find out the recursion depth of emissions for a particular type
index a73be12568110efb5f143dbbb5a503bcf157563a..07185209dda7bfe0ab530793e51cc0bcc3fa9667 100644 (file)
@@ -70,53 +70,14 @@ Used internally only.
 
 
 
-<!-- ##### FUNCTION gtk_button_box_get_child_size_default ##### -->
-<para>\r
-Retrieves the default minimum width and height for all button boxes, and\r
-places the values in @min_width and @min_height, respectively.\r
-</para>
-
-@min_width: the default minimum width of a child widget.
-@min_height: the default minimum height of a child widget.
-
-
-<!-- ##### FUNCTION gtk_button_box_get_child_ipadding_default ##### -->
-<para>\r
-The internal padding of a button is the amount of space between the outside\r
-of the button and the widget it contains. This function gets the default\r
-amount of horizontal and vertical padding, placing the results in @ipad_x\r
-and @ipad_y, respectively.\r
-</para>
-
-@ipad_x: the default horizontal internal button padding.
-@ipad_y: the default vertical internal button padding.
-
-
-<!-- ##### FUNCTION gtk_button_box_set_child_size_default ##### -->
-<para>\r
-Sets the default size of child buttons.\r
-</para>
-
-@min_width: minimum default width for child buttons.
-@min_height: minimum default height for child buttons.
-
-
-<!-- ##### FUNCTION gtk_button_box_set_child_ipadding_default ##### -->
-<para>\r
-Sets the default number of pixels that pad each button in every button box.\r
-</para>
-
-@ipad_x: new default horizontal padding.
-@ipad_y: new default vertical padding.
-
-
-<!-- ##### FUNCTION gtk_button_box_get_spacing ##### -->
+<!-- ##### MACRO gtk_button_box_get_spacing ##### -->
 <para>\r
 Retrieves how much space a button box is placing between each child button.\r
 </para>
 
-@widget: a #GtkButtonBox.
 @Returns: the current spacing applied to the buttons in @widget.
+<!-- # Unused Parameters # -->
+@widget: a #GtkButtonBox.
 
 
 <!-- ##### FUNCTION gtk_button_box_get_layout ##### -->
@@ -149,11 +110,12 @@ Gets the default number of pixels that pad the buttons in a given button box.
 @ipad_y: the vertical padding used by buttons in @widget.
 
 
-<!-- ##### FUNCTION gtk_button_box_set_spacing ##### -->
+<!-- ##### MACRO gtk_button_box_set_spacing ##### -->
 <para>\r
 Sets the amount of spacing between buttons in a given button box.\r
 </para>
 
+<!-- # Unused Parameters # -->
 @widget: a #GtkButtonBox.
 @spacing: the number of pixels of spacing.
 
@@ -188,15 +150,3 @@ box.
 @ipad_y: the vertical padding that should be used by each button in @widget.
 
 
-<!-- ##### FUNCTION gtk_button_box_child_requisition ##### -->
-<para>\r
-This is an internally used function and should never be called from an\r
-application.\r
-</para>
-
-@widget: 
-@nvis_children: 
-@width: 
-@height: 
-
-
index 00419b966bddae5d9f117ab47ab0d04d9495b235..ab9c7500b16964b27c17bc1e8b515445aa6e5378 100644 (file)
@@ -373,7 +373,6 @@ window managers.
 </para>
 
 @GTK_WINDOW_TOPLEVEL: A window for a typical application.
-@GTK_WINDOW_DIALOG: A window for transient messages and dialogs.
 @GTK_WINDOW_POPUP: A window for popups.
 
 <!-- ##### ENUM GtkSortType ##### -->
index 8e7a420846588147d01c7ac01fe5f4242be1d95c..c3696cb03c85e1114e382ebfd7827853d500d432 100644 (file)
@@ -244,13 +244,6 @@ to the signal.
 @GTK_RUN_ACTION: 
 @GTK_RUN_NO_HOOKS: 
 
-<!-- ##### FUNCTION gtk_signal_init ##### -->
-<para>
-
-</para>
-
-
-
 <!-- ##### FUNCTION gtk_signal_new ##### -->
 <para>
 Create a new signal type.  (This is usually done in the
@@ -308,7 +301,7 @@ you don't want a return value.
 the callbacks.
 
 
-<!-- ##### FUNCTION gtk_signal_lookup ##### -->
+<!-- ##### MACRO gtk_signal_lookup ##### -->
 <para>
 Given the name of the signal and the type of object it connects
 to, get the signal's identifying integer.  Emitting the signal
@@ -318,12 +311,13 @@ by number is somewhat faster than using the name each time.
 It also tries the ancestors of the given type.
 </para>
 
+@Returns: the signal's identifying number, or 0 if no signal was found.
+<!-- # Unused Parameters # -->
 @name: the signal's name, e.g. clicked.
 @object_type: the type that the signal operates on, e.g. #GTK_TYPE_BUTTON.
-@Returns: the signal's identifying number, or 0 if no signal was found.
 
 
-<!-- ##### FUNCTION gtk_signal_name ##### -->
+<!-- ##### MACRO gtk_signal_name ##### -->
 <para>
 Given the signal's identifier, find its name.
 </para>
@@ -331,8 +325,9 @@ Given the signal's identifier, find its name.
 Two different signals may have the same name, if they have differing types.
 </para>
 
-@signal_id: the signal's identifying number.
 @Returns: the signal name, or NULL if the signal number was invalid.
+<!-- # Unused Parameters # -->
+@signal_id: the signal's identifying number.
 
 
 <!-- ##### FUNCTION gtk_signal_emit ##### -->
@@ -400,7 +395,7 @@ an array of GtkArgs instead of using C's varargs mechanism.
 followed by one which is a pointer to the return type.
 
 
-<!-- ##### FUNCTION gtk_signal_emit_stop ##### -->
+<!-- ##### MACRO gtk_signal_emit_stop ##### -->
 <para>
 This function aborts a signal's current emission.
 </para>
@@ -414,11 +409,11 @@ It will print a warning if used on a signal which
 isn't being emitted.
 </para>
 
-@object: the object whose signal handlers you wish to stop.
-@signal_id: the signal identifier, as returned by gtk_signal_lookup().
-<!-- # Unused Parameters # -->
 @i: 
 @s: 
+<!-- # Unused Parameters # -->
+@object: the object whose signal handlers you wish to stop.
+@signal_id: the signal identifier, as returned by gtk_signal_lookup().
 
 
 <!-- ##### FUNCTION gtk_signal_emit_stop_by_name ##### -->
@@ -434,7 +429,7 @@ except it will lookup the signal id for you.
 @name: the name of the signal you wish to stop.
 
 
-<!-- ##### FUNCTION gtk_signal_connect ##### -->
+<!-- ##### MACRO gtk_signal_connect ##### -->
 <para>
 Attach a function pointer and user data to a signal for
 a particular object.
@@ -473,38 +468,38 @@ static void attach_print_signal(GtkButton* button, gint to_print)
 </programlisting>
 </informalexample>
 
+@o: 
+@s: 
+@f: 
+@d: 
+@Returns: the connection id.
+<!-- # Unused Parameters # -->
 @object: the object associated with the signal, e.g. if a button
 is getting pressed, this is that button.
 @name: name of the signal.
 @func: function pointer to attach to the signal.
 @func_data: value to pass as to your function (through the marshaller).
-@Returns: the connection id.
-<!-- # Unused Parameters # -->
-@o: 
-@s: 
-@f: 
-@d: 
 
 
-<!-- ##### FUNCTION gtk_signal_connect_after ##### -->
+<!-- ##### MACRO gtk_signal_connect_after ##### -->
 <para>
 Attach a function pointer and user data to a signal
 so that this handler will be called after the other handlers.
 </para>
 
-@object: the object associated with the signal.
-@name: name of the signal.
-@func: function pointer to attach to the signal.
-@func_data: value to pass as to your function (through the marshaller).
-@Returns: the unique identifier for this attachment:  the connection id.
-<!-- # Unused Parameters # -->
 @o: 
 @s: 
 @f: 
 @d: 
+@Returns: the unique identifier for this attachment:  the connection id.
+<!-- # Unused Parameters # -->
+@object: the object associated with the signal.
+@name: name of the signal.
+@func: function pointer to attach to the signal.
+@func_data: value to pass as to your function (through the marshaller).
 
 
-<!-- ##### FUNCTION gtk_signal_connect_object ##### -->
+<!-- ##### MACRO gtk_signal_connect_object ##### -->
 <para>
 This function is for registering a callback that will
 call another object's callback.  That is,
@@ -525,21 +520,21 @@ gtk_signal_connect_object(button, "clicked", gtk_widget_show, window);
 </programlisting>
 </informalexample>
 
+@o: 
+@s: 
+@f: 
+@d: 
+@Returns: the connection id.
+<!-- # Unused Parameters # -->
 @object: the object which emits the signal.
 @name: the name of the signal.
 @func: the function to callback.
 @slot_object: the object to pass as the first parameter to func.
 (Though it pretends to take an object, you can
 really pass any gpointer as the #slot_object .)
-@Returns: the connection id.
-<!-- # Unused Parameters # -->
-@o: 
-@s: 
-@f: 
-@d: 
 
 
-<!-- ##### FUNCTION gtk_signal_connect_object_after ##### -->
+<!-- ##### MACRO gtk_signal_connect_object_after ##### -->
 <para>
 Attach a signal hook to a signal, passing in an alternate
 object as the first parameter, and guaranteeing 
@@ -547,16 +542,16 @@ that the default handler and all normal
 handlers are called first.
 </para>
 
-@object: the object associated with the signal.
-@name: name of the signal.
-@func: function pointer to attach to the signal.
-@slot_object: the object to pass as the first parameter to #func.
-@Returns: the connection id.
-<!-- # Unused Parameters # -->
 @o: 
 @s: 
 @f: 
 @d: 
+@Returns: the connection id.
+<!-- # Unused Parameters # -->
+@object: the object associated with the signal.
+@name: name of the signal.
+@func: function pointer to attach to the signal.
+@slot_object: the object to pass as the first parameter to #func.
 
 
 <!-- ##### FUNCTION gtk_signal_connect_full ##### -->
@@ -645,95 +640,98 @@ should signal the removal of this signal.
 @name: name of the signal.
 
 
-<!-- ##### FUNCTION gtk_signal_disconnect ##### -->
+<!-- ##### MACRO gtk_signal_disconnect ##### -->
 <para>
 Destroy a user-defined handler connection.
 </para>
 
+<!-- # Unused Parameters # -->
 @object: the object which the handler pertains to.
 @handler_id: the connection id.
 
 
-<!-- ##### FUNCTION gtk_signal_disconnect_by_func ##### -->
+<!-- ##### MACRO gtk_signal_disconnect_by_func ##### -->
 <para>
 Destroy all connections for a particular object, with
 the given function-pointer and user-data.
 </para>
 
-@object: the object which emits the signal.
-@func: the function pointer to search for.
-@data: the user data to search for.
-<!-- # Unused Parameters # -->
 @o: 
 @f: 
 @d: 
+<!-- # Unused Parameters # -->
+@object: the object which emits the signal.
+@func: the function pointer to search for.
+@data: the user data to search for.
 
 
-<!-- ##### FUNCTION gtk_signal_disconnect_by_data ##### -->
+<!-- ##### MACRO gtk_signal_disconnect_by_data ##### -->
 <para>
 Destroy all connections for a particular object, with
 the given user-data.
 </para>
 
-@object: the object which emits the signal.
-@data: the user data to search for.
-<!-- # Unused Parameters # -->
 @o: 
 @d: 
+<!-- # Unused Parameters # -->
+@object: the object which emits the signal.
+@data: the user data to search for.
 
 
-<!-- ##### FUNCTION gtk_signal_handler_block ##### -->
+<!-- ##### MACRO gtk_signal_handler_block ##### -->
 <para>
 Prevent an user-defined handler from being invoked.  All other
 signal processing will go on as normal, but this particular
 handler will ignore it.
 </para>
 
+<!-- # Unused Parameters # -->
 @object: the object which emits the signal to block.
 @handler_id: the connection id.
 
 
-<!-- ##### FUNCTION gtk_signal_handler_block_by_func ##### -->
+<!-- ##### MACRO gtk_signal_handler_block_by_func ##### -->
 <para>
 Prevent a user-defined handler from being invoked, by reference to
 the user-defined handler's function pointer and user data.  (It may result in
 multiple hooks being blocked, if you've called connect multiple times.)
 </para>
 
-@object: the object which emits the signal to block.
-@func: the function pointer of the handler to block.
-@data: the user data of the handler to block.
-<!-- # Unused Parameters # -->
 @o: 
 @f: 
 @d: 
+<!-- # Unused Parameters # -->
+@object: the object which emits the signal to block.
+@func: the function pointer of the handler to block.
+@data: the user data of the handler to block.
 
 
-<!-- ##### FUNCTION gtk_signal_handler_block_by_data ##### -->
+<!-- ##### MACRO gtk_signal_handler_block_by_data ##### -->
 <para>
 Prevent all user-defined handlers with a certain user data from being invoked.
 </para>
 
-@object: the object which emits the signal we want to block.
-@data: the user data of the handlers to block.
-<!-- # Unused Parameters # -->
 @o: 
 @d: 
+<!-- # Unused Parameters # -->
+@object: the object which emits the signal we want to block.
+@data: the user data of the handlers to block.
 
 
-<!-- ##### FUNCTION gtk_signal_handler_unblock ##### -->
+<!-- ##### MACRO gtk_signal_handler_unblock ##### -->
 <para>
 Undo a block, by connection id.  Note that undoing a block doesn't
 necessarily make the hook callable, because if you block a
 hook twice, you must unblock it twice.
 </para>
 
+<!-- # Unused Parameters # -->
 @object: the object which emits the signal we want to unblock.
 @handler_id: the emission handler identifier, as returned by
 gtk_signal_connect(), etc.
 
 
-<!-- ##### FUNCTION gtk_signal_handler_unblock_by_func ##### -->
+<!-- ##### MACRO gtk_signal_handler_unblock_by_func ##### -->
 <para>
 Undo a block, by function pointer and data.
 Note that undoing a block doesn't
@@ -741,29 +739,29 @@ necessarily make the hook callable, because if you block a
 hook twice, you must unblock it twice.
 </para>
 
-@object: the object which emits the signal we want to unblock.
-@func: the function pointer to search for.
-@data: the user data to search for.
-<!-- # Unused Parameters # -->
 @o: 
 @f: 
 @d: 
+<!-- # Unused Parameters # -->
+@object: the object which emits the signal we want to unblock.
+@func: the function pointer to search for.
+@data: the user data to search for.
 
 
-<!-- ##### FUNCTION gtk_signal_handler_unblock_by_data ##### -->
+<!-- ##### MACRO gtk_signal_handler_unblock_by_data ##### -->
 <para>
 Undo block(s), to all signals for a particular object
 with a particular user-data pointer
 </para>
 
-@object: the object which emits the signal we want to unblock.
-@data: the user data to search for.
-<!-- # Unused Parameters # -->
 @o: 
 @d: 
+<!-- # Unused Parameters # -->
+@object: the object which emits the signal we want to unblock.
+@data: the user data to search for.
 
 
-<!-- ##### FUNCTION gtk_signal_handler_pending ##### -->
+<!-- ##### MACRO gtk_signal_handler_pending ##### -->
 <para>
 Returns a connection id corresponding to a given signal id and object.
 </para>
@@ -774,64 +772,64 @@ may opt to not emit the signal if no one is attached anyway,
 thus saving the cost of building the arguments.
 </para>
 
+@i: 
+@s: 
+@b: 
+@Returns: the connection id, if a connection was found.  0 otherwise.
+<!-- # Unused Parameters # -->
 @object: the object to search for the desired user-defined handler.
 @signal_id: the number of the signal to search for.
 @may_be_blocked: whether it is acceptable to return a blocked
 handler.
-@Returns: the connection id, if a connection was found.  0 otherwise.
-<!-- # Unused Parameters # -->
-@i: 
-@s: 
-@b: 
 
 
-<!-- ##### FUNCTION gtk_signal_handler_pending_by_func ##### -->
+<!-- ##### MACRO gtk_signal_handler_pending_by_func ##### -->
 <para>
 Returns a connection id corresponding to a given signal id, object, function
 pointer and user data.
 </para>
 
+@o: 
+@s: 
+@b: 
+@f: 
+@d: 
+@Returns: the connection id, if a handler was found.  0 otherwise.
+<!-- # Unused Parameters # -->
 @object: the object to search for the desired handler.
 @signal_id: the number of the signal to search for.
 @may_be_blocked: whether it is acceptable to return a blocked
 handler.
 @func: the function pointer to search for.
 @data: the user data to search for.
-@Returns: the connection id, if a handler was found.  0 otherwise.
-<!-- # Unused Parameters # -->
-@o: 
-@s: 
-@b: 
-@f: 
-@d: 
 
 
-<!-- ##### FUNCTION gtk_signal_add_emission_hook ##### -->
+<!-- ##### MACRO gtk_signal_add_emission_hook ##### -->
 <para>
 Add an emission hook for a type of signal, for any object.
 </para>
 
-@signal_id: the type of signal to hook for.
-@hook_func: the function to invoke to handle the emission hook.
-@data: the user data passed in to hook_func.
-@Returns: the id (that you may pass as a parameter
-to gtk_signal_remove_emission_hook()).
-<!-- # Unused Parameters # -->
 @i: 
 @h: 
 @d: 
+@Returns: the id (that you may pass as a parameter
+to gtk_signal_remove_emission_hook()).
+<!-- # Unused Parameters # -->
+@signal_id: the type of signal to hook for.
+@hook_func: the function to invoke to handle the emission hook.
+@data: the user data passed in to hook_func.
 
 
-<!-- ##### FUNCTION gtk_signal_remove_emission_hook ##### -->
+<!-- ##### MACRO gtk_signal_remove_emission_hook ##### -->
 <para>
 Delete an emission hook. (see gtk_signal_add_emission_hook())
 </para>
 
-@signal_id: the id of the signal type.
-@hook_id: the id of the emission handler, returned by add_emission_hook().
-<!-- # Unused Parameters # -->
 @i: 
 @h: 
+<!-- # Unused Parameters # -->
+@signal_id: the id of the signal type.
+@hook_id: the id of the emission handler, returned by add_emission_hook().
 
 
 <!-- ##### MACRO gtk_signal_default_marshaller ##### -->
index 6295e2dfa13c7a3966a7f8539ef3509ca5119ff6..16a7e543fe3c07d2d2f92ae550b3b72848fe61cb 100644 (file)
@@ -560,30 +560,33 @@ Create a new, unique type.
 @type_info: must not be null, and @type_info->type_name must also not be null.
 
 
-<!-- ##### FUNCTION gtk_type_name ##### -->
+<!-- ##### MACRO gtk_type_name ##### -->
 <para>
 </para>
 
-@type: a GtkType
 @Returns: a pointer to the name of a type, or NULL if it has none.
+<!-- # Unused Parameters # -->
+@type: a GtkType
 
 
-<!-- ##### FUNCTION gtk_type_from_name ##### -->
+<!-- ##### MACRO gtk_type_from_name ##### -->
 <para>
 Get the internal representation of a type given its name.
 </para>
 
-@name: the name of a gtk type
 @Returns: a GtkType
+<!-- # Unused Parameters # -->
+@name: the name of a gtk type
 
 
-<!-- ##### FUNCTION gtk_type_parent ##### -->
+<!-- ##### MACRO gtk_type_parent ##### -->
 <para>
 
 </para>
 
-@type: a GtkType
 @Returns: the GtkType of the parent
+<!-- # Unused Parameters # -->
+@type: a GtkType
 
 
 <!-- ##### FUNCTION gtk_type_class ##### -->
@@ -608,15 +611,16 @@ has all the proper initializers called.
 @Returns: gpointer to a GtkTypeObject
 
 
-<!-- ##### FUNCTION gtk_type_is_a ##### -->
+<!-- ##### MACRO gtk_type_is_a ##### -->
 <para>
 Look in the type hierarchy to see if @type has @is_a_type among its
 ancestors.  Do so with a simple lookup, not a loop.
 </para>
 
+@Returns: 
+<!-- # Unused Parameters # -->
 @type: GtkType
 @is_a_type: GtkType
-@Returns: 
 
 
 <!-- ##### FUNCTION gtk_type_enum_get_values ##### -->
index b0fb70150fcd503de8b6ed2d0a24a4aec3938ca2..d86f82e1674bc994c8b9c29bc3005603751cede3 100644 (file)
@@ -1295,14 +1295,6 @@ GtkWidget
 @event: 
 @Returns: 
 
-<!-- ##### SIGNAL GtkWidget::debug-msg ##### -->
-<para>
-
-</para>
-
-@widget: the object which received the signal.
-@message: 
-
 <!-- ##### SIGNAL GtkWidget::delete-event ##### -->
 <para>
 
index 4bbf20681202a83ca6136f67850a5080f27cdf56..4946596121b7854835da29ae9a902b2c702f1109 100644 (file)
@@ -616,6 +616,10 @@ gdk_drawable_get_image (GdkDrawable *drawable,
   g_return_val_if_fail (x >= 0, NULL);
   g_return_val_if_fail (y >= 0, NULL);
 
+  /* FIXME? Note race condition since we get the size then
+   * get the image, and the size may have changed.
+   */
+  
   if (width < 0 || height < 0)
     gdk_drawable_get_size (drawable,
                            width < 0 ? &width : NULL,
index 5ee3b86d004f7be855c0cc0fde915691a01269e8..45fe3d34539b3d342ad1303f7f98b4ae6eebd7e3 100644 (file)
@@ -68,12 +68,16 @@ gtk_button_box_class_init (GtkButtonBoxClass *class)
   GtkWidgetClass *widget_class;
 
   widget_class = (GtkWidgetClass*) class;
+
+  /* FIXME we need to override the "spacing" property on GtkBox once
+   * libgobject allows that.
+   */
 }
 
 static void
 gtk_button_box_init (GtkButtonBox *button_box)
 {
-  button_box->spacing = GTK_BUTTONBOX_DEFAULT;
+  GTK_BOX (button_box)->spacing = 0;
   button_box->child_min_width = GTK_BUTTONBOX_DEFAULT;
   button_box->child_min_height = GTK_BUTTONBOX_DEFAULT;
   button_box->child_ipad_x = GTK_BUTTONBOX_DEFAULT;
@@ -81,43 +85,8 @@ gtk_button_box_init (GtkButtonBox *button_box)
   button_box->layout_style = GTK_BUTTONBOX_DEFAULT_STYLE;
 }
 
-
-/* set default values for child size and child internal padding */
-/* default spacing is in defined in subclasses */
-
-void gtk_button_box_set_child_size_default (gint width, gint height)
-{
-  default_child_min_width = width;
-  default_child_min_height = height;
-}
-
-void gtk_button_box_set_child_ipadding_default (gint ipad_x, gint ipad_y)
-{
-  default_child_ipad_x = ipad_x;
-  default_child_ipad_y = ipad_y;
-}
-
-/* get default values for child size and child internal padding */
-
-void gtk_button_box_get_child_size_default (gint *width, gint *height)
-{
-  *width = default_child_min_width;
-  *height = default_child_min_height;
-}
-
-void gtk_button_box_get_child_ipadding_default (gint *ipad_x, gint *ipad_y)
-{
-  *ipad_x = default_child_ipad_x;
-  *ipad_y = default_child_ipad_y;
-}
-
 /* set per widget values for spacing, child size and child internal padding */
 
-void gtk_button_box_set_spacing (GtkButtonBox *widget, gint spacing)
-{
-  widget->spacing = spacing;
-}
-
 void gtk_button_box_set_child_size (GtkButtonBox *widget, gint width, gint height)
 {
   widget->child_min_width = width;
@@ -143,11 +112,6 @@ void gtk_button_box_set_layout (GtkButtonBox *widget,
 
 /* get per widget values for spacing, child size and child internal padding */
 
-gint gtk_button_box_get_spacing (GtkButtonBox *widget)
-{
-  return widget->spacing;
-}
-
 void gtk_button_box_get_child_size (GtkButtonBox *widget,
                                     gint *width, gint *height)
 {
@@ -173,10 +137,10 @@ GtkButtonBoxStyle gtk_button_box_get_layout (GtkButtonBox *widget)
    to match minimum size and internal padding.
    Returns the size each single child should have. */
 void
-gtk_button_box_child_requisition (GtkWidget *widget,
-                                 int *nvis_children,
-                                 int *width,
-                                 int *height)
+_gtk_button_box_child_requisition (GtkWidget *widget,
+                                   int *nvis_children,
+                                   int *width,
+                                   int *height)
 {
   GtkButtonBox *bbox;
   GtkBoxChild *child;
@@ -202,8 +166,10 @@ gtk_button_box_child_requisition (GtkWidget *widget,
 
   bbox = GTK_BUTTON_BOX (widget);
 
-  gtk_button_box_get_child_size_default (&width_default, &height_default);
-  gtk_button_box_get_child_ipadding_default (&ipad_x_default, &ipad_y_default);
+  width_default = default_child_min_width;
+  height_default = default_child_min_height;
+  ipad_x_default = default_child_ipad_x;
+  ipad_y_default = default_child_ipad_y;
   
   child_min_width = bbox->child_min_width   != GTK_BUTTONBOX_DEFAULT
          ? bbox->child_min_width : width_default;
index ac2fd9f6a55bef95d46967ddec791d850c8f1c48..5ac286e799a2815ae0b55c43e704c1c77c76a1e8 100644 (file)
@@ -51,7 +51,6 @@ typedef struct _GtkButtonBoxClass  GtkButtonBoxClass;
 struct _GtkButtonBox
 {
   GtkBox box;
-  gint spacing;
   gint child_min_width;
   gint child_min_height;
   gint child_ipad_x;
@@ -67,31 +66,27 @@ struct _GtkButtonBoxClass
 
 GtkType gtk_button_box_get_type (void) G_GNUC_CONST;
 
-void gtk_button_box_get_child_size_default (gint *min_width, gint *min_height);
-void gtk_button_box_get_child_ipadding_default (gint *ipad_x, gint *ipad_y);
+GtkButtonBoxStyle gtk_button_box_get_layout  (GtkButtonBox      *widget);
+void              gtk_button_box_set_layout  (GtkButtonBox      *widget,
+                                              GtkButtonBoxStyle  layout_style);
 
-void gtk_button_box_set_child_size_default (gint min_width, gint min_height);
-void gtk_button_box_set_child_ipadding_default (gint ipad_x, gint ipad_y);
+#ifndef GTK_DISABLE_DEPRECATED
+#define gtk_button_box_set_spacing gtk_box_set_spacing
+#define gtk_button_box_get_spacing gtk_box_get_spacing
 
-gint gtk_button_box_get_spacing (GtkButtonBox *widget);
-GtkButtonBoxStyle gtk_button_box_get_layout (GtkButtonBox *widget);
-void gtk_button_box_get_child_size (GtkButtonBox *widget,
-                                   gint *min_width, gint *min_height);
-void gtk_button_box_get_child_ipadding (GtkButtonBox *widget, gint *ipad_x, gint *ipad_y);
-
-void gtk_button_box_set_spacing (GtkButtonBox *widget, gint spacing);
-void gtk_button_box_set_layout (GtkButtonBox *widget, 
-                               GtkButtonBoxStyle layout_style);
 void gtk_button_box_set_child_size (GtkButtonBox *widget,
                                    gint min_width, gint min_height);
 void gtk_button_box_set_child_ipadding (GtkButtonBox *widget, gint ipad_x, gint ipad_y);
-
+void gtk_button_box_get_child_size (GtkButtonBox *widget,
+                                   gint *min_width, gint *min_height);
+void gtk_button_box_get_child_ipadding (GtkButtonBox *widget, gint *ipad_x, gint *ipad_y);
+#endif
 
 /* Internal method - do not use. */
-void gtk_button_box_child_requisition (GtkWidget *widget,
-                                      int *nvis_children,
-                                      int *width,
-                                      int *height);
+void _gtk_button_box_child_requisition (GtkWidget *widget,
+                                        int *nvis_children,
+                                        int *width,
+                                        int *height);
 
 #ifdef __cplusplus
 }
index 96fad211c09ec78f568b21001a9f74589adbd3e1..e61d7a8a810e54318f8db7949497c045d1bb8b96 100644 (file)
@@ -438,6 +438,22 @@ gtk_box_set_spacing (GtkBox *box,
     }
 }
 
+/**
+ * gtk_box_get_spacing:
+ * @box: a #GtkBox
+ * 
+ * Gets the value set by gtk_box_set_spacing().
+ * 
+ * Return value: spacing between children
+ **/
+gint
+gtk_box_get_spacing (GtkBox *box)
+{
+  g_return_if_fail (GTK_IS_BOX (box));
+
+  return box->spacing;
+}
+
 void
 gtk_box_reorder_child (GtkBox                   *box,
                       GtkWidget                *child,
index f079fb8fde0b17c6ae0ac21f2a7d35458e21ec7f..b6de573f5b0817c04d35f6b8f63f998dca12f6ee 100644 (file)
@@ -92,6 +92,7 @@ void     gtk_box_set_homogeneous     (GtkBox       *box,
                                        gboolean      homogeneous);
 void      gtk_box_set_spacing         (GtkBox       *box,
                                        gint          spacing);
+gint       gtk_box_get_spacing         (GtkBox       *box);
 void      gtk_box_reorder_child       (GtkBox       *box,
                                        GtkWidget    *child,
                                        gint          position);
index 1742f567804839d7cebe682a3c44d4adc8399564..ea4755875027790400fbefaa35965dede443711d 100644 (file)
@@ -129,7 +129,7 @@ gtk_dialog_init (GtkDialog *dialog)
   gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog->action_area),
                              GTK_BUTTONBOX_END);
 
-  gtk_button_box_set_spacing (GTK_BUTTON_BOX (dialog->action_area), 5);
+  gtk_box_set_spacing (GTK_BOX (dialog->action_area), 5);
   
   gtk_container_set_border_width (GTK_CONTAINER (dialog->action_area), 5);
   gtk_box_pack_end (GTK_BOX (dialog->vbox), dialog->action_area,
index bb75cd24eb689632cb5b041826618c5adac56541..b489b0744d98df03b58b2595e1b18a73e8ff3a00 100644 (file)
@@ -356,7 +356,6 @@ typedef enum
 typedef enum
 {
   GTK_WINDOW_TOPLEVEL,
-  GTK_WINDOW_DIALOG,
   GTK_WINDOW_POPUP
 } GtkWindowType;
 
index 538f7996362df36ee483723fc2fd25a8bfe4beb3..05aea054d187baac3fcc50f3aa904e7ffb668fd0 100644 (file)
@@ -499,7 +499,7 @@ gtk_file_selection_init (GtkFileSelection *filesel)
   /* The horizontal box containing create, rename etc. buttons */
   filesel->button_area = gtk_hbutton_box_new ();
   gtk_button_box_set_layout (GTK_BUTTON_BOX (filesel->button_area), GTK_BUTTONBOX_START);
-  gtk_button_box_set_spacing (GTK_BUTTON_BOX (filesel->button_area), 0);
+  gtk_box_set_spacing (GTK_BOX (filesel->button_area), 0);
   gtk_box_pack_start (GTK_BOX (filesel->main_vbox), filesel->button_area, 
                      FALSE, FALSE, 0);
   gtk_widget_show (filesel->button_area);
index e2bbdcf329eea97337c95c99ce8439be0c53e6ae..af95fe73ef718ae2125d60001d006713ddaa7102 100644 (file)
@@ -144,15 +144,14 @@ gtk_hbutton_box_size_request (GtkWidget      *widget,
   box = GTK_BOX (widget);
   bbox = GTK_BUTTON_BOX (widget);
 
-  spacing = bbox->spacing != GTK_BUTTONBOX_DEFAULT
-         ? bbox->spacing : default_spacing;
+  spacing = box->spacing;
   layout = bbox->layout_style != GTK_BUTTONBOX_DEFAULT_STYLE
          ? bbox->layout_style : default_layout_style;
   
-  gtk_button_box_child_requisition (widget,
-                                   &nvis_children,
-                                   &child_width,
-                                   &child_height);
+  _gtk_button_box_child_requisition (widget,
+                                     &nvis_children,
+                                     &child_width,
+                                     &child_height);
 
   if (nvis_children == 0)
   {
@@ -190,6 +189,7 @@ static void
 gtk_hbutton_box_size_allocate (GtkWidget     *widget,
                               GtkAllocation *allocation)
 {
+  GtkBox *base_box;
   GtkButtonBox *box;
   GtkHButtonBox *hbox;
   GtkBoxChild *child;
@@ -210,16 +210,16 @@ gtk_hbutton_box_size_allocate (GtkWidget     *widget,
   g_return_if_fail (GTK_IS_HBUTTON_BOX (widget));
   g_return_if_fail (allocation != NULL);
 
+  base_box = GTK_BOX (widget);
   box = GTK_BUTTON_BOX (widget);
   hbox = GTK_HBUTTON_BOX (widget);
-  spacing = box->spacing != GTK_BUTTONBOX_DEFAULT
-         ? box->spacing : default_spacing;
+  spacing = base_box->spacing;
   layout = box->layout_style != GTK_BUTTONBOX_DEFAULT_STYLE
          ? box->layout_style : default_layout_style;
-  gtk_button_box_child_requisition (widget,
-                                   &nvis_children,
-                                   &child_width,
-                                   &child_height);
+  _gtk_button_box_child_requisition (widget,
+                                     &nvis_children,
+                                     &child_width,
+                                     &child_height);
   widget->allocation = *allocation;
   width = allocation->width - GTK_CONTAINER (box)->border_width*2;
   switch (layout)
index c918b79266b3606bbcec285e09368bddbd119744..41e62e26fd539f7366913b0b6a49488d80340a25 100644 (file)
@@ -63,12 +63,13 @@ GtkWidget* gtk_hbutton_box_new      (void);
 
 /* buttons can be added by gtk_container_add() */
 
+#ifndef GTK_DISABLE_DEPRECATED
 gint gtk_hbutton_box_get_spacing_default (void);
 GtkButtonBoxStyle gtk_hbutton_box_get_layout_default (void);
 
 void gtk_hbutton_box_set_spacing_default (gint spacing);
 void gtk_hbutton_box_set_layout_default (GtkButtonBoxStyle layout);
-
+#endif
 
 #ifdef __cplusplus
 }
index 07b5d5038c5357d79cc5835fe3500f4714b668fb..4217869f8a76a7fc2ac1a52f1c84de873ca709f6 100644 (file)
@@ -33,6 +33,9 @@
 #include <ctype.h>
 #include <string.h>
 
+/* FIXME use a better icon for this */
+#define MISSING_IMAGE_INLINE dialog_error
+
 static gpointer parent_class = NULL;
 
 static void gtk_icon_factory_init       (GtkIconFactory      *icon_factory);
@@ -384,6 +387,8 @@ get_default_icons (GtkIconFactory *factory)
   add_unsized (factory, stock_new, GTK_STOCK_NEW);
   add_unsized (factory, stock_open, GTK_STOCK_OPEN);
   add_unsized (factory, stock_save, GTK_STOCK_SAVE);
+
+  add_unsized (factory, MISSING_IMAGE_INLINE, GTK_STOCK_MISSING_IMAGE);
 }
 
 /* Sizes */
@@ -878,6 +883,20 @@ find_and_prep_icon_source (GtkIconSet       *icon_set,
   return source;
 }
 
+static GdkPixbuf*
+get_fallback_image (void)
+{
+  /* This icon can be used for any direction/state/size */
+  static GdkPixbuf *pixbuf = NULL;
+
+  if (pixbuf == NULL)
+    pixbuf = gdk_pixbuf_new_from_inline (MISSING_IMAGE_INLINE, FALSE, -1, NULL);
+  else
+    g_object_ref (G_OBJECT (pixbuf));
+
+  return pixbuf;
+}
+
 /**
  * gtk_icon_set_render_icon:
  * @icon_set: a #GtkIconSet
@@ -908,17 +927,11 @@ gtk_icon_set_render_icon (GtkIconSet        *icon_set,
   GdkPixbuf *icon;
   GtkIconSource *source;
   
-  /* FIXME conceivably, everywhere this function
-   * returns NULL, we should return some default
-   * dummy icon like a question mark or the image icon
-   * from netscape
-   */
-  
   g_return_val_if_fail (icon_set != NULL, NULL);
   g_return_val_if_fail (GTK_IS_STYLE (style), NULL);
 
   if (icon_set->sources == NULL)
-    return NULL;
+    return get_fallback_image ();
   
   icon = find_in_cache (icon_set, style, direction,
                         state, size);
@@ -933,7 +946,7 @@ gtk_icon_set_render_icon (GtkIconSet        *icon_set,
   source = find_and_prep_icon_source (icon_set, direction, state, size);
 
   if (source == NULL)
-    return NULL;
+    return get_fallback_image ();
 
   g_assert (source->pixbuf != NULL);
   
@@ -948,7 +961,7 @@ gtk_icon_set_render_icon (GtkIconSet        *icon_set,
   if (icon == NULL)
     {
       g_warning ("Theme engine failed to render icon");
-      return NULL;
+      return get_fallback_image ();
     }
   
   add_to_cache (icon_set, style, direction, state, size, icon);
index d82effbb77d9daf2e9ecf2280910e715a9138662..a28109419d3f541145ba8226a8954aea9b578502 100644 (file)
@@ -27,6 +27,7 @@
 #include "gtkcontainer.h"
 #include "gtkimage.h"
 #include "gtkiconfactory.h"
+#include "gtkstock.h"
 
 static void gtk_image_class_init   (GtkImageClass  *klass);
 static void gtk_image_init         (GtkImage       *image);
@@ -388,7 +389,12 @@ gtk_image_set_from_file   (GtkImage    *image,
   pixbuf = gdk_pixbuf_new_from_file (filename, NULL);
 
   if (pixbuf == NULL)
-    return;
+    {
+      gtk_image_set_from_stock (image,
+                                GTK_STOCK_MISSING_IMAGE,
+                                GTK_ICON_SIZE_BUTTON);
+      return;
+    }
 
   gtk_image_set_from_pixbuf (image, pixbuf);
 
index 738f263427b267495599fd6891088cea3048efbb..fad59e57096c6133649b2511b71f934a6955cb96 100644 (file)
@@ -332,6 +332,7 @@ gtk_label_get_property (GObject     *object,
     case PROP_ACCEL_KEYVAL:
       g_value_set_uint (value, label->accel_keyval);
       break;
+
     default:
       G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
       break;
@@ -1673,3 +1674,27 @@ gtk_label_select_region  (GtkLabel *label,
     }
 }
 
+/**
+ * gtk_label_get_layout_offsets:
+ * @label: a #GtkLabel
+ * @x: location to store X offset of layout, or %NULL
+ * @y: location to store Y offset of layout, or %NULL
+ *
+ * Returns the coordinates where the label will draw the #PangoLayout
+ * representing the text in the label; useful to convert mouse events
+ * into coordinates inside the #PangoLayout, e.g. to take some action
+ * if some part of the label is clicked. Of course you will need to
+ * create a #GtkEventBox to receive the events, and pack the label
+ * inside it, since labels are a #GTK_NO_WINDOW widget.
+ * 
+ **/
+void
+gtk_label_get_layout_offsets (GtkLabel *label,
+                              gint     *x,
+                              gint     *y)
+{
+  g_return_if_fail (GTK_IS_LABEL (label));
+  
+  get_layout_location (label, x, y);
+}
+
index 7a8caa4165799a829e631400ce72e76843535246..d9bca174051360e542314d3498fc71cceb035890 100644 (file)
@@ -112,6 +112,10 @@ void     gtk_label_select_region  (GtkLabel *label,
                                    gint      start_offset,
                                    gint      end_offset);
 
+void     gtk_label_get_layout_offsets (GtkLabel *label,
+                                       gint     *x,
+                                       gint     *y);
+
 #ifndef        GTK_DISABLE_COMPAT_H
 #  define gtk_label_set                                gtk_label_set_text
 #endif /* GTK_DISABLE_COMPAT_H */
index d40cb95602794d26f8c3b08a6840812ea2dfaa08..a613446168585dba2ea1408f4a856f8820f7f07c 100644 (file)
@@ -62,6 +62,8 @@ void          gtk_stock_item_free (GtkStockItem       *item);
 
 
 /* Stock IDs */
+#define GTK_STOCK_MISSING_IMAGE    "gtk-missing-image"
+
 #define GTK_STOCK_DIALOG_INFO      "gtk-dialog-info"
 #define GTK_STOCK_DIALOG_WARNING   "gtk-dialog-warning"
 #define GTK_STOCK_DIALOG_ERROR     "gtk-dialog-error"
index b199d1d448bc94a14834a22c5712655ae80757bb..d427d2917a23367b4c16f9fbc0165aaa9dd99c75 100644 (file)
@@ -146,15 +146,14 @@ gtk_vbutton_box_size_request (GtkWidget      *widget,
   box = GTK_BOX (widget);
   bbox = GTK_BUTTON_BOX (widget);
 
-  spacing = bbox->spacing != GTK_BUTTONBOX_DEFAULT
-         ? bbox->spacing : default_spacing;
+  spacing = box->spacing;
   layout = bbox->layout_style != GTK_BUTTONBOX_DEFAULT_STYLE
          ? bbox->layout_style : default_layout_style;
   
-  gtk_button_box_child_requisition (widget,
-                                   &nvis_children,
-                                   &child_width,
-                                   &child_height);
+  _gtk_button_box_child_requisition (widget,
+                                     &nvis_children,
+                                     &child_width,
+                                     &child_height);
 
   if (nvis_children == 0)
     {
@@ -193,6 +192,7 @@ static void
 gtk_vbutton_box_size_allocate (GtkWidget     *widget,
                               GtkAllocation *allocation)
 {
+  GtkBox *base_box;
   GtkButtonBox *box;
   GtkVButtonBox *hbox;
   GtkBoxChild *child;
@@ -213,16 +213,16 @@ gtk_vbutton_box_size_allocate (GtkWidget     *widget,
   g_return_if_fail (GTK_IS_VBUTTON_BOX (widget));
   g_return_if_fail (allocation != NULL);
 
+  base_box = GTK_BOX (widget);
   box = GTK_BUTTON_BOX (widget);
   hbox = GTK_VBUTTON_BOX (widget);
-  spacing = box->spacing != GTK_BUTTONBOX_DEFAULT
-         ? box->spacing : default_spacing;
+  spacing = base_box->spacing;
   layout = box->layout_style != GTK_BUTTONBOX_DEFAULT_STYLE
          ? box->layout_style : default_layout_style;
-  gtk_button_box_child_requisition (widget,
-                                   &nvis_children,
-                                   &child_width,
-                                   &child_height);
+  _gtk_button_box_child_requisition (widget,
+                                     &nvis_children,
+                                     &child_width,
+                                     &child_height);
   widget->allocation = *allocation;
   height = allocation->height - GTK_CONTAINER (box)->border_width*2;
   switch (layout)
index f4b3fbdc8f130f228f1b374f2b63d469229d5d41..b5dac7dd8f7efd788e34af17271fdc63911987ec 100644 (file)
@@ -63,11 +63,13 @@ GtkWidget *gtk_vbutton_box_new      (void);
 
 /* buttons can be added by gtk_container_add() */
 
+#ifndef GTK_DISABLE_DEPRECATED
 gint gtk_vbutton_box_get_spacing_default (void);
 void gtk_vbutton_box_set_spacing_default (gint spacing);
 
 GtkButtonBoxStyle gtk_vbutton_box_get_layout_default (void);
 void gtk_vbutton_box_set_layout_default (GtkButtonBoxStyle layout);
+#endif
 
 
 #ifdef __cplusplus
index 710a5e32adebf105089e804707cee39b7b832fba..494c091fc823bcbd43023bf4a838f7b98b63e0ce 100644 (file)
@@ -315,7 +315,8 @@ gtk_window_init (GtkWindow *window)
   window->frame_top = 0;
   window->frame_bottom = 0;
   window->type_hint = GDK_WINDOW_TYPE_HINT_NORMAL;
-    
+  window->decorated = TRUE;
+  
   gtk_widget_ref (GTK_WIDGET (window));
   gtk_object_sink (GTK_OBJECT (window));
   window->has_user_ref_count = TRUE;
@@ -442,9 +443,13 @@ gtk_window_get_arg (GtkObject  *object,
  * contain other widgets. Nearly always, the type of the window should
  * be #GTK_WINDOW_TOPLEVEL. If you're implementing something like a
  * popup menu from scratch (which is a bad idea, just use #GtkMenu),
- * you might use #GTK_WINDOW_TOPLEVEL. #GTK_WINDOW_DIALOG is not
- * useful; dialogs should be of type #GTK_WINDOW_TOPLEVEL.  (Probably
- * you want to use the #GtkDialog widget for dialogs anyway).
+ * you might use #GTK_WINDOW_POPUP. #GTK_WINDOW_POPUP is not for
+ * dialogs, though in some other toolkits dialogs are called "popups."
+ * In GTK+, #GTK_WINDOW_POPUP means a pop-up menu or pop-up tooltip.
+ * Popup windows are not controlled by the window manager.
+ *
+ * If you simply want an undecorated window (no window borders), use
+ * gtk_window_set_decorated(), don't use #GTK_WINDOW_POPUP.
  * 
  * Return value: a new #GtkWindow.
  **/
@@ -500,13 +505,14 @@ gtk_window_set_title (GtkWindow   *window,
  * @wmclass_name: window name hint
  * @wmclass_class: window class hint
  *
- * This function sets the X Window System "class" and "name" hints for a window.
- * According to the ICCCM, you should always set these to the same value for
- * all windows in an application, and GTK sets them to that value by default,
- * so calling this function is sort of pointless. However, you may want to
- * call gtk_window_set_role() on each window in your application, for the
- * benefit of the session manager. Setting the role allows the window manager
- * to restore window positions when loading a saved session.
+ * Don't use this function. It sets the X Window System "class" and
+ * "name" hints for a window.  According to the ICCCM, you should
+ * always set these to the same value for all windows in an
+ * application, and GTK sets them to that value by default, so calling
+ * this function is sort of pointless. However, you may want to call
+ * gtk_window_set_role() on each window in your application, for the
+ * benefit of the session manager. Setting the role allows the window
+ * manager to restore window positions when loading a saved session.
  * 
  **/
 void
@@ -524,7 +530,39 @@ gtk_window_set_wmclass (GtkWindow *window,
   window->wmclass_class = g_strdup (wmclass_class);
 
   if (GTK_WIDGET_REALIZED (window))
-    g_warning ("shouldn't set wmclass after window is realized!\n");
+    g_warning ("gtk_window_set_wmclass: shouldn't set wmclass after window is realized!\n");
+}
+
+/**
+ * gtk_window_set_role:
+ * @window: a #GtkWindow
+ * @role: unique identifier for the window to be used when restoring a session
+ *
+ * In combination with the window title, the window role allows a
+ * window manager to identify "the same" window when an application is
+ * restarted. So for example you might set the "toolbox" role on your
+ * app's toolbox window, so that when the user restarts their session,
+ * the window manager can put the toolbox back in the same place.
+ *
+ * If a window already has a unique title, you don't need to set the
+ * role, since the WM can use the title to identify the window when
+ * restoring the session.
+ * 
+ **/
+void
+gtk_window_set_role (GtkWindow   *window,
+                     const gchar *role)
+{
+  g_return_if_fail (GTK_IS_WINDOW (window));
+
+  if (role == window->wm_role)
+    return;
+  
+  g_free (window->wm_role);
+  window->wm_role = g_strdup (role);
+  
+  if (GTK_WIDGET_REALIZED (window))
+    g_warning ("gtk_window_set_role(): shouldn't set role after window is realized!\n");
 }
 
 /**
@@ -927,7 +965,7 @@ gtk_window_unset_transient_for  (GtkWindow *window)
  * e.g. keep the dialog on top of the main window, or center the
  * dialog over the main window. gtk_dialog_new_with_buttons() and
  * other convenience functions in GTK+ will sometimes call
- * gtk_window_set_transient_for() on yoru behalf.
+ * gtk_window_set_transient_for() on your behalf.
  * 
  **/
 void       
@@ -1111,6 +1149,40 @@ gtk_window_set_geometry_hints (GtkWindow       *window,
   gtk_widget_queue_resize (GTK_WIDGET (window));
 }
 
+/**
+ * gtk_window_set_decorated:
+ * @window: a #GtkWindow
+ * @setting: %TRUE to decorate the window
+ *
+ * By default, windows are decorated with a title bar, resize
+ * controls, etc.  Some window managers allow GTK+ to disable these
+ * decorations, creating a borderless window. If you set the decorated
+ * property to %FALSE using this function, GTK+ will do its best to
+ * convince the window manager not to decorate the window.
+ * 
+ **/
+void
+gtk_window_set_decorated (GtkWindow *window,
+                          gboolean   setting)
+{
+  g_return_if_fail (GTK_IS_WINDOW (window));
+
+  setting = setting != FALSE;
+
+  if (setting == window->decorated)
+    return;
+
+  if (GTK_WIDGET (window)->window)
+    {
+      if (window->decorated)
+        gdk_window_set_decorations (GTK_WIDGET (window)->window,
+                                    GDK_DECOR_ALL);
+      else
+        gdk_window_set_decorations (GTK_WIDGET (window)->window,
+                                    0);
+    }
+}
+
 /**
  * gtk_window_set_default_size:
  * @window: a #GtkWindow
@@ -1128,6 +1200,11 @@ gtk_window_set_geometry_hints (GtkWindow       *window,
  *
  * For more control over a window's initial size and how resizing works,
  * investigate gtk_window_set_geometry_hints().
+ *
+ * A useful feature: if you set the "geometry widget" via
+ * gtk_window_set_geometry_hints(), the default size specified by
+ * gtk_window_set_default_size() will be the default size of that
+ * widget, not of the entire window.
  * 
  **/
 void       
@@ -1376,12 +1453,12 @@ gtk_window_realize (GtkWidget *widget)
     case GTK_WINDOW_TOPLEVEL:
       attributes.window_type = GDK_WINDOW_TOPLEVEL;
       break;
-    case GTK_WINDOW_DIALOG:
-      attributes.window_type = GDK_WINDOW_DIALOG;
-      break;
     case GTK_WINDOW_POPUP:
       attributes.window_type = GDK_WINDOW_TEMP;
       break;
+    default:
+      g_warning (G_STRLOC": Unknown window type %d!", window->type);
+      break;
     }
    
   attributes.title = window->title;
@@ -1454,6 +1531,12 @@ gtk_window_realize (GtkWidget *widget)
     gdk_window_set_transient_for (widget->window,
                                  GTK_WIDGET (window->transient_parent)->window);
 
+  if (window->wm_role)
+    gdk_window_set_role (widget->window, window->wm_role);
+  
+  if (!window->decorated)
+    gdk_window_set_decorations (widget->window, 0);
+
   gdk_window_set_type_hint (widget->window, window->type_hint);
 
   /* transient_for must be set to allow the modal hint */
index 92d97a3e4ba582944f6715ece74cd2f635125613..d0c7ece481c314b44d0ea538f7a11a59fd8f7472 100644 (file)
@@ -57,6 +57,7 @@ struct _GtkWindow
   gchar *title;
   gchar *wmclass_name;
   gchar *wmclass_class;
+  gchar *wm_role;
   GtkWindowType type;
 
   GdkWindow *frame;
@@ -90,8 +91,10 @@ struct _GtkWindow
   guint stick_initially : 1;
   guint maximize_initially : 1;
 
+  guint decorated : 1;
+  
   GdkWindowTypeHint type_hint : 2;
-
+  
   guint frame_left;
   guint frame_top;
   guint frame_right;
@@ -116,6 +119,8 @@ void       gtk_window_set_title                (GtkWindow           *window,
 void       gtk_window_set_wmclass              (GtkWindow           *window,
                                                const gchar         *wmclass_name,
                                                const gchar         *wmclass_class);
+void       gtk_window_set_role                 (GtkWindow           *window,
+                                                const gchar         *role);
 void       gtk_window_set_policy               (GtkWindow           *window,
                                                gint                 allow_shrink,
                                                gint                 allow_grow,
@@ -139,6 +144,11 @@ void       gtk_window_set_geometry_hints       (GtkWindow           *window,
                                                GtkWidget           *geometry_widget,
                                                GdkGeometry         *geometry,
                                                GdkWindowHints       geom_mask);
+void       gtk_window_set_decorations_hint     (GtkWindow          *window,
+                                                GdkWMDecoration      decorations);
+void       gtk_window_set_functions_hint       (GtkWindow          *window,
+                                                GdkWMFunction       functions);
+
 /* The following differs from gtk_widget_set_usize, in that
  * gtk_widget_set_usize() overrides the requisition, so sets a minimum
  * size, while this only sets the size requested from the WM.
index 0eaa0c9602978d7e49fc41a74873d6ccb2eef3a2..d870890c80c8b559c98e90b80686feec744b6b25 100644 (file)
@@ -296,7 +296,7 @@ void create_calendar()
   hbbox = gtk_hbutton_box_new();
   gtk_box_pack_start(GTK_BOX(hbox), hbbox, FALSE, FALSE, DEF_PAD);
   gtk_button_box_set_layout(GTK_BUTTON_BOX(hbbox), GTK_BUTTONBOX_SPREAD);
-  gtk_button_box_set_spacing(GTK_BUTTON_BOX(hbbox), 5);
+  gtk_box_set_spacing(GTK_BOX(hbbox), 5);
 
   /* Calendar widget */
   frame = gtk_frame_new("Calendar");
index 8b06fe0b3844c80e60f167205f6c2da0b88257ee..c4cada989a6d17caa2c9b0f2038501a5fb0df0a8 100644 (file)
@@ -508,7 +508,7 @@ create_bbox (gint  horizontal,
   gtk_container_add (GTK_CONTAINER (frame), bbox);
 
   gtk_button_box_set_layout (GTK_BUTTON_BOX (bbox), layout);
-  gtk_button_box_set_spacing (GTK_BUTTON_BOX (bbox), spacing);
+  gtk_box_set_spacing (GTK_BOX (bbox), spacing);
   gtk_button_box_set_child_size (GTK_BUTTON_BOX (bbox), child_w, child_h);
   
   button = gtk_button_new_with_label ("OK");
@@ -7228,7 +7228,7 @@ dnd_drop (GtkWidget *button, GdkEvent *event)
   if (window)
     return;
 
-  window = gtk_window_new(GTK_WINDOW_DIALOG);
+  window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
   gtk_container_set_border_width (GTK_CONTAINER(window), 10);
 
   gtk_signal_connect (GTK_OBJECT (window), "destroy",
@@ -7606,6 +7606,8 @@ create_shapes (void)
       with_region = shape_create_icon ("3DRings.xpm",
                                        460, 270, 25,25, GTK_WINDOW_TOPLEVEL);
 
+      gtk_window_set_decorated (GTK_WINDOW (with_region), FALSE);
+      
       gtk_signal_connect (GTK_OBJECT (with_region), "destroy",
                          GTK_SIGNAL_FUNC(gtk_widget_destroyed),
                          &with_region);
index 0eaa0c9602978d7e49fc41a74873d6ccb2eef3a2..d870890c80c8b559c98e90b80686feec744b6b25 100644 (file)
@@ -296,7 +296,7 @@ void create_calendar()
   hbbox = gtk_hbutton_box_new();
   gtk_box_pack_start(GTK_BOX(hbox), hbbox, FALSE, FALSE, DEF_PAD);
   gtk_button_box_set_layout(GTK_BUTTON_BOX(hbbox), GTK_BUTTONBOX_SPREAD);
-  gtk_button_box_set_spacing(GTK_BUTTON_BOX(hbbox), 5);
+  gtk_box_set_spacing(GTK_BOX(hbbox), 5);
 
   /* Calendar widget */
   frame = gtk_frame_new("Calendar");
index 8b06fe0b3844c80e60f167205f6c2da0b88257ee..c4cada989a6d17caa2c9b0f2038501a5fb0df0a8 100644 (file)
@@ -508,7 +508,7 @@ create_bbox (gint  horizontal,
   gtk_container_add (GTK_CONTAINER (frame), bbox);
 
   gtk_button_box_set_layout (GTK_BUTTON_BOX (bbox), layout);
-  gtk_button_box_set_spacing (GTK_BUTTON_BOX (bbox), spacing);
+  gtk_box_set_spacing (GTK_BOX (bbox), spacing);
   gtk_button_box_set_child_size (GTK_BUTTON_BOX (bbox), child_w, child_h);
   
   button = gtk_button_new_with_label ("OK");
@@ -7228,7 +7228,7 @@ dnd_drop (GtkWidget *button, GdkEvent *event)
   if (window)
     return;
 
-  window = gtk_window_new(GTK_WINDOW_DIALOG);
+  window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
   gtk_container_set_border_width (GTK_CONTAINER(window), 10);
 
   gtk_signal_connect (GTK_OBJECT (window), "destroy",
@@ -7606,6 +7606,8 @@ create_shapes (void)
       with_region = shape_create_icon ("3DRings.xpm",
                                        460, 270, 25,25, GTK_WINDOW_TOPLEVEL);
 
+      gtk_window_set_decorated (GTK_WINDOW (with_region), FALSE);
+      
       gtk_signal_connect (GTK_OBJECT (with_region), "destroy",
                          GTK_SIGNAL_FUNC(gtk_widget_destroyed),
                          &with_region);