1. 26 Mar, 2005 1 commit
  2. 24 Mar, 2005 1 commit
    • Tor Lillqvist's avatar
      Include the -mms-bitfields flag in GTK_EXTRA_CFLAGS on Win32, so that it · 6323876b
      Tor Lillqvist authored
      2005-03-24  Tor Lillqvist  <tml@novell.com>
      
      	* configure.in (GTK_EXTRA_CFLAGS): Include the -mms-bitfields flag
      	in GTK_EXTRA_CFLAGS on Win32, so that it gets included in the
      	gtk+-2.0.pc file and automatically used by dependents. MSVC users
      	who use pkg-config will have to manually edit it out from
      	gtk+-2.0.pc, sorry. Maybe pkg-config should be enhanced to support
      	some kind of conditionals in .pc files?
      6323876b
  3. 23 Mar, 2005 2 commits
    • Matthias Clasen's avatar
      Remove a call whose result was unused and leaked. (#170776, Kjartan · 340cf63e
      Matthias Clasen authored
      2005-03-23  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkfilechooserbutton.c (update_combo_box): Remove
      	a call whose result was unused and leaked.  (#170776,
      	Kjartan Maraas)
      340cf63e
    • Matthias Clasen's avatar
      Some cleanups to the GtkDialog code: (#170746, Morten Welinder) Simplify, · c43673f1
      Matthias Clasen authored
      2005-03-23  Matthias Clasen  <mclasen@redhat.com>
      
      	Some cleanups to the GtkDialog code:  (#170746,
      	Morten Welinder)
      	* gtk/gtkdialog.c (action_widget_activated): Simplify,
      	use _gtk_dialog_get_response_for_widget.
      	(gtk_dialog_add_action_widget): Use the correct signal
      	id for non-buttons.
      	(gtk_dialog_set_response_sensitive):
      	(gtk_dialog_set_default_response): Use get_response_data.
      	(gtk_dialog_run): Don't disconnect the signals if the
      	dialog was destroyed while running.
      c43673f1
  4. 22 Mar, 2005 5 commits
    • Manish Singh's avatar
      Use g_return_if_fail, not g_return_val_if_fail. · edc3b135
      Manish Singh authored
      Tue Mar 22 14:16:31 2005  Manish Singh  <yosh@gimp.org>
      
              * gtk/gtkfilesystem.c (gtk_file_system_set_bookmark_label):
              Use g_return_if_fail, not g_return_val_if_fail.
      edc3b135
    • Matthias Clasen's avatar
      Implement bookmark renaming (#136216, Sean Middleditch) · dce8bffc
      Matthias Clasen authored
      2005-03-22  Matthias Clasen  <mclasen@redhat.com>
      
      	Implement bookmark renaming  (#136216, Sean Middleditch)
      
      	* gtk/gtkfilesystem.h (struct _GtkFileSystemIface): Add
      	get_bookmark_label and set_bookmark_label vfuncs.
      
      	* gtk/gtkfilesystem.h:
      	* gtk/gtkfilesystem.c (gtk_file_system_set_bookmark_label):
      	(gtk_file_system_get_bookmark_label): Wrappers for the
      	vfuncs.
      
      	* gtk/gtk.symbols: Add new exported symbols.
      
      	* gtk/gtkfilesystemunix.c (gtk_file_system_unix_set_bookmark_label):
      	(gtk_file_system_unix_get_bookmark_label): Implementations
      	for the Unix backend.
      
      	* gtk/gtkfilechooserdefault.c: Add a context menu to
      	the bookmarks pane, and allow to rename bookmarks.
      dce8bffc
    • Matthias Clasen's avatar
      Stop scrolling when the widget is unmapped. (#168791, Ryan Lortie) · 81ffe540
      Matthias Clasen authored
      2005-03-22  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkpathbar.c (gtk_path_bar_unmap):
      	* gtk/gtkspinbutton.c (gtk_spin_button_unmap):
      	* gtk/gtknotebook.c (gtk_notebook_unmap):
      	* gtk/gtkrange.c (gtk_range_unmap): Stop scrolling when
      	the widget is unmapped.  (#168791, Ryan Lortie)
      81ffe540
    • Matthias Clasen's avatar
      Forgotten commit. · d9204a33
      Matthias Clasen authored
      d9204a33
    • Matthias Clasen's avatar
      Define macros GTK_PARAM_READABLE, GTK_PARAM_WRITABLE, GTK_PARAM_READWRITE · 269d89c7
      Matthias Clasen authored
      2005-03-21  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkprivate.h: Define macros GTK_PARAM_READABLE,
      	GTK_PARAM_WRITABLE, GTK_PARAM_READWRITE which are like
      	their G_ counterparts, but also mark the name, nick
      	and blurb as static.
      
      	* gtk/*.c: Mark param spec strings as static, using
      	the new macros.
      269d89c7
  5. 21 Mar, 2005 7 commits
  6. 20 Mar, 2005 5 commits
    • Tor Lillqvist's avatar
      Silence gcc warnings (unused variables, unhandled enum value in switch). · a2f426f3
      Tor Lillqvist authored
      2005-03-21  Tor Lillqvist  <tml@novell.com>
      
      	* modules/engines/ms-windows/*.c: Silence gcc warnings (unused
      	variables, unhandled enum value in switch). Use g_object_unref()
      	instead of deprecated gdk_gc_unref() and gdk_drawable_unref().
      
      	* modules/engines/ms-windows/xp_theme.c (xp_theme_map_gtk_state):
      	Add missing "case" keyword.
      
      	* modules/engines/ms-windows/Makefile.am: Link with -lgdi32
      	explicitly.
      a2f426f3
    • Tor Lillqvist's avatar
      Return the Terminal Services session number, window station name (always · b459ef88
      Tor Lillqvist authored
      2005-03-20  Tor Lillqvist  <tml@novell.com>
      
      	* gdk/win32/gdkdisplay-win32.c (gdk_display_get_name): Return the
      	Terminal Services session number, window station name (always
      	"WinSta0" in interactive processes), and desktop name (typically
      	"Default"), concatenated with backslash separators.
      	(gdk_display_open): Accept only NULL or the string
      	gdk_display_get_name() returns as display name.
      b459ef88
    • Manish Singh's avatar
      cast away the constness in the call to free(). · 31bfcc1a
      Manish Singh authored
      Sat Mar 19 23:52:33 2005  Manish Singh  <yosh@gimp.org>
      
              * xdgmimeglob.c (_xdg_glob_hash_insert_text): cast away the constness
              in the call to free().
      31bfcc1a
    • Matthias Clasen's avatar
      Don't leak node->mime_type if we are reusing an existing node. (#170774, · 231cb644
      Matthias Clasen authored
      2005-03-20  Matthias Clasen  <mclasen@redhat.com>
      
      	* xdgmimeglob.c (_xdg_glob_hash_insert_text): Don't
      	leak node->mime_type if we are reusing an existing
      	node.  (#170774, Kjartan Maraas)
      231cb644
    • Matthias Clasen's avatar
      Make PLT-reduction work with gcc4, and don't include everything in · cca8dd63
      Matthias Clasen authored
      2005-03-20  Matthias Clasen  <mclasen@redhat.com>
      
      	Make PLT-reduction work with gcc4, and don't include
      	everything in gdkalias.h:
      
      	* gtk/grk.symbols: Group symbols by header and source file.
      	* gtk/makegtkalias.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 makegtkalias.pl -def
      	* gdk/Makefile.am (gtkaliasdef.c): Add a rule to generate
      	this file.
      	* gtk/*.c: Include gtkalias.h after the other headers,
      	include gtkaliasdef.c at the bottom.
      	* gtk/*.h: Small cleanups.
      cca8dd63
  7. 19 Mar, 2005 1 commit
    • Soeren Sandmann's avatar
      Make right-clicks not pop up the menu. · b39b0bfc
      Soeren Sandmann authored
      Fri Mar 18 23:59:49 2005  Soeren Sandmann  <sandmann@redhat.com>
      
      	* gtk/gtkmenutoolbutton.c (arrow_button_button_press_event_cb):
      	Make right-clicks not pop up the menu.
      b39b0bfc
  8. 18 Mar, 2005 3 commits
    • Owen Taylor's avatar
      Call cairo_surface_finish() · b8663e86
      Owen Taylor authored
      2005-03-18  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkdrawable-x11.c (_gdk_x11_drawable_finish):
              Call cairo_surface_finish()
      
              * gdk/gdkinternals.c gdk/x11/gdkdrawable-x11.c: Remoev
              _gdk_windowing_set_surface_device_offset().
      b8663e86
    • Tor Lillqvist's avatar
      On WM_MOUSEMOVE, don't check if this process owns the active window. This · e4515f4d
      Tor Lillqvist authored
      2005-03-18  Tor Lillqvist  <tml@novell.com>
      
      	* gdk/win32/gdkevents-win32.c (gdk_event_translate): On
      	WM_MOUSEMOVE, don't check if this process owns the active
      	window. This makes cross-application widget embedding work better.
      	On WM_MOVE, don't bother checking for window visibility.
      
      	* gdk/win32/gdkim-win32.c: Remove bogus empty doc comment. Remove
      	unused variables. Add some casts to silence gcc.
      e4515f4d
    • Owen Taylor's avatar
      Use cairo_set_device_offset(). · 368f15ca
      Owen Taylor authored
      2005-02-24  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkwindow.c: Use cairo_set_device_offset().
      
      	* gdk/win32/gdkdrawable-win32.[ch] gdk/win32/gdkwindow-win32.c
      	gdk/win32/gdkpixmap-win32.c:
      	Add_gdk_win32_drawable_acquire/release_dc() to get a DC for the
      	drawable. Add _gdk_drawable_win32_finish() to clean up resources
      	when a drawable is destroyed.
      
      	* gdk/win32/gdkgc-win32.c gdk/win32/gdkdrawable-win32.c
      	(blit_from_pixmap) gdk/win32/gdkprivate-win32.h : Use
      	acquire/release_dc when getting a DC to use with a GC or for
      	blitting from a pixmap.
      
      	* gdk/win32/gdkdrawable-win32.[ch]: Implement ref_cairo_surface()
      
      	* gdk/win32/gdkpango-win32.c gdk/win32/gdkdrawable-win32.c Makefile.am:
      	Remove gdk_screen_get_pango_context(), draw_glyph[_transformed]
      	implementations.
      
      	* gdk/win32/gdkdrawable-win32.c: Remove
      	gdk_draw_rectangle_alpha_libgtk_only()
      368f15ca
  9. 17 Mar, 2005 9 commits
    • Owen Taylor's avatar
      Fix get_stipple_surface to actually work, set EXTEND_REPEAT on the stipple · d1bc66a2
      Owen Taylor authored
      2005-03-17  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdkpango.c: Fix get_stipple_surface to actually work, set
              EXTEND_REPEAT on the stipple pattern.
      d1bc66a2
    • Matthias Clasen's avatar
      Fix formatting in example in the docs. (#170611, Jianfei Wang) · e3737e59
      Matthias Clasen authored
      2005-03-17  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtklabel.c (gtk_label_set_markup): Fix formatting
      	in example in the docs.  (#170611, Jianfei Wang)
      e3737e59
    • Matthias Clasen's avatar
      Clamp adjustment values on resize. (#170567, Tomislav Jonjic) · b3570de9
      Matthias Clasen authored
      2005-03-17  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkiconview.c (gtk_icon_view_size_allocate): Clamp
      	adjustment values on resize.  (#170567, Tomislav Jonjic)
      b3570de9
    • Matthias Clasen's avatar
      Don't crash if there is no cache. (#170652, Diego Gonzalez) · c4aa487d
      Matthias Clasen authored
      2005-03-17  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkicontheme.c (theme_lookup_icon): Don't crash
      	if there is no cache.  (#170652, Diego Gonzalez)
      c4aa487d
    • Matthias Clasen's avatar
      Make inline completion insert the prefix at the right spot. (#170146, Doug · 86009fba
      Matthias Clasen authored
      2005-03-17  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkentrycompletion.c (gtk_entry_completion_real_insert_prefix):
      	Make inline completion insert the prefix at the
      	right spot.  (#170146, Doug Quale)
      86009fba
    • Tor Lillqvist's avatar
      gdk_key is a typedef, not a struct tag. · 691bea13
      Tor Lillqvist authored
      2005-03-17  Tor Lillqvist  <tml@novell.com>
      
      	* gdk/gdkkeynames.c: gdk_key is a typedef, not a struct tag.
      691bea13
    • Adam Weinberger's avatar
      Updated Canadian English translation. · 6ffbc074
      Adam Weinberger authored
      
      	* en_CA.po: Updated Canadian English translation.
      6ffbc074
    • Matthias Clasen's avatar
      Typo fix in the docs. · 7049dbf1
      Matthias Clasen authored
      2005-03-16  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkprogressbar.c (gtk_progress_bar_get_ellipsize):
      	Typo fix in the docs.
      
      	* gtk/gtkmenutoolbutton.c (gtk_menu_tool_button_set_arrow_tooltip):
      	Typo fix in the docs.
      
      	* gtk/gtkiconview.c (gtk_icon_view_get_columns)
      	(gtk_icon_view_set_columns, gtk_icon_view_set_item_width)
      	(gtk_icon_view_get_item_width, gtk_icon_view_set_spacing)
      	(gtk_icon_view_get_spacing, gtk_icon_view_set_row_spacing)
      	(gtk_icon_view_set_column_spacing, gtk_icon_view_get_row_spacing)
      	(gtk_icon_view_get_column_spacing, gtk_icon_view_set_margin)
      	(gtk_icon_view_get_margin): Add docs.
      
      	* gtk/gtkcellview.c (gtk_cell_view_get_displayed_row):
      	Add docs.
      7049dbf1
    • 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
  10. 16 Mar, 2005 6 commits
    • Matthias Clasen's avatar
      Also demonstrate GtkCellRenderer::editing-started and separators. · eebd4f1c
      Matthias Clasen authored
      2005-03-16  Matthias Clasen  <mclasen@redhat.com>
      
      	* demos/gtk-demo/editable_cells.c: Also demonstrate
      	GtkCellRenderer::editing-started and separators.
      eebd4f1c
    • Manish Singh's avatar
      Shut up CVS · f0ce2b12
      Manish Singh authored
      f0ce2b12
    • Manish Singh's avatar
      #include gdkaliasdef.c here too. · 9e7f4ff4
      Manish Singh authored
      Tue Mar 15 20:34:33 2005  Manish Singh  <yosh@gimp.org>
      
              * gdk/x11/gdkinput-xfree.c: #include gdkaliasdef.c here too.
      9e7f4ff4
    • 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
    • Tor Lillqvist's avatar
      gdk/win32/gdkprivate-win32.h Drop global variable _gdk_root_window, just · 34bfd712
      Tor Lillqvist authored
      2005-03-16  Tor Lillqvist  <tml@novell.com>
      
      	* gdk/win32/gdkprivate-win32.h
      	* gdk/win32/*.c: Drop global variable _gdk_root_window, just call
      	GetDesktopWindow(). Rename the GdkWindow* _gdk_parent_root to
      	_gdk_root.
      
      	* gdk/win32/gdkwindow-win32.h (GdkWindowImplWin32): Add
      	toplevel_window_type field.
      
      	* gdk/win32/gdkwindow-win32.c: As there is only one root
      	window in GDK on Win32, we can compare directly to _gdk_root
      	instead of checking the window type.
      	(gdk_window_reparent): When reparenting a child of the desktop
      	clear out the window decorations. Correspondingly, when
      	reparenting to the desktop, add decorations. As in the X11
      	backend, save the window type of a toplevel window when
      	reparenting, in case it is reparented back to toplevel.
      34bfd712
    • Tor Lillqvist's avatar
      Print debugging output only if asked for, not always. · df9768cf
      Tor Lillqvist authored
      2005-03-16  Tor Lillqvist  <tml@novell.com>
      
      	* gdk/win32/gdkdisplay-win32.c (_win32_on_clipboard_change): Print
      	debugging output only if asked for, not always.
      
      	* gdk/win32/*.c: Use the %+d%+d format for coordinate pairs in
      	debugging printout instead of +%d+%d. Misc other additions and
      	cosmetic improvements to debugging printouts. Use API_CALL() and
      	GDI_CALL() macros in more places.
      
      	* gdk/win32/gdkwindow-win32.c (gdk_window_move, gdk_window_resize,
      	gdk_window_move_resize): To detect child windows, check whether
      	the real parent is not the desktop window, instead of relying on
      	the GDK window type being GDK_WINDOW_CHILD. Foreign GtkPlug
      	windows have a GDK window type GDK_WINDOW_FOREIGN, but are still
      	de facto child windows.
      df9768cf