mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-06 00:30:08 +00:00
Fix C99 declaration
Sat Jul 19 00:18:40 2003 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtkwindow.c (gtk_window_set_default_icon): Fix C99 declaration * gtk/gtkwidget.c (gtk_widget_queue_shallow_draw): new function (gtk_widget_real_focus_{in|out}_event): queue shallow draws instead of full draws.
This commit is contained in:
parent
7fa902f60b
commit
0c8511d269
@ -1,3 +1,12 @@
|
|||||||
|
Sat Jul 19 00:18:40 2003 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||||
|
|
||||||
|
* gtk/gtkwindow.c (gtk_window_set_default_icon): Fix C99
|
||||||
|
declaration
|
||||||
|
|
||||||
|
* gtk/gtkwidget.c (gtk_widget_queue_shallow_draw): new function
|
||||||
|
(gtk_widget_real_focus_{in|out}_event): queue shallow draws
|
||||||
|
instead of full draws.
|
||||||
|
|
||||||
2003-07-18 Matthias Clasen <maclas@gmx.de>
|
2003-07-18 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtkwindow.c: Add properties decorated and gravity. (#80234)
|
* gtk/gtkwindow.c: Add properties decorated and gravity. (#80234)
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
Sat Jul 19 00:18:40 2003 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||||
|
|
||||||
|
* gtk/gtkwindow.c (gtk_window_set_default_icon): Fix C99
|
||||||
|
declaration
|
||||||
|
|
||||||
|
* gtk/gtkwidget.c (gtk_widget_queue_shallow_draw): new function
|
||||||
|
(gtk_widget_real_focus_{in|out}_event): queue shallow draws
|
||||||
|
instead of full draws.
|
||||||
|
|
||||||
2003-07-18 Matthias Clasen <maclas@gmx.de>
|
2003-07-18 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtkwindow.c: Add properties decorated and gravity. (#80234)
|
* gtk/gtkwindow.c: Add properties decorated and gravity. (#80234)
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
Sat Jul 19 00:18:40 2003 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||||
|
|
||||||
|
* gtk/gtkwindow.c (gtk_window_set_default_icon): Fix C99
|
||||||
|
declaration
|
||||||
|
|
||||||
|
* gtk/gtkwidget.c (gtk_widget_queue_shallow_draw): new function
|
||||||
|
(gtk_widget_real_focus_{in|out}_event): queue shallow draws
|
||||||
|
instead of full draws.
|
||||||
|
|
||||||
2003-07-18 Matthias Clasen <maclas@gmx.de>
|
2003-07-18 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtkwindow.c: Add properties decorated and gravity. (#80234)
|
* gtk/gtkwindow.c: Add properties decorated and gravity. (#80234)
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
Sat Jul 19 00:18:40 2003 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||||
|
|
||||||
|
* gtk/gtkwindow.c (gtk_window_set_default_icon): Fix C99
|
||||||
|
declaration
|
||||||
|
|
||||||
|
* gtk/gtkwidget.c (gtk_widget_queue_shallow_draw): new function
|
||||||
|
(gtk_widget_real_focus_{in|out}_event): queue shallow draws
|
||||||
|
instead of full draws.
|
||||||
|
|
||||||
2003-07-18 Matthias Clasen <maclas@gmx.de>
|
2003-07-18 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtkwindow.c: Add properties decorated and gravity. (#80234)
|
* gtk/gtkwindow.c: Add properties decorated and gravity. (#80234)
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
Sat Jul 19 00:18:40 2003 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||||
|
|
||||||
|
* gtk/gtkwindow.c (gtk_window_set_default_icon): Fix C99
|
||||||
|
declaration
|
||||||
|
|
||||||
|
* gtk/gtkwidget.c (gtk_widget_queue_shallow_draw): new function
|
||||||
|
(gtk_widget_real_focus_{in|out}_event): queue shallow draws
|
||||||
|
instead of full draws.
|
||||||
|
|
||||||
2003-07-18 Matthias Clasen <maclas@gmx.de>
|
2003-07-18 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtkwindow.c: Add properties decorated and gravity. (#80234)
|
* gtk/gtkwindow.c: Add properties decorated and gravity. (#80234)
|
||||||
|
@ -216,6 +216,7 @@ static AtkObject* gtk_widget_ref_accessible (AtkImplementor *implementor);
|
|||||||
static void gtk_widget_invalidate_widget_windows (GtkWidget *widget,
|
static void gtk_widget_invalidate_widget_windows (GtkWidget *widget,
|
||||||
GdkRegion *region);
|
GdkRegion *region);
|
||||||
static GdkScreen * gtk_widget_get_screen_unchecked (GtkWidget *widget);
|
static GdkScreen * gtk_widget_get_screen_unchecked (GtkWidget *widget);
|
||||||
|
static void gtk_widget_queue_shallow_draw (GtkWidget *widget);
|
||||||
|
|
||||||
static void gtk_widget_set_usize_internal (GtkWidget *widget,
|
static void gtk_widget_set_usize_internal (GtkWidget *widget,
|
||||||
gint width,
|
gint width,
|
||||||
@ -2253,16 +2254,10 @@ gtk_widget_queue_clear (GtkWidget *widget)
|
|||||||
void
|
void
|
||||||
gtk_widget_queue_resize (GtkWidget *widget)
|
gtk_widget_queue_resize (GtkWidget *widget)
|
||||||
{
|
{
|
||||||
GdkRegion *region;
|
|
||||||
|
|
||||||
g_return_if_fail (GTK_IS_WIDGET (widget));
|
g_return_if_fail (GTK_IS_WIDGET (widget));
|
||||||
|
|
||||||
if (GTK_WIDGET_REALIZED (widget))
|
if (GTK_WIDGET_REALIZED (widget))
|
||||||
{
|
gtk_widget_queue_shallow_draw (widget);
|
||||||
region = gdk_region_rectangle (&widget->allocation);
|
|
||||||
gtk_widget_invalidate_widget_windows (widget, region);
|
|
||||||
gdk_region_destroy (region);
|
|
||||||
}
|
|
||||||
|
|
||||||
_gtk_size_group_queue_resize (widget);
|
_gtk_size_group_queue_resize (widget);
|
||||||
}
|
}
|
||||||
@ -2414,6 +2409,25 @@ gtk_widget_invalidate_widget_windows (GtkWidget *widget,
|
|||||||
invalidate_predicate, widget);
|
invalidate_predicate, widget);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* gtk_widget_queue_shallow_draw:
|
||||||
|
* @widget: a #GtkWidget
|
||||||
|
*
|
||||||
|
* Like gtk_widget_queue_draw(), but only windows owned
|
||||||
|
* by @widget are invalidated.
|
||||||
|
**/
|
||||||
|
static void
|
||||||
|
gtk_widget_queue_shallow_draw (GtkWidget *widget)
|
||||||
|
{
|
||||||
|
GdkRegion *region;
|
||||||
|
|
||||||
|
g_return_if_fail (GTK_IS_WIDGET (widget));
|
||||||
|
|
||||||
|
region = gdk_region_rectangle (&widget->allocation);
|
||||||
|
gtk_widget_invalidate_widget_windows (widget, region);
|
||||||
|
gdk_region_destroy (region);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* gtk_widget_size_allocate:
|
* gtk_widget_size_allocate:
|
||||||
* @widget: a #GtkWidget
|
* @widget: a #GtkWidget
|
||||||
@ -3045,7 +3059,7 @@ static gboolean
|
|||||||
gtk_widget_real_focus_in_event (GtkWidget *widget,
|
gtk_widget_real_focus_in_event (GtkWidget *widget,
|
||||||
GdkEventFocus *event)
|
GdkEventFocus *event)
|
||||||
{
|
{
|
||||||
gtk_widget_queue_draw (widget);
|
gtk_widget_queue_shallow_draw (widget);
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
@ -3054,7 +3068,7 @@ static gboolean
|
|||||||
gtk_widget_real_focus_out_event (GtkWidget *widget,
|
gtk_widget_real_focus_out_event (GtkWidget *widget,
|
||||||
GdkEventFocus *event)
|
GdkEventFocus *event)
|
||||||
{
|
{
|
||||||
gtk_widget_queue_draw (widget);
|
gtk_widget_queue_shallow_draw (widget);
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
@ -2841,9 +2841,11 @@ gtk_window_set_default_icon_list (GList *list)
|
|||||||
void
|
void
|
||||||
gtk_window_set_default_icon (GdkPixbuf *pixbuf)
|
gtk_window_set_default_icon (GdkPixbuf *pixbuf)
|
||||||
{
|
{
|
||||||
|
GList *list;
|
||||||
|
|
||||||
g_return_if_fail (GDK_IS_PIXBUF (pixbuf));
|
g_return_if_fail (GDK_IS_PIXBUF (pixbuf));
|
||||||
|
|
||||||
GList *list = g_list_prepend (NULL, pixbuf);
|
list = g_list_prepend (NULL, pixbuf);
|
||||||
gtk_window_set_default_icon_list (list);
|
gtk_window_set_default_icon_list (list);
|
||||||
g_list_free (list);
|
g_list_free (list);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user