mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-09-19 21:40:22 +00:00
Bug 399314 – Add G_GNUC_WARN_UNUSED_RESULT to gtk_style_attach
2007-01-22 Chris Wilson <chris@chris-wilson.co.uk> Bug 399314 – Add G_GNUC_WARN_UNUSED_RESULT to gtk_style_attach * gtk/gtkstyle.h: Cause gcc to issue a warning if the style returned from gtk_style_attach is not used. Failure to update widget->style causes some very difficult to identify bugs, eg Bug 353498 – crash in Terminal: changing icon theme. svn path=/trunk/; revision=17199
This commit is contained in:
parent
a236fb7a26
commit
c41296336a
10
ChangeLog
10
ChangeLog
@ -1,3 +1,13 @@
|
||||
2007-01-22 Chris Wilson <chris@chris-wilson.co.uk>
|
||||
|
||||
Bug 399314 – Add G_GNUC_WARN_UNUSED_RESULT to gtk_style_attach
|
||||
|
||||
* gtk/gtkstyle.h:
|
||||
Cause gcc to issue a warning if the style returned from
|
||||
gtk_style_attach is not used. Failure to update
|
||||
widget->style causes some very difficult to reproduce bugs,
|
||||
eg Bug 353498 – crash in Terminal: changing icon theme.
|
||||
|
||||
2007-01-19 Michael Emmel <mike.emmel@gmail.com>
|
||||
|
||||
* gdk/directfb/gdkevents-directfb.c: added fixes for window
|
||||
|
@ -427,7 +427,7 @@ GType gtk_style_get_type (void) G_GNUC_CONST;
|
||||
GtkStyle* gtk_style_new (void);
|
||||
GtkStyle* gtk_style_copy (GtkStyle *style);
|
||||
GtkStyle* gtk_style_attach (GtkStyle *style,
|
||||
GdkWindow *window);
|
||||
GdkWindow *window) G_GNUC_WARN_UNUSED_RESULT;
|
||||
void gtk_style_detach (GtkStyle *style);
|
||||
|
||||
#ifndef GTK_DISABLE_DEPRECATED
|
||||
|
Loading…
Reference in New Issue
Block a user