forked from AuroraMiddleware/gtk
Use HIG-compliant spacings. This sucks a lot.
2004-02-17 Federico Mena Quintero <federico@ximian.com> * gtk/gtkfilechooserdialog.c (gtk_file_chooser_dialog_style_set): Use HIG-compliant spacings. This sucks a lot.
This commit is contained in:
parent
c10e045cef
commit
cf4a6abe0e
@ -1,3 +1,9 @@
|
|||||||
|
2004-02-17 Federico Mena Quintero <federico@ximian.com>
|
||||||
|
|
||||||
|
* gtk/gtkfilechooserdialog.c
|
||||||
|
(gtk_file_chooser_dialog_style_set): Use HIG-compliant spacings.
|
||||||
|
This sucks a lot.
|
||||||
|
|
||||||
Wed Feb 18 02:03:47 2004 Matthias Clasen <maclas@gmx.de>
|
Wed Feb 18 02:03:47 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Document some
|
* gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Document some
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
2004-02-17 Federico Mena Quintero <federico@ximian.com>
|
||||||
|
|
||||||
|
* gtk/gtkfilechooserdialog.c
|
||||||
|
(gtk_file_chooser_dialog_style_set): Use HIG-compliant spacings.
|
||||||
|
This sucks a lot.
|
||||||
|
|
||||||
Wed Feb 18 02:03:47 2004 Matthias Clasen <maclas@gmx.de>
|
Wed Feb 18 02:03:47 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Document some
|
* gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Document some
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
2004-02-17 Federico Mena Quintero <federico@ximian.com>
|
||||||
|
|
||||||
|
* gtk/gtkfilechooserdialog.c
|
||||||
|
(gtk_file_chooser_dialog_style_set): Use HIG-compliant spacings.
|
||||||
|
This sucks a lot.
|
||||||
|
|
||||||
Wed Feb 18 02:03:47 2004 Matthias Clasen <maclas@gmx.de>
|
Wed Feb 18 02:03:47 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Document some
|
* gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Document some
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
2004-02-17 Federico Mena Quintero <federico@ximian.com>
|
||||||
|
|
||||||
|
* gtk/gtkfilechooserdialog.c
|
||||||
|
(gtk_file_chooser_dialog_style_set): Use HIG-compliant spacings.
|
||||||
|
This sucks a lot.
|
||||||
|
|
||||||
Wed Feb 18 02:03:47 2004 Matthias Clasen <maclas@gmx.de>
|
Wed Feb 18 02:03:47 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Document some
|
* gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Document some
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
2004-02-17 Federico Mena Quintero <federico@ximian.com>
|
||||||
|
|
||||||
|
* gtk/gtkfilechooserdialog.c
|
||||||
|
(gtk_file_chooser_dialog_style_set): Use HIG-compliant spacings.
|
||||||
|
This sucks a lot.
|
||||||
|
|
||||||
Wed Feb 18 02:03:47 2004 Matthias Clasen <maclas@gmx.de>
|
Wed Feb 18 02:03:47 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Document some
|
* gtk/gtktextbuffer.c (gtk_text_buffer_class_init): Document some
|
||||||
|
@ -275,11 +275,26 @@ static void
|
|||||||
gtk_file_chooser_dialog_style_set (GtkWidget *widget,
|
gtk_file_chooser_dialog_style_set (GtkWidget *widget,
|
||||||
GtkStyle *previous_style)
|
GtkStyle *previous_style)
|
||||||
{
|
{
|
||||||
|
GtkDialog *dialog;
|
||||||
|
|
||||||
if (GTK_WIDGET_CLASS (parent_class)->style_set)
|
if (GTK_WIDGET_CLASS (parent_class)->style_set)
|
||||||
GTK_WIDGET_CLASS (parent_class)->style_set (widget, previous_style);
|
GTK_WIDGET_CLASS (parent_class)->style_set (widget, previous_style);
|
||||||
|
|
||||||
if (GTK_WIDGET_REALIZED (widget))
|
if (GTK_WIDGET_REALIZED (widget))
|
||||||
set_default_size (GTK_FILE_CHOOSER_DIALOG (widget));
|
set_default_size (GTK_FILE_CHOOSER_DIALOG (widget));
|
||||||
|
|
||||||
|
dialog = GTK_DIALOG (widget);
|
||||||
|
|
||||||
|
/* Override the style properties with HIG-compliant spacings. Ugh.
|
||||||
|
* http://developer.gnome.org/projects/gup/hig/1.0/layout.html#layout-dialogs
|
||||||
|
* http://developer.gnome.org/projects/gup/hig/1.0/windows.html#alert-spacing
|
||||||
|
*/
|
||||||
|
|
||||||
|
gtk_container_set_border_width (GTK_CONTAINER (dialog->vbox), 12);
|
||||||
|
gtk_box_set_spacing (GTK_BOX (dialog->vbox), 24);
|
||||||
|
|
||||||
|
gtk_container_set_border_width (GTK_CONTAINER (dialog->action_area), 0);
|
||||||
|
gtk_box_set_spacing (GTK_BOX (dialog->action_area), 6);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user