1. 26 Jul, 2003 1 commit
    • Tor Lillqvist's avatar
      gdk/win32/gdkprivate-win32.h New flags _gdk_input_locale_is_ime and · 63f74573
      Tor Lillqvist authored
      2003-07-25  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/win32/gdkprivate-win32.h
      	* gdk/win32/gdkglobals-win32.c: New flags _gdk_input_locale_is_ime
      	and _gdk_keyboard_has_altgr.
      
      	* gdk/win32/gdkevents-win32.c: Lots of changes. Most important
      	ones detailled here.
      
      	Code that has been ifdeffed out for a long time removed. Remove
      	some really old doc comments that were left behind for some public
      	functions, the official ones are in the X11 backend anyway. Change
      	GDK_WINDOW_OBJECT() calls to GdkWindowObject casts. Reformat
      	multi-line boolean expressions to have the operators at ends of
      	lines.
      
      	As mouse capture with SetCapture() indeed seems to work OK, no
      	need to have the correspoinding macro USE_SETCAPTURE and ifdefs.
      
      	Ifdef out the gdk-ping-msg stuff. I don't remember why it was
      	needed at some time, and things seem to work fine now without
      	(knock on wood).
      
      	Ifdef out the search for some Latin locale keyboard layout being
      	loaded. Not used currently, but might be needed after all, if we
      	decide that we want to be able to generate ASCII control character
      	events with a non-Latin keyboard.
      
      	(assign_object): New helper function, handles the g_object_ref()
      	and unref() calls when assigning GObject pointers.
      
      	(generate_crossing_events): Also generate the GDK_NOTIFY_INTERIOR
      	enter event when the pointer has moved to an ancestor window. Was
      	left out by mistake.
      
      	(gdk_window_is_ancestor): Renamed from gdk_window_is_child().
      
      	(gdk_pointer_grab, gdk_pointer_ungrab): Implement the confine_to
      	functionality, using ClipCursor().
      
      	(find_window_for_mouse_event): Splice part of code into new
      	function find_real_window_for_grabbed_mouse_event().
      
      	(fixup_event, append_event, apply_filters): New functions, code
      	refactored out from elsewhere.
      
      	(synthesize_enter_or_leave_event, synthesize_leave_event,
      	synthesize_enter_event,
      	synthesize_leave_events,synthesize_enter_events): Also take a
      	GdkCrossingMode parameter, in preparation to generating
      	GDK_CROSSING_GRAB and GDK_CROSSING_UNGRAB events.
      
      	(fixup_event, append_event, fill_key_event_string): New functions,
      	code refactoring.
      
      	(vk_from_char, build_keypress_event, build_keyrelease_event):
      	Removed as part of dropping WM_CHAR handling.
      
      	(build_key_event_state,gdk_event_translate): Call
      	GetKeyboardState(), once, for each keyboard message, instead of
      	several calls to GetKeyState() here and there.
      
      	(gdk_event_translate): Fix bugs #104516, #104662, #115902. While
      	at it, do some major refactoring, and some fixes for potential
      	problems noticed while going through the code.
      
      	Don't handle WM_CHAR at all. Only handle WM_KEYDOWN and
      	WM_KEYUP. Don't need the state variables related to whether to
      	wait for WM_CHAR or not, and whether the current key is
      	AltGr. Remove lots of complexity. Thus don't need the
      	use_ime_composition flag.
      
      	Not handling WM_CHAR means dead key handling will have to be taken
      	care of by GTK, but that seems to work fine, so no worry.
      
      	Another side-effect is that Alt+keypad digits don't work any
      	longer, but it's better to learn to use GTK's ISO14755 support is
      	anyway.
      
      	Be more careful in checking whether AltGr is involved. Only
      	attempt to handle it if the keyboard actually has it. And
      	explicitly check for *left* Control plus *right* Alt being
      	pressed. Still, allow (left) Alt and/or (right) Control with AltGr
      	chars.
      
      	Handle keys using similar code as in the X11 backend. As we have
      	built a keymap in gdkkeys-win32.c anyway, use it by calling
      	gdk_keymap_translate_keyboard_state() to look up the keysym from
      	the virtual key code and keyboard state. Build the key event
      	string in exactly the same way as the X11 backend.
      
      	If an IME is being used, don't generate GDK events for keys
      	between receiving WM_IME_STARTCOMPOSITION and
      	WM_IME_ENDCOMPOSITION, as those keys are for the IME.
      
      	For WM_IME_COMPOSITION, handle all the Unicode chars returned from
      	the IME, not just the first one.
      
      	gdk_event_translate() is still quite complex, could split the
      	message handler cases out into separate functions.
      
      	On mouse events, when the mouse is grabbed, use
      	find_real_window_for_grabbed_mouse_event() in order to be able to
      	generate correct crossing events.
      
      	No longer take a pre-allocated GdkEvent as parameter. Instead,
      	allocate events as needed and append them to the queue. (This is
      	different from how gdk_event_translate() in the X11 backend
      	works.) This change made the code much clearer, especially in the
      	cases where we have to generate several GDK events for one Windows
      	message.  Return FALSE if DefWindowProc() should be called, TRUE
      	if not. If DefWindowProc() should not be called, also return the
      	value to be returned from the window procedure.
      
      	(Previously, the interaction with gdk_event_translate()'s caller
      	was much more complex, when we had to indicate whether the
      	already-queued event should be left in the queue or removed, and
      	in addition also had to indicate whether to call DefWindowProc()
      	or not, and what value to return from the window procedure if
      	not.)
      
      	Don't use a separate "private" variable required to be pointing to
      	the GdkWindowObject of the "window" variable at all times. Just
      	use casts, even if looks a bit uglier.
      
      	Notice destroyed windows as early as possible, and break out of
      	the messsage switch.
      
      	Use _gdk_pointer_root as current_window when the pointer is
      	outside GDK's top-level windows.
      
      	On WM_INPUTLANGCHANGE, set _gdk_input_locale_is_ime as
      	appropriate, based on ImmIsIME().
      
      	(gdk_event_translate, gdk_event_send_client_message_for_display,
      	gdk_screen_broadcast_client_message): Implement client messages.
      	Use a registered Windows message to pass GDK client messages. Note
      	that the amount of user data is restricted to four bytes, as it is
      	carried in the LPARAM. (The WPARAM is used for the message type
      	"atom".)
      
      	(real_window_procedure): Adapt for new gdk_event_translate()
      	interface.
      
      	* gdk/win32/gdkmain-win32.c (_gdk_windowing_init): Set
      	_gdk_input_locale_is_ime initially.
      
      	* gdk/win32/gdkwindow-win32.c: Use g_object_ref()/unref() instead
      	of g_colormap_ref()/unref().
      
      	(gdk_window_new): Made code a bit more like the X11 one, pretend
      	to handle screens (although we just have one for now).
      
      	* gdk/x11/gdkevents-x11.c
      	(gdk_event_send_client_message_for_display,
      	gdk_screen_broadcast_client_message): Document the user data
      	limitation on Win32.
      
      	* gdk/win32/gdkevents-win32.c (print_event): More complete enter
      	and leave notify detail output.
      
      	* gdk/win32/gdkkeys-win32.c (update_keymap): Make dead keys
      	visible to GDK and GTK. Store the corresponding GDK_dead_* keysym
      	for those, so that the GtkIMContextCimple compose tables will
      	work. Deduce if the keyboard layout has the AltGr key, and set the
      	above flag accordingly.
      63f74573
  2. 25 Jul, 2003 2 commits
  3. 24 Jul, 2003 2 commits
  4. 23 Jul, 2003 8 commits
    • Matthias Clasen's avatar
      Preserve the aspect ratio. (#118145, Owen Taylor) · b8118e65
      Matthias Clasen authored
      2003-07-24  Matthias Clasen  <maclas@gmx.de>
      
      	* gdk-pixbuf-io.c (gdk_pixbuf_new_from_file_at_size): Preserve the aspect ratio.  (#118145,
      	Owen Taylor)
      b8118e65
    • Owen Taylor's avatar
      Return parent path for dummy paths. · 3264c0b6
      Owen Taylor authored
      Wed Jul 23 18:43:20 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gtkfilesystemmodel.c (_gtk_file_system_model_get_path):
              Return parent path for dummy paths.
      3264c0b6
    • Owen Taylor's avatar
      Move ChangeLog entry here · 971bd627
      Owen Taylor authored
      971bd627
    • Owen Taylor's avatar
      Add over-big test case for preview (much of size from a modified copy of · d97d7df9
      Owen Taylor authored
      Wed Jul 23 17:52:01 2003  Owen Taylor  <otaylor@redhat.com>
      
              * testfilechooser.c: Add over-big test case for preview
              (much of size from a modified copy of
              gdk_pixbuf_new_from_file_at_size())
      
              * gtkfilechooserutils.[ch] gtkfilechooser.c
              gtkfilechooserprivate.h gtkfilechooserimpldefault.c:
              Add get_preview_path() as a virtual function; implement
              update-preview signal that was in the header file.
      
              * gtkfilechooserimpldefault.c: Finish a simple preview
              widget implementation.
      d97d7df9
    • Matthias Clasen's avatar
      Close loader before unref'ing it. (#118146, Owen Taylor) · a19781c5
      Matthias Clasen authored
      2003-07-23  Matthias Clasen  <maclas@gmx.de>
      
      	* gdk-pixbuf-io.c (gdk_pixbuf_new_from_file_at_size): Close loader before unref'ing
      	it.  (#118146, Owen Taylor)
      a19781c5
    • Matthias Clasen's avatar
      Make the hue spinbutton wrap. (#118097, John Darrington) · d5d9ecbf
      Matthias Clasen authored
      2003-07-23  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkcolorsel.c (gtk_color_selection_init): Make the hue
      	spinbutton wrap.  (#118097, John Darrington)
      d5d9ecbf
    • Matthias Clasen's avatar
      Mention Xnest as a way to debug GTK+ apps. · 1e617214
      Matthias Clasen authored
      	* docs/faq/gtk-faq.sgml: Mention Xnest as a way to debug GTK+ apps.
      1e617214
    • Owen Taylor's avatar
      File filter objects. · 733f4489
      Owen Taylor authored
      Wed Jul 23 11:23:43 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gtkfilefilter.[ch]: File filter objects.
      
              * gtkfilechooser.[ch] gtkfilechooserutils.[ch]: Add
              file filtering to API.
      
              * gtkfilechooserimpldefault.c: Implement file filters.
      
              * testfilechooser.c: Try out the filter functionality.
      
              * gtkfilesystemmodel.c: Add
              _gtk_file_system_model_set_filter() to set a callback
              function for filtering.
      
              * gtkfilechooserutils.c: Propagate property notification
              to the receiver.
      
              * fnmatch.c: Copy this from GTK+ temporarily to get
              UTF-8 pattern matching functionality.
      733f4489
  5. 22 Jul, 2003 1 commit
  6. 21 Jul, 2003 1 commit
  7. 20 Jul, 2003 4 commits
    • Hans Breuer's avatar
      readded as binary · d72a9b70
      Hans Breuer authored
      d72a9b70
    • Hans Breuer's avatar
      new file to build it all ... added to EXTRA_DIST · 364272b5
      Hans Breuer authored
      2003-07-20  Hans Breuer  <hans@breuer.org>
      
      	* makefile.msc : new file to build it all
      	* Makefile.am : ... added to EXTRA_DIST
      
      	* gdk/makefile.msc gtk/stock-icons/makefile.msc
      	  gtk/makefile.msc.in tests/makefile.msc : updated
      
      	* gdk/gdk.def gtk/gtk.def : export a bunch of new
      	functions
      
      	* gtk/gtkbbox.c : use g_return_val_if_fail() if
      	there is a value to return
      
      	* gtk/gtkfontsel.c gtk/gtkiconfactory.c :
      	static correctness
      
      	* gtk/gtkicontheme.c : ported to use GTimeVal instead of
      	struct timeval and GTK_DATA_PREFIX instead of GTK_DATADIR
      
      	* gtk/gtkicontheme.c : use HAVE_LC_MESSAGES
      
      	* gtk/gtkimmulticontext.c : use gtkprivate.h
      
      	* gtk/stock-icons/stock_color_picker_25.png
      	  gtk/stock-icons/stock_jump_to_rtl_16.png
      	  gtk/stock-icons/stock_jump_to_rtl_24.png
      	  gtk/stock-icons/stock_redo_rtl_16.png
      	  gtk/stock-icons/stock_redo_rtl_24.png
      	  gtk/stock-icons/stock_undelete_rtl_16.png
      	  gtk/stock-icons/stock_undelete_rtl_24.png
      	  gtk/stock-icons/...
      364272b5
    • Hans Breuer's avatar
      removed to re-add as binary · c80e5e66
      Hans Breuer authored
      c80e5e66
    • Hans Breuer's avatar
      updated · 4689575d
      Hans Breuer authored
      2003-03-01  Hans Breuer  <hans@breuer.org>
      
      	* makefile.msc : updated
      
      	* gdk_pixbuf.def : export a bunch of new functions
      4689575d
  8. 19 Jul, 2003 3 commits
  9. 18 Jul, 2003 10 commits
    • Matthias Clasen's avatar
      Add authentication icon. · a314e4c2
      Matthias Clasen authored
      a314e4c2
    • Matthias Clasen's avatar
      New function. (#64562) · 1fd4cd2f
      Matthias Clasen authored
      2003-07-19  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkbbox.h:
      	* gtk/gtkbbox.c (gtk_button_box_get_child_secondary): New function. (#64562)
      1fd4cd2f
    • Soeren Sandmann's avatar
      Fix C99 declaration · 0c8511d2
      Soeren Sandmann authored
      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.
      0c8511d2
    • Matthias Clasen's avatar
      Add properties decorated and gravity. (#80234) · 7fa902f6
      Matthias Clasen authored
      2003-07-18  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkwindow.c: Add properties decorated and gravity.  (#80234)
      7fa902f6
    • Matthias Clasen's avatar
      Add a new keybinding signal, move_viewport. (gtk_text_view_move_viewport): · eaae0a6b
      Matthias Clasen authored
      2003-07-18  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtktextview.c (gtk_text_view_class_init): Add a new keybinding signal, move_viewport.
      	(gtk_text_view_move_viewport): New function which implements the move_viewport functionality.
      	(gtk_text_view_move_cursor_internal): If the cursor is not visible, move the viewport. (#78669)
      
      	* gtk/gtkenums.h (GtkScrollStep): New enumeration, used for move_viewport argument.
      
      	* gtk/gtkstatusbar.c (gtk_statusbar_class_init): Add a has_resize_grip property.  (#111779)
      
      	* gtk/gtkwindow.h:
      	* gtk/gtkwindow.c (gtk_window_set_default_icon): New method.  (#95816)
      
      	* gtk/gtkmessagedialog.h:
      	* gtk/gtkmessagedialog.c (gtk_message_dialog_add_buttons): New method.
      	(#65501, Sebastian Rittau)
      eaae0a6b
    • Soeren Sandmann's avatar
      use gtk_widget_queue_resize_noredraw(). · 1a7bac8d
      Soeren Sandmann authored
      Fri Jul 18 20:06:57 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtktextview.c (changed_handler): use
      	gtk_widget_queue_resize_noredraw().
      1a7bac8d
    • Jody Goldberg's avatar
      fix cut-n-paste-o · b42280f7
      Jody Goldberg authored
      
      2003-07-16  Jody Goldberg <jody@gnome.org>
      
      	* gdk/x11/gdkwindow-x11.c (gdk_window_focus) : fix cut-n-paste-o
      b42280f7
    • Soeren Sandmann's avatar
      Add this API. · 5171637f
      Soeren Sandmann authored
      Fri Jul 18 19:55:50 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtkwidget.c (gtk_widget_queue_resize_no_redraw): Add this
      	API.
      5171637f
    • Soeren Sandmann's avatar
      By popular request give toolbuttons a border. · 80560b9d
      Soeren Sandmann authored
      Fri Jul 18 18:43:01 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	By popular request give toolbuttons a border.
      
      	* gtk/gtktoolitem.c
      	(gtk_tool_item_size_allocate):
      	(gtk_tool_item_size_request): don't request and allocate a border
      	around the child
      
      	* gtk/gtktoolbutton.c
      	(gtk_tool_button_size_allocate):
      	(gtk_tool_button_size_request): remove these functions
      
      	* gtk/gtktoolbar.c
      	(gtk_toolbar_size_request):
      	(gtk_toolbar_size_allocate): request and allocate a border if we
      	have a shadow.
      80560b9d
    • Anders Carlsson's avatar
      Add stresstest-toolbar · 62a7160d
      Anders Carlsson authored
      62a7160d
  10. 17 Jul, 2003 5 commits
    • Matthias Clasen's avatar
      Split correction into multiple pieces if no single weight is large enough · a6a10ee0
      Matthias Clasen authored
      2003-07-18  Matthias Clasen  <maclas@gmx.de>
      
      	* pixops/pixops.c (correct_total): Split correction into multiple pieces if no single weight is large
      	enough to apply the unsplit correction.  (#117431, problem reported by Tomas Ögren)
      a6a10ee0
    • Kristian Rietveld's avatar
      Merged from stable. · e733ed3e
      Kristian Rietveld authored
      Thu Jul 17 19:24:51 2003  Kristian Rietveld  <kris@gtk.org>
      
      	Merged from stable.
      
      	Fixes issues pointed out by Morten Welinder in #115140.
      
      	* gtk/gtktreeview.c (gtk_tree_view_size_request): fix comment,
      	(do_validate_rows): update validated_area with a logic OR instead
      	of a bitwise OR,
      	(validate_rows_handler): make the if statement match the one in
      	validate_rows(), so we don't leak the timeout.
      e733ed3e
    • Kristian Rietveld's avatar
      Merged from stable. · fd9992d8
      Kristian Rietveld authored
      Thu Jul 17 19:12:02 2003  Kristian Rietveld  <kris@gtk.org>
      
      	Merged from stable.
      
      	* gtk/gtktreeview.c (gtk_tree_view_remove_widget): the treeview
      	should only grab focus back if the "cell_editable" widget still
      	has focus. (Fixes #110104, testcase provided by Marco Pesenti
      	Gritti).
      fd9992d8
    • Kristian Rietveld's avatar
      Merged from stable. · c400b654
      Kristian Rietveld authored
      Thu Jul 17 19:06:34 2003  Kristian Rietveld  <kris@gtk.org>
      
      	Merged from stable.
      
      	* gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
      	Don't set attr.event_mask twice, those things were meant to be
      	ORred. (#115139, pointed out by Morten Welinder).
      c400b654
    • Kristian Rietveld's avatar
      Merged from stable. · bdce65ea
      Kristian Rietveld authored
      Thu Jul 17 16:11:21 2003  Kristian Rietveld  <kris@gtk.org>
      
      	Merged from stable.
      
      	* gtk/gtktreeview.c (gtk_tree_view_rows_reordered): stop editing
      	if needed. (Fixes #115869, reported by Michael Natterer).
      bdce65ea
  11. 16 Jul, 2003 2 commits
    • Owen Taylor's avatar
      auto-ize. · c80a3b3d
      Owen Taylor authored
      Wed Jul 16 16:50:31 2003  Owen Taylor  <otaylor@redhat.com>
      
              * configure.ac Makefile.am: auto-ize.
      
              * xdgmime/: Add freedesktop.org MIME spec implementatin
              by Jonathan Blandford.
      
              * gtkfilesystem.[ch]: Add gtk_file_info_render_icon()
              gtk_file_info_set/get_icon_type to do icon handling
              based on MIME type. Add a simple icon caching system.
      
              * gtkfilesystemgnomevfs.c: Implement ensure_types()
              so that extending the set of types for a loaded
              directory works. Set the MIME type to get the default
              icon handling.
      
              * gtkfilesystemunix.c: Look up the MIME type using
              xdgmime.
      
              * gtkfilechooserimpldefault.c: Display icons in the list.
      
              * glib-interface-properties-0.3.patch: New revision
              of interface properties patch.
      c80a3b3d
    • Owen Taylor's avatar
      auto-ize. · 7e54248b
      Owen Taylor authored
      Wed Jul 16 16:50:31 2003  Owen Taylor  <otaylor@redhat.com>
      
              * configure.ac Makefile.am: auto-ize.
      
              * xdgmime/: Add freedesktop.org MIME spec implementatin
              by Jonathan Blandford.
      
              * gtkfilesystem.[ch]: Add gtk_file_info_render_icon()
              gtk_file_info_set/get_icon_type to do icon handling
              based on MIME type. Add a simple icon caching system.
      
              * gtkfilesystemgnomevfs.c: Implement ensure_types()
              so that extending the set of types for a loaded
              directory works. Set the MIME type to get the default
              icon handling.
      
              * gtkfilesystemunix.c: Look up the MIME type using
              xdgmime.
      
              * gtkfilechooserimpldefault.c: Display icons in the list.
      7e54248b
  12. 15 Jul, 2003 1 commit