1. 11 May, 2005 1 commit
    • Owen Taylor's avatar
      Use a GtkAlignment rather than a GtkDrawingArea to draw the swatch in to · dda40ca7
      Owen Taylor authored
      2005-05-11  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkcolorbutton.c: Use a GtkAlignment rather than a GtkDrawingArea
      	to draw the swatch in to avoid having an extraneous window.
      
      	* gtk/gtkcolorsel.c (color_sample_draw_sample): Actually se tthe
      	color when !has_opacity.
      
      2005-05-10  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkcairo.[ch] gdk/gdkcolor.[ch] gdk/Makefile.am: Add source
      	files for Cairo convenience functionality.
      
      	* gdk/gdkcairo.h (gdk_cairo_rectangle, gdk_cairo_region): Add a
      	convenience functions to add GdkRectangle, GdkRegion to a cairo path.
      
      	* gdk/gdkwindow.c gdk/gdkgc.c gtk/gtkcolorsel.c gtk/gtkiconview.c
      	gtk/gtkstyle.c: Use gdk_cairo_rectangle/region().
      
      	* gdk/gdkcairo.[ch] gdk/gdkdrawable.h gdk/gdkdraw.c: Rename
      	gdk_drawable_create_cairo_context() to gdk_cairo_create().
      
      	* gdk/gdkcairo.c gdk/gdkpixbuf.h gdk/gdkpixbuf-render.c:
      	Rename gdk_pixbuf_set_as_cairo_source() to
      	gdk_cairo_set_source_pixbuf().
      
      	* gdk/gdkdraw.c gdk/gdkpango.c gtk/gtkcolorsel.c gtk/gtkhruler.c
      	gtk/gtkhsv.c gtk/gtkiconview.c gtk/gtkstyle.c gtk/gtkvruler.c:
      	Adjust for renames.
      
      	* gdk/gdk.symbols: Update.
      
      	* gtk/gtkwidget.c (gtk_widget_queue_shallow_draw): Fix
      	coordinate system problem that was causing the wrong portions
      	to be invalidated.
      
      	* gtk/gtkcellrenderer.c (gtk_cell_renderer_render)
      	gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render)
      	gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_render)
      	gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render)
      	gtk/gtkcellview.c (gtk_cell_view_expose)
      	gtk/gtkdnd.c (gtk_drag_highlight_expose)
      	gtk/gtkentry.c (gtk_entry_draw_text)
      	gtk/gtktextview.c (text_window_invalidate_rect): Some cairoization.
      
      	* gtk/gtkcalendar.[ch]: Beat into something roughly resembling
      	GTK+ style ... use instance-private data and standard names for
      	private structure, etc. Move function docs inline.
      
      	* gtk/gtkcalendar.[ch]: Switch to drawing everything in
      	expose. Switch drawing to Cairo.
      
      	* gtk/gtkcalendar.c (gtk_calendar_freeze): Deprecate
      	gtk_calendar_freeze/thaw
      dda40ca7
  2. 09 May, 2005 1 commit
    • Owen Taylor's avatar
      Fill in unused bits so they can be used for the depth-32 target case. · 485fd851
      Owen Taylor authored
      2005-05-09  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdkrgb.c (gdk_rgb_convert_0888_br, gdk_rgb_convert_8880_br):
              Fill in unused bits so they can be used for the depth-32 target case.
              Rewrite so that that gives a marginal speedup rather than a
              marginal slowdown. (on x86)
      
              * gdk/gdkscreen.h gdk/x11/gdkscreen-x11.[ch] gdk/x11/gdkvisual-x11.c:
              Add gdk_screen_get_rgba_colormap/visual to get a visual for
              windows with an alpha channel, if one exists.
      
              * gdk/win32/gdkscreen-win32.c gdk/linux-fb/gdkscreen-fb.c:
              Stub out gdk_screen_get_rgba_colormap/visual.
      
              * gdk/x11/gdkcolor-x11.c (gdk_colormap_alloc_colors): computation of
              "unused" wasn't right for depth == 32, since it depended on
              shifting by 32.
      
              * gdk/gdkrgb.c: Fill in alpha bits with 1s. (Based on patch from
              Keith Packard,
              http://mail.gnome.org/archives/gtk-devel-list/2004-June/msg00080.html)
      
              * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_get_picture):
              Implement again, without using Xft.
      
              * tests/testgtk.c: Add a test for windows with an alpha channel.
      485fd851
  3. 02 May, 2005 1 commit
    • Owen Taylor's avatar
      Add a draw-border style property to allow themes to draw outside the · 788bbf52
      Owen Taylor authored
      2005-04-28  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkwidget.c: Add a draw-border style property to allow
      	themes to draw outside the widget's allocation.
      
      	* gdk/gdkwindow.c gtk/gtkstyle.c: Remove some save/restore pairs
      	that were working around the clip-leakage bug in Cairo.
      
      	* gtk/gtkstyle.c: Use cairo_fill_preserve() rathe than
      	save/fill/restore.
      
      	* gdk/gdkgc.c gdk/gdkinternals.h: Add _gdk_gc_update_context()
      	That updates a Cairo context to match a GC.
      
      	* gdk/gdkdraw.c: Use _gdk_gc_update_context() to add support
      	for tiles/stipples/clipping to gdk_draw_glyphs(),
      	gdk_draw_trapezoids().
      
      	* gdk/gdkpango.c: Use _gdk_gc_update_context() instead of internal
      	implementation of stipples. Use one cairo_t across the entire
      	drawing operation. Replace cairo_matrix_create() with
      	stack-allocated matrices.
      
      	* gdk/gdkgc.c gdk/gdkinternals.h gdk/x11/gdkgc-x11.c
      	gdk/win32/gdkgc-win32.c: Save various aspects of the
      	GC state (fill, tile, stipple, foreground, background, clip region)
      	in instance-private-data for future use. Add getters.
      	Get rid of _gdk_windowing_gc_get_foreground() function implemented
      	by the backends.
      
      	* gdk/gdkgc.c gdk/gdkinternals.h gdk/x11/gdkgc-x11.c
      	gdk/win32/gdkgc-win32.c gdk/linux-fb/gdkgc-fb.c: Add
      	_gdk_gc_init() to do initial setup of the GC from values;
      	fixes some problems from drawable redirection.
      
      	* gdk/gdkgc.c gdk/gdkinternals.h gdk/x11/gdkgc-x11.c
      	gdk/win32/gdkgc-win32.c gdk/linux-fb/gdkgc-fb.c: Move
      	gdk_gc_copy() and gdk_gc_set_clip_{region,rectangle}() into
      	the generic code, add _gdk_windowing_gc_copy(),
      	_gdk_windowing_gc_set_clip_region() to do backend specific
      	stuff.
      
      	* gdk/x11/{gdkprivate-x11.h,gdkgc-x11.c.c,gdkdrawable-x11.c}
      	gdk/win32/{gdkprivate-win32.h,gdkgc-x11.c.c,gdkdrawable-x11.c}
      	gdk/linux-fb/{gdkprivate-fb.h,gdkgc-fb.c.c,gdkdrawable-fb.c}:
      	Don't duplicate state that now is stored by the generic code.
      
      	* gdk/gdk.symbols Update
      788bbf52
  4. 10 Apr, 2005 1 commit
  5. 04 Apr, 2005 1 commit
    • Tor Lillqvist's avatar
      New debugging function, to log a clipboard format name symbolically. · 0b2ac32c
      Tor Lillqvist authored
      2005-04-04  Tor Lillqvist  <tml@novell.com>
      
      	* gdk/win32/gdkmain.c (_gdk_win32_cf_to_string): New debugging
      	function, to log a clipboard format name symbolically.
      	(_gdk_win32_data_to_string): Also new, to log random data bytes.
      
      	Implement delayed rendering on Win32, specifically for transfering
      	images through the clipboard from GTK+ apps to other
      	apps (#168173, implementation by Ivan Wong):
      
      	* gdk/win32/gdkevents-win32.c (gdk_event_translate):
      	Handle WM_RENDERFORMAT.
      
      	* gdk/win32/gdkprivate-win32.h
      	* gdk/win32/gdkglobals-win32.c: Add _format_atom_table,
      	_delayed_rendering_data and _image_bmp.
      
      	* gdk/win32/gdkmain-win32.c: Initialize _image_bmp.
      
      	* gdk/win32/gdkproperty-win32.c (gdk_property_change):
      	Accept formats other than GDK_TARGET_STRING or _utf8_string, and
      	assume they are handled through delayed rendering.
      
      	* gdk/win32/gdkselection-win32.c (gdk_selection_convert):
      	Return all available formats (including those registered by GTK+
      	apps) on request_targets.
      	(gdk_selection_property_get): We should append a zero byte like
      	X11 does.
      	(gdk_win32_selection_add_targets): New function, for
      	gtkselection's use. Win32 requires that the clipboard owner
      	registers all valid formats even if the owner wants delayed
      	rendering.
      	(_gdk_win32_selection_convert_to_dib): New function. Convert
      	images to DIB using gdk-pixbuf.
      
      	* gdk/win32/gdkwin32.h: Declare gdk_win32_selection_add_targets().
      
      	* gtk/gtkselection.c (gtk_selection_add_target,
      	gtk_selection_add_targets): Call gdk_win32_selection_add_targets()
      	to register target formats.
      
      	* gdk/gdk.symbols: Add gdk_win32_selection_add_targets().
      0b2ac32c
  6. 17 Mar, 2005 1 commit
    • Owen Taylor's avatar
      Switch set_cairo_target() virtual function to ref_cairo_surface() · 09d7eafb
      Owen Taylor authored
      2005-03-15  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkpixmap.c gdk/gdkwindow.c
      	gdk/x11/gdkdrawable-x11.c gdk/x11/gdkpixmap-x11.c gdk/x11/gdkwindow-x11.c
      	gdk/gdkinternals.h: Switch set_cairo_target() virtual function to
      	ref_cairo_surface()
      
      	* gdk/gdkdrawable.h gdk/gdkdraw.h: Switch set_cairo_target() virtual
      	function to create_cairo_context()
      
      	* gdk/gdkwindow.c: Clear double buffer pixmaps with Cairo.
      
      	* gdk/x11/gdkwindow-x11.c: Keep all components in GdkWindowObject.bg_color,
      	not just the pixel.
      
      	* tests/testcairo.c: Update for create_cairo_context()
      
      	* gdk/gdkdraw.c (gdk_draw_trapezoids, gdk_draw_glyphs[_transformed]):
      	Reimplement in terms of Cairo, bypass the vtable entries.
      
      	* gdk/x11/gdkdrawable-x11.[ch] gdk/x11/gdkdisplay-x11.[ch]
      	gdk/x11/gdkgc-x11.c gdk/x11/gdkpango-x11.c
      	gdk/x11/gdkprivate-x11.h gdk/x11/Makefile.am: Remove
      	implementation of draw_trapezoids / draw_glyphs[_transformed].
      
      	* gdk/gdkpango.c: Switch GdkPangoRenderer to use Cairo
      
      	* gdk/gdkpango.c gdk/x11/gdkpango-x11.c: Move
      	gdk_pango_context_get_for_screen() into the backend independent code.
      
      	* gdk/x11/gdkdrawable-x11.[ch]: Remove Xft use, use RENDER directly
      	for drawing images.
      
      	* gdk/gdkdrawable.h gdk/x11/gdkdrawable-x11.c: Remove
      	gdk_draw_rectangle_alpha_libgtk_only.
      
      	* gdk/gdkpixbuf.h gdk/gdkpixbuf-render.c: Add
      	gdk_pixbuf_set_as_cairo_source()
      
      	* gdk/gdk.symbols: Update
      
      	* gtk/gtkcolorsel.c gtk/gtkhsv.c gtk/gtkiconview.c gtk/gtkruler.[ch]
      	gtk/gtk[hv]ruler.c: Convert to Cairo rendering.
      
      	* gtk/gtkstyle.c (gtk_default_draw_check, gtk_default_draw_focus,
      	gtk_default_draw_option): Switch to Cairo. Simplify the checkbutton,
      	radio button style for now to get something more scalable.
      
      	*  gtk/gtksettings.c: #if 0 out the code to use PangoXft for hinting/
      	antialiasing/dpi settings.
      09d7eafb
  7. 16 Mar, 2005 1 commit
    • Matthias Clasen's avatar
      Make PLT-reduction work with gcc4, and don't include everything in · 2a2d769d
      Matthias Clasen authored
      2005-03-15  Matthias Clasen  <mclasen@redhat.com>
      
      	Make PLT-reduction work with gcc4, and don't include
      	everything in gdkalias.h:
      
      	* gdk/gdk.symbols: Group symbols by header and source file.
      	* gdk/makegdkalias.pl: Protect definitions by the same
      	preprocessor symbols used to guard the headers. Move
      	the alias declarations to a separate file which is
      	produced when calling makegdkalias.pl -def
      	* gdk/Makefile.am (gdkaliasdef.c): Add a rule to generate this
      	file.
      	* gdk/*.c, gdk/x11/*.c: Include gdkalias.h after the other
      	headers, include gdkaliasdef.c at the bottom.
      2a2d769d
  8. 19 Jan, 2005 1 commit
  9. 18 Jan, 2005 1 commit
    • Matthias Clasen's avatar
      Add pointer warping to GDK. (#160437) · 3f8461b7
      Matthias Clasen authored
      2005-01-18  Matthias Clasen  <mclasen@redhat.com>
      
      	* gdk/gdkdisplay.h:
      	* gdk/x11/gdkwindow-x11.c (gdk_display_warp_pointer):
      	* gdk/win32/gdkwindow-win32.c (gdk_display_warp_pointer): Add
      	pointer warping to GDK.  (#160437)
      
      	* gtk/gtkcolorsel.c (key_press): Use gdk_display_warp_pointer.
      3f8461b7
  10. 28 Nov, 2004 1 commit
    • Matthias Clasen's avatar
      Mark as const. · fdec8714
      Matthias Clasen authored
      2004-11-28  Matthias Clasen  <mclasen@redhat.com>
      
      	* gdk/gdkvisual.h (gdk_visual_get_type):
      	* gdk/gdkscreen.h (gdk_screen_get_type):
      	* gdk/gdkinput.h (gdk_device_get_type):
      	* gdk/gdk.h (gdk_rectangle_get_type):
      	* gdk/gdkfont.h (gdk_font_get_type):
      	* gdk/gdkevents.h (gdk_event_get_type):
      	* gdk/gdkdrawable.h (gdk_drawable_get_type):
      	* gdk/gdkdisplay.h (gdk_display_get_type):
      	* gdk/gdkcursor.h (gdk_cursor_get_type):
      	* gdk/gdkcolor.h (gdk_color_get_type): Mark as const.
      
      	* gdk/gdk.symbols:
      	* gdk/Makefile.am (stamp-gdkenumtypes.h): Mark get_type() functions
      	generated by glib-mkenums as const.
      fdec8714
  11. 23 Nov, 2004 1 commit
    • Matthias Clasen's avatar
      Mark as const. · b69987f2
      Matthias Clasen authored
      2004-11-23  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkuimanager.h (gtk_ui_manager_get_type):
      	* gtk/gtktreeview.h (gtk_tree_view_get_type):
      	* gtk/gtktreeviewcolumn.h (gtk_tree_view_column_get_type):
      	* gtk/gtktreestore.h (gtk_tree_store_get_type):
      	* gtk/gtktreeselection.h (gtk_tree_selection_get_type):
      	* gtk/gtktreemodelfilter.h (gtk_tree_model_filter_get_type):
      	* gtk/gtktreemodel.h (gtk_tree_iter_get_type):
      	(gtk_tree_path_get_type):
      	(gtk_tree_row_reference_get_type):
      	* gtk/gtktoolitem.h (gtk_tool_item_get_type):
      	* gtk/gtktoolbutton.h (gtk_tool_button_get_type):
      	* gtk/gtktoggleaction.h (gtk_toggle_action_get_type):
      	* gtk/gtkthemes.h (gtk_theme_engine_get_type):
      	* gtk/gtktextiter.h (gtk_text_iter_get_type):
      	* gtk/gtksettings.h (gtk_settings_get_type):
      	* gtk/gtkselection.h (gtk_selection_data_get_type):
      	* gtk/gtkradioaction.h (gtk_radio_action_get_type):
      	* gtk/gtkmenutoolbutton.h (gtk_menu_tool_button_get_type):
      	* gtk/gtkliststore.h (gtk_list_store_get_type):
      	* gtk/gtkiconview.h (gtk_icon_view_get_type):
      	* gtk/gtkicontheme.h (gtk_icon_info_get_type):
      	* gtk/gtkiconfactory.h (gtk_icon_factory_get_type):
      	(gtk_icon_set_get_type):
      	(gtk_icon_source_get_type):
      	* gtk/gtkfilesystemwin32.h (gtk_file_system_win32_get_type):
      	* gtk/gtkfilesystemunix.h (gtk_file_system_unix_get_type):
      	* gtk/gtkfilesystem.h (gtk_file_folder_get_type):
      	(gtk_file_info_get_type, gtk_file_path_get_type):
      	(gtk_file_system_get_type):
      	* gtk/gtkfilefilter.h (gtk_file_filter_get_type):
      	* gtk/gtkfilechooserwidget.h (gtk_file_chooser_widget_get_type):
      	* gtk/gtkfilechooser.h (gtk_file_chooser_get_type):
      	* gtk/gtkfilechooserdialog.h (gtk_file_chooser_dialog_get_type):
      	* gtk/gtkexpander.h (gtk_expander_get_type):
      	* gtk/gtkentrycompletion.h (gtk_entry_completion_get_type):
      	* gtk/gtkcombobox.h (gtk_combo_box_get_type):
      	* gtk/gtkcomboboxentry.h (gtk_combo_box_entry_get_type):
      	* gtk/gtkclipboard.h (gtk_clipboard_get_type):
      	* gtk/gtkcellview.h (gtk_cell_view_get_type):
      	* gtk/gtkcellrenderertoggle.h (gtk_cell_renderer_toggle_get_type):
      	* gtk/gtkcellrenderertext.h (gtk_cell_renderer_text_get_type):
      	* gtk/gtkcellrendererprogress.h (gtk_cell_renderer_progress_get_type):
      	* gtk/gtkcellrendererpixbuf.h (gtk_cell_renderer_pixbuf_get_type):
      	* gtk/gtkcellrenderercombo.h (gtk_cell_renderer_combo_get_type):
      	* gtk/gtkcelllayout.h (gtk_cell_layout_get_type):
      	* gtk/gtkactiongroup.h (gtk_action_group_get_type):
      	* gtk/gtkaction.h (gtk_action_get_type):
      	* gtk/gtkaccessible.h (gtk_accessible_get_type):
      	* gtk/gtkaccelmap.h (gtk_accel_map_get_type):
      	* gtk/gtkaccelgroup.h (gtk_accel_group_get_type):
      	* gtk/gtkmessagedialog.h (gtk_message_dialog_get_type): Mark as const.
      
      	* gtk/gtkicontheme.h:  Don't mark gtk_icon_theme_error_quark()
      	as const, to be consistent with all the other error_quark
      	functions. (technically they are const, but since these are
      	called only in error paths, giving the compiler better
      	optimization opportunities doesn't matter much)
      
      	* gtk/gtk.symbols:
      	* gdk/gdk.symbols: Add attribute annotations.
      
      	* gtk/makegtkalias.pl:
      	* gdk/makegdkalias.pl: Keep attribute annotations, but strip PRIVATE.
      
      	* gtk/Makefile.am (gtk.def):
      	* gdk/Makefile.am (gdk.def): Strip attribute annotations, but keep
      	PRIVATE.
      b69987f2
  12. 21 Nov, 2004 1 commit
    • Owen Taylor's avatar
      Add GdkPangoRenderer, a subclass of PangoRenderer targeting GDK drawables. · 3d737ee8
      Owen Taylor authored
      Sat Nov 20 15:13:51 2004  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkpango.[ch]: Add GdkPangoRenderer, a subclass of
      	PangoRenderer targeting GDK drawables. Use to implement the old
      	gdk_draw_layout() and friends.
      
      	* gdk/gdkdraw.c gdk/gdkdrawable.h gdk/gdkwindow.c gdk/gdkpixmap.c:
      	Add gdk_draw_glyphs_transformed() gdk_draw_trapezoids() and
      	the corresponding members of GdkDrawableClass. Add a fallback
      	implementation of gdk_draw_trapezoids() in terms of pixbufs.
      
      	* gdk/gdkwindowing.h gdk/x11/gdkg-x11.h: Add
      	_gdk_windowing_gc_get_foreground() to enable the fallback
      	trapezoid implementation.
      
      	* gdk/x11/gdkdrawable-x11.c gdk/x11/gdkdisplay-x11.h: Implement
      	draw_glyph_transformed,	draw_trapezoids.
      
      	* gdk/x11/gdkdrawable-x11.[ch]: Add
      	_gdk_x11_drawable_draw_xtrapezoids, _gdk_x11_drawable_draw_xft_glyphs
      	for use of GdkX11Renderer.
      
      	* gdk/x11/gdkgc-x11.c gdk/x11/gdkprivate-x11.h: Implement
      	GDK_TILED, GDK_STIPPLED, GDK_OPAQUE_STIPPLED in the RENDER codepath.
      
      	* gdk/gdkpango-x11.c: Add GdkX11Renderer... a subclass of
      	PangoXftRenderer that does tiles/stipples and fallback rendering
      	of trapezoids without the RENDER extension.
      
      	* gdk/gdkpango-x11.c gdk/x11/gdkscreen-x11.[ch] _gdk_x11_renderer_get:
      	Add _gdk_x11_renderer_get() to get a singleton GdkX11Renderer
      	for the screen.
      
      	* gdk/x11/gdkdrawable-x11.c (get_impl_drawable): Fix a None/NULL
      	confusion.
      
      	* gtk/gtklabel.[ch] gtk/gtk.symbols: Add gtk_label_set/get_angle(),
      	and an ::angle property.
      
      	* gtk/gtklabel.c: Remove #if 0'd dead code gtk_label_paint_word().
      
      	* gtk/gtktextdisplay.c: Switch to using a GtkTextRenderer subclass
      	of GdkPangoRenderer for drawing.
      
      	* gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c: Switch to using
      	gtk_attr_shape_new_with_data() to store backreferences to
      	embedded pixmaps and widgets. Leave line_display->shaped_objects
      	around for backwords compatibility.
      
      	* gdk/gdkpango.[ch] (gdk_pango_context_set_colormap): Describe
      	as deprecated, remove implementation.
      
      	* gtk/gtkwidget.c (gtk_widget_create_pango_context): Remove
      	call to gdk_pango_context_set_colormap.
      
      	* demos/gtk-demo/Makefile.am demos/gtk-demo/rotated_text.c: Add
      	a demo showing drawing rotated text.
      
      	* tests/testgtk.c: Add a rotated-label test, and also a rotated
      	drawing test (differs from demos/gtk-demo/rotated_text by also
      	using a tile)
      3d737ee8
  13. 25 Oct, 2004 1 commit
    • Anders Carlsson's avatar
      New API to handle the clipboard manager. · 06c4bb44
      Anders Carlsson authored
      2004-10-25  Anders Carlsson  <andersca@imendio.com>
      
      	* gdk/gdk.symbols:
      	* gdk/gdkdisplay.h:
      	* gdk/x11/gdkdisplay-x11.c:
      	(gdk_display_supports_clipboard_persistence),
      	(gdk_display_store_clipboard):
      	New API to handle the clipboard manager.
      
      	* gtk/gtk.symbols:
      	* gtk/gtkclipboard.c: (gtk_clipboard_class_init),
      	(gtk_clipboard_finalize), (selection_clear_event_cb),
      	(clipboard_unset), (gtk_clipboard_set_text),
      	(gtk_clipboard_request_targets), (gtk_clipboard_wait_for_targets),
      	(clipboard_peek), (gtk_clipboard_owner_change),
      	(gtk_clipboard_wait_is_target_available),
      	(gtk_clipboard_store_timeout), (gtk_clipboard_set_can_store),
      	(gtk_clipboard_selection_notify), (gtk_clipboard_store),
      	(_gtk_clipboard_store_all):
      	* gtk/gtkclipboard.h:
      	Add API for clipboard persistence and implement it, also add
      	gtk_clipboard_wait_is_target_available.
      
      	* gtk/gtkmain.c: (gtk_main):
      	Call _gtk_clipboard_store_all before exiting.
      06c4bb44
  14. 05 Sep, 2004 1 commit
    • Anders Carlsson's avatar
      Add new functions · 6661399c
      Anders Carlsson authored
      2004-09-05  Anders Carlsson  <andersca@gnome.org>
      
      	* gdk/gdk.symbols:
      	* gtk/gtk.symbols:
      	Add new functions
      
      2004-09-05  Anders Carlsson  <andersca@gnome.org>
      
      	* gdk/gdk.c: (gdk_arg_class_cb), (gdk_arg_name_cb),
      	(gdk_add_option_entries_libgtk_only), (gdk_pre_parse_libgtk_only),
      	(gdk_parse_args):
      	* gdk/gdk.h:
      	* gdk/gdkinternals.h:
      	* gdk/linux-fb/gdkmain-fb.c: (_gdk_windowing_init):
      	* gdk/win32/gdkmain-win32.c: (_gdk_windowing_init):
      	* gdk/x11/gdkdisplay-x11.c: (gdk_display_open):
      	* gdk/x11/gdkmain-x11.c: (_gdk_windowing_init):
      	* gtk/gtkmain.c: (gtk_arg_debug_cb), (gtk_arg_no_debug_cb),
      	(gtk_arg_module_cb), (gtk_arg_warnings_cb),
      	(do_pre_parse_initialization), (do_post_parse_initialization),
      	(pre_parse_hook), (post_parse_hook), (gtk_get_option_group),
      	(gtk_init_with_args), (gtk_parse_args):
      	* gtk/gtkmain.h:
      	Make gtk argument parsing use goption. Add gtk_get_option_group and
      	gtk_init_with_args.
      
      	* tests/testtreemodel.c: (main):
      	Use gtk_init_with_args.
      6661399c
  15. 17 Aug, 2004 1 commit
    • Matthias Clasen's avatar
      No need for INCLUDE_INTERNAL_SYMBOLS anymore. · 54fb7a7b
      Matthias Clasen authored
      2004-08-17  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/abicheck.sh: No need for INCLUDE_INTERNAL_SYMBOLS anymore.
      
      	* gdk/gdk.symbols: Don't use #if defined().
      
      	* gdk/Makefile.am (gdkalias.h):
      	* gtk/Makefile.am (gtkalias.h): Don't use cpp to filter gtk.symbols.
      
      	* gdk/makegdkalias.pl:
      	* gtk/makegtkalias.pl: Move the #ifdef processing into the perl script, and
      	keep the #ifdefs which differentiate between platforms.
      
      	* gtk/Makefile.am (gtk_private_h_sources): Remove gtkinternals.h, it is no
      	longer needed.
      54fb7a7b
  16. 09 Aug, 2004 1 commit
    • Matthias Clasen's avatar
      Add hidden aliases for exported symbols which are used internally in order · 0742ff3a
      Matthias Clasen authored
      Mon Aug  9 15:41:17 2004  Matthias Clasen  <maclas@gmx.de>
      
      	Add hidden aliases for exported symbols which are
      	used internally in order to get rid of many PLT
      	entries.  (#145519, Arjan van de Ven)
      
      	* gdk/Makefile.am: Add rules to generate gdk.def and
      	gdkalias.h from gdk.symbols, and make make check check
      	the abi with abicheck.sh.
      
      	* gdk/gdk.symbols: New file. Definition of the GDK ABI.
      	The file can be processed by cpp to filter out certain
      	subsets of symbols.
      
      	* gdk/abicheck.sh: New file. Script to check the actually
      	symbols exported from libgdk-x11.2.0.so against the symbols
      	found in gdk.symbols.
      
      	* gdk/makegdkalias.pl: New file. Perl script to generate the
      	header containing the alias definitions for internally used
      	exported symbols from a list of symbols.
      
      	* gdk/*.c, gdk/x11/*.c: Include gdkalias.h
      0742ff3a
  17. 06 Aug, 2004 1 commit
    • Matthias Clasen's avatar
      Really fix the initialization of the target list. · 39469f8f
      Matthias Clasen authored
      2004-08-06  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkdnd.c (gtk_drag_dest_set, gtk_drag_source_set): Really
      	fix the initialization of the target list.
      
      	Support XDND v5. (#10220, Owen Taylor)
      
      	* gdk/x11/gdkdnd-x11.c: Record the XDND version and whether the
      	drop was successful in the GdkDragContextPrivateX11 struct.
      	(xdnd_finished_filter): Store the success status of the drop
      	for an XDND version 5 interaction. For other versions, always
      	assume the drop was successful.
      	(xdnd_check_dest): Return the protocol version.
      	(_gdk_drag_get_protocol_for_display): Return the protocol version.
      	(gdk_drag_find_window_for_screen): Store the used protocol version
      	in the GdkDragContext.
      	(xdnd_send_enter): Send the used protocol version from the context,
      	instead of hardwiring 3.
      	(xdnd_enter_filter): Accept protocol versions >= 3 and store the
      	used protocol version in the context.
      
      	* gdk/gdkdnd.h:
      	* gdk/x11/gdkdnd-x11.c (gdk_drag_drop_succeeded): New function
      	to find out whether a drop was successful.
      39469f8f
  18. 20 May, 2004 1 commit
  19. 18 May, 2004 2 commits
    • Matthias Clasen's avatar
      Add a few more symbols. · 114463d5
      Matthias Clasen authored
      114463d5
    • Matthias Clasen's avatar
      Check for XFIXES extension. · 7b8616bf
      Matthias Clasen authored
      2004-05-18  Matthias Clasen  <mclasen@redhat.com>
      
      	* configure.in: Check for XFIXES extension.
      
      	* gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add
      	a gboolean have_xfixes member.
      
      	* gdk/x11/gdkdisplay-x11.c (gdk_display_open): Register
      	XFIXES events and set have_xfixes.
      
      	* gdk/gdkevents.h (GdkEventType): Add GDK_OWNER_CHANGE.
      	(GdkEventOwnerChange): New event struct for owner change events.
      	(GdkOwnerChange): New enum for the reason field of GdkEventOwnerChange.
      
      	* gdk/x11/gdkevents-x11.c (gdk_event_translate): Translate
      	XFixesSelectionNotify events into GdkEventOwnerChange events.
      
      	* gdk/gdkdisplay.h:
      	* gdk/x11/gdkdisplay-x11.c (gdk_display_supports_selection_notification):
      	(gdk_display_request_selection_notification): New api
      	to support selection ownership notification.
      
      	* gtk/gtkclipboard.h:
      	* gtk/gtkclipboard.c (_gtk_clipboard_handle_event): New private
      	api to handle owner change events.
      	(clipboard_peek): Refactored out the body of
      	gtk_clipboard_get_for_display() for use in _gtk_clipboard_handle_event().
      
      	* gtk/gtkmain.c (gtk_main_do_event): Handle GDK_OWNER_CHANGE events
      	by calling _gtk_clipboard_handle_event().
      7b8616bf
  20. 10 May, 2004 1 commit
    • Matthias Clasen's avatar
      Add gtk_menu_get_for_attach_widet, gtk_tree_view_get_fixed_height_mode, · 3002f39f
      Matthias Clasen authored
      2004-05-10  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtk-sections.txt: Add gtk_menu_get_for_attach_widet,
      	gtk_tree_view_get_fixed_height_mode,
      	gtk_tree_view_set_fixed_height_mode,
      	gtk_tree_view_get_hover_selection,
      	gtk_tree_view_set_hover_selection
      
      	* gdk/gdk-sections.txt: Add gdk_window_set_user_time().
      
      	* gdk-pixbuf/gdk-pixbuf.sgml:
      	* gtk/gtk-docs.sgml:
      	* gdk/gdk-docs.sgml: Add an index for 2.6 additions.
      3002f39f
  21. 06 May, 2004 1 commit
    • Elijah Newren's avatar
      Changes to support do-not-focus-on-map hint in conjunction with · 5502f77e
      Elijah Newren authored
      2004-05-05  Elijah Newren  <newren@math.utah.edu>
      
      	Changes to support do-not-focus-on-map hint in conjunction with
      	_NET_WM_USER_TIME (#115650):
      
      	* gdk/gdkwindow.h (struct _GdkWindowObject): Add a new boolean
      	field focus_on_map
      
      	* gdk/gdkwindow.h (gdk_window_set_accept_focus): New function to
      	set it.
      
      	* gtk/gtkwindow.[hc]: Add a boolean property "focus_on_map"
      	and gtk_window_get_focus_on_map() and gtk_window_set_focus_on_map().
      
      	* gdk/win32/gdkwindow-win32.c (gdk_window_new):
      	* gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
      	* gdk/x11/gdkwindow-x11.c (gdk_window_new):
      	Initialize the focus_on_map field to TRUE.
      
      	* gdk/win32/gdkwindow-win32.c (gdk_window_set_focus_on_map):
      	* gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_focus_on_map):
      	* gdk/x11/gdkwindow-x11.c (gdk_window_set_focus_on_map):
      	* gdk/x11/gdkwindow-x11.c (setup_toplevel_window):
      	Implementations for the various backends. The Win32 and linux-fb
      	implementations set the focus_on_map field, but don't use it yet
      	to actually implement noinput windows. The X implementation sets
      	_NET_WM_USER_TIME to 0 if focus_on_map is FALSE (see the EWMH).
      
      	* gdk/x11/gdkwindow-x11.h:
      	* gdk/x11/gdkevents-x11.c (set_user_time):
      	* gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event):
      	* gdk/x11/gdkwindow-x11.c (gdk_x11_window_set_user_time):
      	s/_gdk_x11_window_set_user_time/gdk_x11_window_set_user_time/,
      	since we want that function to be part of the public API.
      5502f77e
  22. 16 Dec, 2003 1 commit
    • Matthias Clasen's avatar
      Do not interpret distant clicks as double-clicks (#116541, Bernhard · fbb0ba1a
      Matthias Clasen authored
      Tue Dec 16 01:46:46 2003  Matthias Clasen  <maclas@gmx.de>
      
      	Do not interpret distant clicks as double-clicks  (#116541,
      	Bernhard Walle):
      
      	* gdk/gdkdisplay.h (struct GdkDisplay): Add new fields
      	double_click_distance, button_x and button_y.
      	* gdk/gdkdisplay.c (gdk_display_init): Initialize the new fields.
      
      	* gdk/gdkdisplay.h:
      	* gdk/gdkevents.c (gdk_display_set_double_click_distance):
      	New function to set the double click distance on a display.
      
      	* gdk/gdkevents.c: Take double click distance into account
      	when generating single, double or triple clicks.
      
      	* gtk/gtksettings.c: Add new setting "gtk-double-click-distance".
      
      	* gdk/x11/gdkevents-x11.c: Add the XSetting
      	"Net/DoubleClickDistance" and map it to "gtk-double-click-distance".
      fbb0ba1a
  23. 14 Dec, 2003 1 commit
    • Matthias Clasen's avatar
      Rename from _gdk_x11_register_event_type(), added API docs. · 1014c413
      Matthias Clasen authored
      Sun Dec 14 01:28:23 2003  Matthias Clasen  <maclas@gmx.de>
      
      	* gdk/x11/gdkprivate-x11.h:
      	* gdk/x11/gdkx.h:
      	* gdk/x11/gdkevents-x11.c (gdk_x11_register_standard_event_type):
      	Rename from _gdk_x11_register_event_type(), added API docs.
      	* gdk/x11/gdkinput-x11.c (_gdk_input_common_init):
      	* gdk/x11/gdkimage-x11.c (_gdk_windowing_image_init): Adjust
      	all callers.  (#121471, Bill Haneman)
      1014c413
  24. 11 Dec, 2003 1 commit
  25. 10 Dec, 2003 1 commit
    • Matthias Clasen's avatar
      Changes to allow "no input" windows (#64613): · 5fb61f30
      Matthias Clasen authored
      Thu Dec 11 00:35:12 2003  Matthias Clasen  <maclas@gmx.de>
      
      	Changes to allow "no input" windows (#64613):
      
      	* gdk/gdkwindow.h (struct _GdkWindowObject): Add a new boolean
      	field accept_focus.
      
      	* gdk/gdkwindow.h (gdk_window_set_accept_focus): New function to
      	set it.
      
      	* gtk/gtkwindow.[hc]: Add a boolean property "accept_focus"
      	and gtk_window_get_focus() and gtk_window_set_focus().
      
      	* gdk/win32/gdkwindow-win32.c (gdk_window_new):
      	* gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
      	* gdk/x11/gdkwindow-x11.c (gdk_window_set_new):
      	Initialize the accept_focus field to TRUE.
      
      	* gdk/win32/gdkwindow-win32.c (gdk_window_set_accept_focus):
      	* gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_accept_focus):
      	* gdk/x11/gdkwindow-x11.c (gdk_window_set_accept_focus):
      	Implementations for the various backends. The Win32 and linux-fb
      	implementations set the accept_focus field, but don't use it yet
      	to actually implement noinput windows. The X implementation updates
      	the WM_HINTS to select the globally active input model (see the
      	ICCCM) if accept_focus is FALSE.
      
      	* gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Ignore the
      	WM_TAKE_FOCUS message if accept_focus is FALSE.
      5fb61f30
  26. 09 Dec, 2003 1 commit
    • Matthias Clasen's avatar
      Improve the GDK API for dealing with group leaders (#119375): · 3f6441ea
      Matthias Clasen authored
      Wed Dec 10 00:06:24 2003  Matthias Clasen  <maclas@gmx.de>
      
      	Improve the GDK API for dealing with group leaders (#119375):
      
      	* gdk/gdkwindow.h:
      	* gdk/x11/gdkwindow-x11.c (gdk_window_get_group): New function to
      	get the group leader of a toplevel window as a GdkWindow.
      
      	* gdk/gdkdisplay.h:
      	* gdk/x11/gdkdisplay-x11.c (gdk_display_get_default_group): New
      	function to get the default group leader as a GdkWindow.
      
      	* gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add a field for
      	the GdkWindow of the default group leader.
      
      	* gdk/x11/gdkdisplay-x11.c (gdk_display_open): Construct the GdkWindow
      	for the default group leader.
      3f6441ea
  27. 17 Nov, 2003 1 commit
    • Matthias Clasen's avatar
      Fix for #119555, Peter Zelesny: · d3b444a4
      Matthias Clasen authored
      Tue Nov 18 00:12:55 2003  Matthias Clasen  <maclas@gmx.de>
      
      	Fix for #119555, Peter Zelesny:
      
      	* gdk/gdkdrawable.h: Declare gdk_drawable_copy_to_image.
      	* gdk/gdkdraw.c (gdk_drawable_copy_to_image): Make public
      	by removing the _ prefix.
      	* gdk/gdkdraw.c, gdk/gdkpixbuf-drawable.c, gdk/gdkpixmap.c,
      	gdk/gdkwindow.c: Adjust all callers.
      d3b444a4
  28. 30 Sep, 2003 1 commit
    • Matthias Clasen's avatar
      Document the "direction-changed" and "keys-changed" signals. · f582c04a
      Matthias Clasen authored
      2003-09-30  Matthias Clasen  <maclas@gmx.de>
      
      	* gdk/gdkkeys.c (gdk_keymap_class_init): Document the
      	"direction-changed" and "keys-changed" signals.
      
      	* gdk/gdkscreen.c (gdk_screen_class_init): Document the
      	"size-changed" signal.
      
      	* gdk/gdkdisplaymanager.c (gdk_display_manager_class_init):
      	Document the "display-opened" signal.
      
      	* gdk/gdkdisplay.c (gdk_display_close): Doc tweak.
      	(gdk_display_class_init): Document the "closed" signal.
      
      	* gdk/tmpl/keys.sgml: Small addition.
      
      	* gdk/gdk-sections.txt: Add GdkDisplayClass and GdkScreenClass.
      
      	* gdk-pixbuf/gdk-pixbuf-sections.txt: Add GdkPixbufLoaderClass.
      f582c04a
  29. 10 Aug, 2003 1 commit
  30. 14 Jul, 2003 1 commit
  31. 30 Jun, 2003 1 commit
  32. 10 Nov, 2002 1 commit
  33. 11 Oct, 2002 1 commit
  34. 12 Aug, 2002 1 commit
    • Matthias Clasen's avatar
      Remove gdk_screen_close, add a section for GdkDisplayManager, add · 592818d9
      Matthias Clasen authored
      	* gdk/gdk-sections.txt: Remove gdk_screen_close, add a section
      	for GdkDisplayManager, add gdk_visual_get_screen and
      	gdk_colormap_get_screen.
      	* gdk/gdkdisplaymanager.c:
      	* gdk/gdkdisplay.c (gdk_pointer_ungrab): Fix doc comments.
      
      	* gdk/x11/gdkcolor-x11.c (gdk_colormap_get_screen):
      	* gdk/x11/gdkimage-x11.c (gdk_image_new_bitmap): Make parameter
      	names match those in the header file, to silence gtk-doc.
      592818d9
  35. 20 Jun, 2002 1 commit
    • Owen Taylor's avatar
      Renames: · 28c2b0a3
      Owen Taylor authored
      Thu Jun 20 19:41:09 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdkdisplay.h gdk/gdkscreen.h gdk/**.c gtk/*.c
              tests/*.c: Renames:
      
               gdk_get_default_display => gdk_display_get_default
               gdk_get_default_screen  => gdk_screen_get_default
               gdk_open_display        => gdk_display_open
      28c2b0a3
  36. 18 Jun, 2002 1 commit
  37. 02 May, 2002 1 commit
  38. 01 May, 2002 1 commit
    • Matthias Clasen's avatar
      Move GdkScreen struct to the GdkScreen section. · 410f3181
      Matthias Clasen authored
      	* gdk/gdk-sections.txt: Move GdkScreen struct to the GdkScreen section.
      
      	* gdk/tmpl/gdkscreen.sgml:
      	* gdk/tmpl/gdkdisplay.sgml: Typo and markup fixes.
      
      	* gdk/gdk-docs.sgml: Reorder display and screen sections.
      
      	* gdk/multihead.sgml: Remove references to GdkDisplayManager, typo
      	and markup fixes.
      410f3181
  39. 30 Apr, 2002 1 commit
    • Owen Taylor's avatar
      Update for multihead. · c117408d
      Owen Taylor authored
      Tue Apr 30 12:26:31 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk-sections.txt: Update for multihead.
      
              * multihead.sgml gtk-docs.sgml:	Add overview of
      	multihead from	multihead branch.
      
      	* tmpl/gdkdisplay.sgml	tmpl/gdkscreen.sgml: New
              sections from multihead	branch.
      c117408d