]> Pileus Git - ~andy/gtk/log
~andy/gtk
13 years agoperf: Use a temp window instead of a normal one
Benjamin Otte [Fri, 27 Aug 2010 10:30:54 +0000 (12:30 +0200)]
perf: Use a temp window instead of a normal one

This way, we don't need hacks to not set the background.

13 years agoAPI: Remove APIs to generate pixmaps from pixbufs
Benjamin Otte [Fri, 27 Aug 2010 10:14:36 +0000 (12:14 +0200)]
API: Remove APIs to generate pixmaps from pixbufs

The 3 functions in question were:
- gdk_pixbuf_render_threshold_alpha()
- gdk_pixbuf_render_pixmap_and_mask()
- gdk_pixbuf_render_pixmap_and_mask_for_colormap()

All of them can be replaced using Cairo if they have to. The
functionality is only needed to talk to old X interfaces and normal apps
do fine without them.

13 years agox11: Set the icon using Cairo
Benjamin Otte [Fri, 27 Aug 2010 10:08:30 +0000 (12:08 +0200)]
x11: Set the icon using Cairo

No more GdkPixmap to store the icon and its mask, but instead use cairo
surfaces. Also render the icon into the surfaces using Cairo instead of
gdk_pixbuf_render_threshold_alpha().

13 years agoAPI: Change offscreen windows to use a cairo_surface_t
Benjamin Otte [Thu, 26 Aug 2010 11:46:34 +0000 (13:46 +0200)]
API: Change offscreen windows to use a cairo_surface_t

This requires changes to all the offscreen surface getters that used to
return a GdkPixmap before.

13 years agogdk: Use surfaces for double buffering
Benjamin Otte [Thu, 26 Aug 2010 09:21:51 +0000 (11:21 +0200)]
gdk: Use surfaces for double buffering

Don't use pixmaps anymore. Also use subsurfaces for implicit paints and
correcly set device offsets.

13 years agogdk: Make csw windows have their own cairo surface
Benjamin Otte [Thu, 26 Aug 2010 08:15:59 +0000 (10:15 +0200)]
gdk: Make csw windows have their own cairo surface

With Cairo 1.10 now having cairo_surface_create_for_rectangle(), we can
use them. No need to create multiple native surfaces for the same X
window (ugh) anymore.

13 years agoAPI: Remove gdk_window_get_internal_paint_info()
Benjamin Otte [Wed, 25 Aug 2010 23:17:04 +0000 (01:17 +0200)]
API: Remove gdk_window_get_internal_paint_info()

This function should not exist in public API, it exposes too many
internals.

13 years agogdk: offscreen window source drawable now is the root window
Benjamin Otte [Wed, 25 Aug 2010 21:39:30 +0000 (23:39 +0200)]
gdk: offscreen window source drawable now is the root window

As the source drawable is only used for creating pixmaps these days, we
don't have to keep a real drawable around, but can just use the root
window.

13 years agogdk: Create surfaces directly, not from the source drawable
Benjamin Otte [Wed, 25 Aug 2010 21:35:40 +0000 (23:35 +0200)]
gdk: Create surfaces directly, not from the source drawable

The notion of a source drawable does not make a lot of sense for windows
that are not backed by a drawable, such as GdkOffscreenWindow after
converting it to cairo_surface_t.

13 years agogdk: Remove gdk_windowing_create_cairo_surface()
Benjamin Otte [Wed, 25 Aug 2010 20:16:28 +0000 (22:16 +0200)]
gdk: Remove gdk_windowing_create_cairo_surface()

Instead, actually use the create_cairo_surface vfunc on the
implementation drawable. D'oh.

13 years agodnd: Replace last pixmap usage with cairo surfaces.
Benjamin Otte [Wed, 25 Aug 2010 19:06:21 +0000 (21:06 +0200)]
dnd: Replace last pixmap usage with cairo surfaces.

13 years agoAPI: image: Remove ability to set image from a pixmap
Benjamin Otte [Wed, 25 Aug 2010 14:50:14 +0000 (16:50 +0200)]
API: image: Remove ability to set image from a pixmap

13 years agoAPI: Remove the ability to set the dnd icon from a pixmap
Benjamin Otte [Wed, 25 Aug 2010 14:49:45 +0000 (16:49 +0200)]
API: Remove the ability to set the dnd icon from a pixmap

13 years agotests: Convert testinput to use cairo_surface_t
Benjamin Otte [Wed, 25 Aug 2010 13:50:57 +0000 (15:50 +0200)]
tests: Convert testinput to use cairo_surface_t

13 years agogdk: Remove gdk_window_redirect_to_drawable()
Benjamin Otte [Tue, 24 Aug 2010 15:13:05 +0000 (17:13 +0200)]
gdk: Remove gdk_window_redirect_to_drawable()

Also remove the reverse gdk_window_remove_redirection().

The code was only used by the snapshotting code, and that code is dead
now.

13 years agotestoffscreen: Remove unused code
Benjamin Otte [Tue, 24 Aug 2010 15:06:40 +0000 (17:06 +0200)]
testoffscreen: Remove unused code

13 years agoAPI: Remove gtk_widget_get_snapshot()
Benjamin Otte [Tue, 24 Aug 2010 15:04:18 +0000 (17:04 +0200)]
API: Remove gtk_widget_get_snapshot()

It will be replaced with gtk_widget_draw().

13 years agotestgtk: Remove snapshot test
Benjamin Otte [Tue, 24 Aug 2010 15:03:23 +0000 (17:03 +0200)]
testgtk: Remove snapshot test

gtk_widget_get_snapshot is on its way out.

The test can be added back once we have gtk_widget_draw(), but until
then, there's no way to take snapshots.

13 years agoruler: Make the backing store use a surface
Benjamin Otte [Tue, 24 Aug 2010 14:27:55 +0000 (16:27 +0200)]
ruler: Make the backing store use a surface

13 years agoAPI: make gtk_icon_view_create_drag_icon() return a cairo_surface_t
Benjamin Otte [Tue, 24 Aug 2010 14:03:09 +0000 (16:03 +0200)]
API: make gtk_icon_view_create_drag_icon() return a cairo_surface_t

GdkPixmap is going to die!

13 years agoAPI: make gtk_tree_view_create_row_drag_icon() return a cairo_surface_t
Benjamin Otte [Tue, 24 Aug 2010 13:56:08 +0000 (15:56 +0200)]
API: make gtk_tree_view_create_row_drag_icon() return a cairo_surface_t

GdkPixmap is going to die!

13 years agotreeview: Convert GtkTreeViewColumn rendering to Cairo
Benjamin Otte [Tue, 24 Aug 2010 13:45:41 +0000 (15:45 +0200)]
treeview: Convert GtkTreeViewColumn rendering to Cairo

13 years agoiconview: Port to Cairo rendering
Benjamin Otte [Sun, 22 Aug 2010 02:32:52 +0000 (04:32 +0200)]
iconview: Port to Cairo rendering

13 years agocellview: Port to Cairo rendering
Benjamin Otte [Sun, 22 Aug 2010 02:32:39 +0000 (04:32 +0200)]
cellview: Port to Cairo rendering

13 years agoAPI: Add gtk_cell_renderer_render_cairo()
Benjamin Otte [Sun, 22 Aug 2010 01:53:45 +0000 (03:53 +0200)]
API: Add gtk_cell_renderer_render_cairo()

It's like gtk_cell_renderer_render(), just cooler.

13 years agoAPI: Change cellrenderer->render vfunc to take a cairo_t
Benjamin Otte [Sat, 21 Aug 2010 11:18:14 +0000 (13:18 +0200)]
API: Change cellrenderer->render vfunc to take a cairo_t

Also constify the rectangle arguments. They were const anyway.

13 years agotestview: Convert _gtk_text_util_create_rich_drag_icon() to use surfaces
Benjamin Otte [Sun, 15 Aug 2010 19:24:55 +0000 (21:24 +0200)]
testview: Convert _gtk_text_util_create_rich_drag_icon() to use surfaces

13 years agotextview: API: change gtk_text_layout_draw() to take a cairo_t
Benjamin Otte [Sun, 15 Aug 2010 17:41:51 +0000 (19:41 +0200)]
textview: API: change gtk_text_layout_draw() to take a cairo_t

This simplifies the API a lot and allows more magic to happen later.

13 years agoAPI: Add gtk_cairo_draw_insertion_cursor()
Benjamin Otte [Sun, 15 Aug 2010 17:38:32 +0000 (19:38 +0200)]
API: Add gtk_cairo_draw_insertion_cursor()

For now just add it instead of replacing the current function. In the
end, this one should probably be renamed to
gtk_draw_insertion_cursor() and the current
gtk_draw_insertion_cursor() should die.

13 years agotext: Make _gtk_text_util_create_drag_icon() return a surface
Benjamin Otte [Sun, 15 Aug 2010 14:53:27 +0000 (16:53 +0200)]
text: Make _gtk_text_util_create_drag_icon() return a surface

And change its callers to handle it that way.

13 years agoAPI: Add gtk_drag_set_icon_surface()
Benjamin Otte [Sun, 15 Aug 2010 14:52:25 +0000 (16:52 +0200)]
API: Add gtk_drag_set_icon_surface()

The function is supposed to replace gtk_drag_set_icon_pixmap().

13 years agomenu: set tearoff background using new background API
Benjamin Otte [Sun, 15 Aug 2010 12:41:29 +0000 (14:41 +0200)]
menu: set tearoff background using new background API

13 years agoUse gdk_window_set_background_pattern() to set parent-relative bakground
Benjamin Otte [Sun, 15 Aug 2010 12:37:58 +0000 (14:37 +0200)]
Use gdk_window_set_background_pattern() to set parent-relative bakground

13 years agoiconview: No need to set background
Benjamin Otte [Sun, 15 Aug 2010 12:37:49 +0000 (14:37 +0200)]
iconview: No need to set background

13 years agostyle: Rewrite background handling to use cairo_pattern_t
Benjamin Otte [Sun, 15 Aug 2010 12:36:05 +0000 (14:36 +0200)]
style: Rewrite background handling to use cairo_pattern_t

13 years agotrayicon: Use new gdk_window_set_background_pattern() API
Benjamin Otte [Sun, 15 Aug 2010 12:35:48 +0000 (14:35 +0200)]
trayicon: Use new gdk_window_set_background_pattern() API

13 years agogtk: Remove calls that try to set GDK_NO_BG on their windows
Benjamin Otte [Sun, 15 Aug 2010 11:54:05 +0000 (13:54 +0200)]
gtk: Remove calls that try to set GDK_NO_BG on their windows

These calls aren't necessary anymore.

13 years agogdk: Rewrite background handling
Benjamin Otte [Sun, 15 Aug 2010 11:49:30 +0000 (13:49 +0200)]
gdk: Rewrite background handling

Now the window background is a cairo_pattern_t. The backends will try to
set this as good as they can on the windowing system, but no guarantees
are made on wether the windowing system supports the pattern.

Also gets rid of GDK_NO_BG as undefined behavior is not a good idea to
support, and GDK_NO_BG effectively made the window's contents undefined.
It wasn't effectively used in GTK anyway.

13 years agogdk: Remove supports_native_bg on WindowImplIface
Benjamin Otte [Sun, 15 Aug 2010 01:27:30 +0000 (03:27 +0200)]
gdk: Remove supports_native_bg on WindowImplIface

This will not be TRUE for anything anymore, once we fix background
handling.

13 years agogdk: Remove send_expose event from gdk_window_clear_region_internal()
Benjamin Otte [Sun, 15 Aug 2010 01:20:10 +0000 (03:20 +0200)]
gdk: Remove send_expose event from gdk_window_clear_region_internal()

It's always FALSE.

13 years agogdk: Remove GdkWindowImpl->clear_region
Benjamin Otte [Sun, 15 Aug 2010 01:16:20 +0000 (03:16 +0200)]
gdk: Remove GdkWindowImpl->clear_region

It was only used on the X11 backend and is easier to implement locally,
in particular when we want to allow backgrounds that X can't handle.

13 years agogdk: Simplify clear_area code
Benjamin Otte [Sun, 15 Aug 2010 01:13:08 +0000 (03:13 +0200)]
gdk: Simplify clear_area code

No more use for a gdk_window_clear_area_internal() function as there's
just one caller.

13 years agoAPI: Remove gdk_window_clear_area_e()
Benjamin Otte [Sun, 15 Aug 2010 01:11:01 +0000 (03:11 +0200)]
API: Remove gdk_window_clear_area_e()

Awesome name for a function. Plus, it's unused and its functionality can
easily be replicated.

13 years agogdk: Don't use clear_area_e() in offscreenwindow
Benjamin Otte [Sun, 15 Aug 2010 01:10:16 +0000 (03:10 +0200)]
gdk: Don't use clear_area_e() in offscreenwindow

Instead, call gdk_window_invalidate_rect() ourselves.

13 years agogdk: Remove _gdk_windowing_get_shape_for_mask()
Benjamin Otte [Sat, 14 Aug 2010 04:51:53 +0000 (06:51 +0200)]
gdk: Remove _gdk_windowing_get_shape_for_mask()

It's unused. And there's a replacement available with
gdk_cairo_region_create_from_surface()

13 years agoAPI: Remove shape_combine_mask functions from gdk
Benjamin Otte [Sat, 14 Aug 2010 04:46:25 +0000 (06:46 +0200)]
API: Remove shape_combine_mask functions from gdk

This removes gdk_window_shape_combine_mask() and
gdk_window_input_shape_combine_mask(). GdkBitmap is going away and a
replacement exists via the combine_region() functions and
gdk_cairo_region_create_from_surface().

13 years agowidget: shape_combine_mask => shape_cobine_region
Benjamin Otte [Sat, 14 Aug 2010 04:38:11 +0000 (06:38 +0200)]
widget: shape_combine_mask => shape_cobine_region

Replace gtk_widget_shape_combine_region() with
gtk_widget_shape_combine_mask() and
gtk_widget_input_shape_combine_region() with
gtk_widget_input_shape_combine_mask().
As GdkBitmap is going away, and the region equivalents already exist,
this seems like pretty much the default step to take.

Includes code to fix up the users.

13 years agotreeview: Port to gdk_window_shape_combine_region()
Benjamin Otte [Sat, 14 Aug 2010 03:37:24 +0000 (05:37 +0200)]
treeview: Port to gdk_window_shape_combine_region()

gdk_window_shape_combine_mask() is going away. It's using a GdkPixmap
and falls back to gdk_window_shape_combine_region() anyway.

13 years agoAPI: Add gdk_cairo_region_create_from_surface()
Benjamin Otte [Sat, 14 Aug 2010 02:40:52 +0000 (04:40 +0200)]
API: Add gdk_cairo_region_create_from_surface()

The function converts the given surface into an alpha bitmap mask. This
is mostly useful for setting shape regions.

Also adds a new internal function _gdk_cairo_surface_extents() that
computes a surface's extents.

13 years agoAPI: Remove gdk_cursor_new_from_pixmap()
Benjamin Otte [Thu, 12 Aug 2010 13:43:23 +0000 (15:43 +0200)]
API: Remove gdk_cursor_new_from_pixmap()

gdk_cursor_new_from_pixbuf() is the proper replacement.

13 years agocolorsel: Use gdk_cursor_new_from_pixbuf() to create the cursor
Benjamin Otte [Thu, 12 Aug 2010 13:28:16 +0000 (15:28 +0200)]
colorsel: Use gdk_cursor_new_from_pixbuf() to create the cursor

gdk_cursor_new_from_pixmap() is about to die.

13 years agoAPI: remove gdk_window_set_icon()
Benjamin Otte [Thu, 12 Aug 2010 02:48:06 +0000 (04:48 +0200)]
API: remove gdk_window_set_icon()

gdk_window_set_icon_list() now does everything gdk_window_set_icon()
used to do.

13 years agotestgtk: Convert WM hints example to use gdk_window_set_icon_list()
Benjamin Otte [Thu, 12 Aug 2010 02:39:28 +0000 (04:39 +0200)]
testgtk: Convert WM hints example to use gdk_window_set_icon_list()

gdk_window_set_icon() is about to go away.

Also removes the circles.xbm file and uses the oncluded openfile logo
instead.

13 years agowindow: Remove call to gdk_window_set_icon()
Benjamin Otte [Thu, 12 Aug 2010 02:33:16 +0000 (04:33 +0200)]
window: Remove call to gdk_window_set_icon()

Also remove all the functions taking care of it. This is now handled by
the X11 backend directly. And the other backends ignored this function
anyway.

13 years agox11: remove icon_window property, it's not used anymore
Benjamin Otte [Thu, 12 Aug 2010 02:29:10 +0000 (04:29 +0200)]
x11: remove icon_window property, it's not used anymore

13 years agox11: Set icon based on icon list
Benjamin Otte [Thu, 12 Aug 2010 02:21:49 +0000 (04:21 +0200)]
x11: Set icon based on icon list

Basically copies the code for setting the WM icon hint from GtkWindow to
GdkWindow. This achieves the following:
- Putting this X11 specific code into the X11 backend
- Enables removal of gdk_window_set_icon()
- Gets rid of Pixmap/Bitmap usage outside of GDK.

13 years agopixbuf-engine: remove unused theme_pixbuf_render_no_cairo()
Benjamin Otte [Tue, 17 Aug 2010 03:15:31 +0000 (05:15 +0200)]
pixbuf-engine: remove unused theme_pixbuf_render_no_cairo()

13 years agostyle: Convert draw_spinner vfunc to Cairo version
Benjamin Otte [Mon, 16 Aug 2010 13:09:50 +0000 (15:09 +0200)]
style: Convert draw_spinner vfunc to Cairo version

13 years agostyle: Convert draw_resize_grip vfunc to Cairo version
Benjamin Otte [Mon, 16 Aug 2010 13:13:26 +0000 (15:13 +0200)]
style: Convert draw_resize_grip vfunc to Cairo version

Includes removal of now unused draw_simple_image_no_cairo() function
from pixbuf engine.

13 years agostyle: Convert draw_layout vfunc to Cairo version
Benjamin Otte [Mon, 16 Aug 2010 13:21:01 +0000 (15:21 +0200)]
style: Convert draw_layout vfunc to Cairo version

13 years agostyle: Convert draw_expander vfunc to Cairo version
Benjamin Otte [Mon, 16 Aug 2010 13:26:19 +0000 (15:26 +0200)]
style: Convert draw_expander vfunc to Cairo version

13 years agostyle: Convert draw_handle vfunc to Cairo version
Benjamin Otte [Tue, 17 Aug 2010 01:26:20 +0000 (03:26 +0200)]
style: Convert draw_handle vfunc to Cairo version

13 years agostyle: Convert draw_slider vfunc to Cairo version
Benjamin Otte [Tue, 17 Aug 2010 00:46:46 +0000 (02:46 +0200)]
style: Convert draw_slider vfunc to Cairo version

13 years agostyle: Convert draw_focus vfunc to Cairo version
Benjamin Otte [Mon, 16 Aug 2010 20:24:46 +0000 (22:24 +0200)]
style: Convert draw_focus vfunc to Cairo version

13 years agostyle: Convert draw_extension vfunc to Cairo version
Benjamin Otte [Mon, 16 Aug 2010 20:19:56 +0000 (22:19 +0200)]
style: Convert draw_extension vfunc to Cairo version

13 years agostyle: Convert draw_box_gap vfunc to Cairo version
Benjamin Otte [Mon, 16 Aug 2010 20:15:43 +0000 (22:15 +0200)]
style: Convert draw_box_gap vfunc to Cairo version

Includes removal of now unused draw_gap_image_no_cairo() function from
pixbuf theme engine.

13 years agostyle: Convert draw_shadow_gap vfunc to a Cairo version
Benjamin Otte [Mon, 16 Aug 2010 14:09:11 +0000 (16:09 +0200)]
style: Convert draw_shadow_gap vfunc to a Cairo version

13 years agostyle: Convert draw_tab vfunc to Cairo version
Benjamin Otte [Mon, 16 Aug 2010 20:10:00 +0000 (22:10 +0200)]
style: Convert draw_tab vfunc to Cairo version

13 years agostyle: Convert draw_option vfunc to Cairo version
Benjamin Otte [Mon, 16 Aug 2010 19:58:15 +0000 (21:58 +0200)]
style: Convert draw_option vfunc to Cairo version

13 years agostyle: Convert draw_check vfunc to Cairo version
Benjamin Otte [Mon, 16 Aug 2010 19:55:02 +0000 (21:55 +0200)]
style: Convert draw_check vfunc to Cairo version

13 years agostyle: Convert draw_flat_box vfunc to Cairo version
Benjamin Otte [Mon, 16 Aug 2010 19:50:08 +0000 (21:50 +0200)]
style: Convert draw_flat_box vfunc to Cairo version

13 years agostyle: Convert draw_shadow vfunc to Cairo version
Benjamin Otte [Mon, 16 Aug 2010 13:48:06 +0000 (15:48 +0200)]
style: Convert draw_shadow vfunc to Cairo version

13 years agostyle: Convert draw_vline vfunc to a Cairo version
Benjamin Otte [Mon, 16 Aug 2010 13:40:03 +0000 (15:40 +0200)]
style: Convert draw_vline vfunc to a Cairo version

13 years agostyle: Convert draw_hline vfunc to Cairo version
Benjamin Otte [Mon, 16 Aug 2010 13:35:58 +0000 (15:35 +0200)]
style: Convert draw_hline vfunc to Cairo version

13 years agoAPI: change gtk_style_apply_default_background()
Benjamin Otte [Mon, 16 Aug 2010 19:36:49 +0000 (21:36 +0200)]
API: change gtk_style_apply_default_background()

It now takes a cr to apply the default background to. And it no longer
takes a set_bg parameter

13 years agopixbuf-engine: Add Cairo version for draw_gap_image()
Benjamin Otte [Tue, 17 Aug 2010 02:47:02 +0000 (04:47 +0200)]
pixbuf-engine: Add Cairo version for draw_gap_image()

13 years agopixbuf-engine: Add Cairo version for draw_simple_image()
Benjamin Otte [Tue, 17 Aug 2010 02:43:11 +0000 (04:43 +0200)]
pixbuf-engine: Add Cairo version for draw_simple_image()

13 years agopixbuf-engine: Make theme_pixbuf_render take a cairo_t
Benjamin Otte [Tue, 17 Aug 2010 02:37:03 +0000 (04:37 +0200)]
pixbuf-engine: Make theme_pixbuf_render take a cairo_t

This is in preparation for the theme engine switch to Cairo. We keep the
old function around so that we can step-by-step upgrade all the vfuncs.

13 years agopixbuf-engine: Get rid of unused mask argument
Benjamin Otte [Tue, 17 Aug 2010 02:30:10 +0000 (04:30 +0200)]
pixbuf-engine: Get rid of unused mask argument

13 years agonotebook: Fix compilation warnings
Benjamin Otte [Sun, 26 Sep 2010 13:02:00 +0000 (15:02 +0200)]
notebook: Fix compilation warnings

A quark is not a pointer.

13 years agomenu: Remove unused variable
Benjamin Otte [Sun, 26 Sep 2010 13:01:52 +0000 (15:01 +0200)]
menu: Remove unused variable

13 years agoGtkScrolledWindow: document changed default policy
Matthias Clasen [Sat, 25 Sep 2010 15:18:28 +0000 (11:18 -0400)]
GtkScrolledWindow: document changed default policy

13 years agoNuke the 'Types' section from the docs
Matthias Clasen [Sat, 25 Sep 2010 03:03:51 +0000 (23:03 -0400)]
Nuke the 'Types' section from the docs

13 years agoRemove mention of input dialog from the docs
Matthias Clasen [Sat, 25 Sep 2010 02:16:53 +0000 (22:16 -0400)]
Remove mention of input dialog from the docs

13 years agoGtkOffscreenWindow: shorten doc title
Matthias Clasen [Sat, 25 Sep 2010 02:13:42 +0000 (22:13 -0400)]
GtkOffscreenWindow: shorten doc title

13 years agoGtkScale: Remove links from doc section title
Matthias Clasen [Sat, 25 Sep 2010 01:52:58 +0000 (21:52 -0400)]
GtkScale: Remove links from doc section title

13 years agoGtkMenu: Add a destroy notify to gtk_menu_popup_for_device
Matthias Clasen [Fri, 24 Sep 2010 17:52:49 +0000 (13:52 -0400)]
GtkMenu: Add a destroy notify to gtk_menu_popup_for_device

This is necessary so language bindings can use gtk_menu_popup_for_device()
as a 'full' variant of gtk_menu_popup().

http://bugzilla.gnome.org/show_bug.cgi?id=623664

13 years agoUpdate docs of GtkAboutDialog and GtkLinkButton
Matthias Clasen [Fri, 24 Sep 2010 17:41:29 +0000 (13:41 -0400)]
Update docs of GtkAboutDialog and GtkLinkButton

Remove references to global hooks from the docs. Also move remaining
docs inline, and remove the templates.

13 years agoDND: don't use uninitialized memory
Matthias Clasen [Fri, 24 Sep 2010 17:23:47 +0000 (13:23 -0400)]
DND: don't use uninitialized memory

The dest_x/y members of GtkDragDestInfo were not initialized.
At the same time, switch some of the small temporary structs
to g_slice allocation.

https://bugzilla.gnome.org/show_bug.cgi?id=630532

13 years agoGtkAboutDialog: correct a since tag
Matthias Clasen [Fri, 24 Sep 2010 16:42:34 +0000 (12:42 -0400)]
GtkAboutDialog: correct a since tag

13 years agogtkeditable: move documentation to inline comments
Christian Dywan [Fri, 24 Sep 2010 16:40:12 +0000 (18:40 +0200)]
gtkeditable: move documentation to inline comments

Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=617316
13 years agointrospection: Fix typo in annotation
Florian Müllner [Fri, 24 Sep 2010 16:03:25 +0000 (18:03 +0200)]
introspection: Fix typo in annotation

13 years agoDon't try to unref event->dnd.context unconditionally.
Tomeu Vizoso [Fri, 24 Sep 2010 14:30:07 +0000 (16:30 +0200)]
Don't try to unref event->dnd.context unconditionally.

As it's not set in gdk_event_new but eventually later.

https://bugzilla.gnome.org/show_bug.cgi?id=630520

13 years agoGtkAboutDialog: escape mail addresses
Matthias Clasen [Fri, 24 Sep 2010 16:02:37 +0000 (12:02 -0400)]
GtkAboutDialog: escape mail addresses

This got lost when converting to the ::activate-link signal.

13 years agoRemove gtk_notebook_set_window_creation_hook in testnotebookdnd.c
Matthias Clasen [Fri, 24 Sep 2010 15:53:20 +0000 (11:53 -0400)]
Remove gtk_notebook_set_window_creation_hook in testnotebookdnd.c

13 years agoAnother since tag
Matthias Clasen [Fri, 24 Sep 2010 15:31:23 +0000 (11:31 -0400)]
Another since tag

13 years agoCorrect since tags
Matthias Clasen [Fri, 24 Sep 2010 15:29:17 +0000 (11:29 -0400)]
Correct since tags

13 years agoGtkNotebook: replace group by group_name
Matthias Clasen [Fri, 24 Sep 2010 15:13:30 +0000 (11:13 -0400)]
GtkNotebook: replace group by group_name

Dealing with bare pointers is problematic for language bindings,
using interned strings is much more straightforward and more than
good enough for what is needed here.

http://bugzilla.gnome.org/show_bug.cgi?id=630521

13 years agoGtkNotebook: remove gtk_notebook_set_window_creation_hook
Matthias Clasen [Fri, 24 Sep 2010 15:10:51 +0000 (11:10 -0400)]
GtkNotebook: remove gtk_notebook_set_window_creation_hook

http://bugzilla.gnome.org/show_bug.cgi?id=630521

13 years agodocs: Add a CODING-STYLE document
Matthias Clasen [Fri, 24 Sep 2010 02:26:07 +0000 (22:26 -0400)]
docs: Add a CODING-STYLE document

This document mostly codifies the existing GTK+ coding style
conventions; it is strongly based on the clutter document of
the same name.