1. 24 Sep, 2002 15 commits
    • Matthias Clasen's avatar
      Add a missing ; to make things compile. · 8ad93a0f
      Matthias Clasen authored
      	* gtk/gtkaccelgroup.h: Add a missing ; to make things compile.
      8ad93a0f
    • Matthias Clasen's avatar
      Replace leftover gdk_colormap_lookup () by gdk_x11_colormap_foreign_new () · cdc7d973
      Matthias Clasen authored
      	* gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_get_colormap):
      	Replace leftover gdk_colormap_lookup () by
      	gdk_x11_colormap_foreign_new () to make the linker happy.
      cdc7d973
    • Owen Taylor's avatar
      Add a GtkAccelGroupFindFunc to clean up the prototype. (#76670, Vitaly · ad07608c
      Owen Taylor authored
      Tue Sep 24 17:49:52 2002  Owen Taylor  <otaylor@redhat.com>
              * gtk/gtkaccelgroup.[ch] (gtk_accel_group_find):
              Add a GtkAccelGroupFindFunc to clean up the
              prototype. (#76670, Vitaly Tishkov)
      
              * gdk/x11/gdkvisual-x11.c gdk/x11/gdkx.h: Rename
              gdkx_visual_get_for_screen() to
              gdk_x11_screen_lookup_visual(). (#85702)
      ad07608c
    • Tor Lillqvist's avatar
      Merge from gtk-2-0: · e53e9652
      Tor Lillqvist authored
      2002-09-25  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/win32/gdkevents-win32.c (gdk_event_translate):
      	WM_SYSKEYDOWN, WM_SYSKEYUP: Need to handle F10 specially here in
      	order to be able to handle it normally in the application. Set
      	ignore_wm_char also always when handling WM_SYSKEY{DOWN,UP}, this
      	way we can generate GDK events also for Alt-Fn keys, for instance.
      e53e9652
    • Matthias Clasen's avatar
      Add a missing ; to make things compile. · beb31ce0
      Matthias Clasen authored
      	* gdk/x11/gdkx.h: Add a missing ; to make things compile.
      beb31ce0
    • Owen Taylor's avatar
      Make icon sizes configurable (#70648, slightly based on a patch from Bill · 15896b96
      Owen Taylor authored
      Tue Sep 24 16:40:14 2002  Owen Taylor  <otaylor@redhat.com>
      
      	Make icon sizes configurable (#70648, slightly based
      	on a patch from Bill Haneman, Brian Cameron)
      
      	* gtk/gtkiconfactory.[ch]: Add
      	gtk_icon_size_lookup_for_settings().
      
      	* gtk/gtksettings.c: Add gtk-icon-sizes XSETTING
      
      	* gtk/gtkiconfactory.c: Make icon sizes per-GtkSettings.
      
      	* gtk/gtkstyle.c: Use gtk_icon_size_lookup_for_settings()
      
      	* gtk/gtkrc.[ch]: Privately export _gtk_rc_reset_styles()
      	to force all the widgets to recompute their appearance.
      15896b96
    • Owen Taylor's avatar
      gdk/win32/gdkimage-win32.c gdk/x11/gdkimage-x11.c Add bounds-checking · c2aa25d7
      Owen Taylor authored
      Tue Sep 24 16:24:22 2002  Owen Taylor  <otaylor@redhat.com>
              * gdk/win32/gdkimage-win32.c gdk/x11/gdkimage-x11.c
              * gdk/linux-fb/gdkimage-fb.c (gdk_image_put/get_pixel):
              Add bounds-checking g_return_if_fail(). (Olexiy Avramchenko)
      c2aa25d7
    • Owen Taylor's avatar
      Delete unused private gdk_visual_lookup(), make gdk_colormap_lookup() · f9d267ae
      Owen Taylor authored
      Tue Sep 24 16:04:44 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdkprivate-x11.h gdkcolor-x11.c gdkvisual-x11.c
              gdkwindow-x11.c: Delete unused private gdk_visual_lookup(),
              make gdk_colormap_lookup() private gdkcolor-x11.c.
              make gdk_window_add_colormap_windows private to gdkwindow-x11.c
              (#85674)
      
              * gdk/x11/gdkx.h gdk/x11/gdkcolor-x11.c
              gdkscreen-x11.h: Add gdk_x11_colormap_foreign_new(),
              GDK_ENABLE_BROKEN gdkx_colormap_get(), make the
              colormap hash per-screen. (#85697)
      
              * gdk/x11/gdkxid.c (gdk_xid_table_lookup_for_display):
              Remove a bit of unecessary code.
      f9d267ae
    • Owen Taylor's avatar
      Remove the check for editable. (Reported by Brent Fox) · 3a93889c
      Owen Taylor authored
      Thu Aug  8 16:58:22 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkspinbutton.c (gtk_spin_button_real_change_value):
              Remove the check for editable. (Reported by Brent Fox)
      3a93889c
    • Owen Taylor's avatar
      Honor GTK_WIDGET_APP_PAINTABLE() (#92305, Jonathan Blandford.) · 9fac16e3
      Owen Taylor authored
      Tue Sep 24 06:17:37 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkeventbox.c (gtk_event_box_paint): Honor
              GTK_WIDGET_APP_PAINTABLE() (#92305, Jonathan Blandford.)
      9fac16e3
    • Owen Taylor's avatar
      Change the window parameter for · 50fdb4d7
      Owen Taylor authored
      Tue Sep 24 05:26:31 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdk.h gdk/gdkdisplay.c gdk/linux-fb/gdkevents-fb.c
              gdk/x11/gdkevents-x11.c  gdk/win32/gdkevents-win32.c:
              Change the window parameter for
              gdk_event_send_client_message[_for_display] from guint32
              to GdkNativeWindow. (#79979)
      50fdb4d7
    • Owen Taylor's avatar
      Fix up a bit to look for the loaders in the right place. (#93011, Dennis · 3ed3faca
      Owen Taylor authored
      Tue Sep 24 05:16:25 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk+.spec.in: Fix up a bit to look for the loaders
              in the right place. (#93011, Dennis Dementiev)
      3ed3faca
    • Owen Taylor's avatar
      Fixes to GtkIMContextSimple compose table for us-intl keyboards (Red Hat · a61948aa
      Owen Taylor authored
      Tue Sep 24 05:12:14 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkimcontextsimple.c: Fixes to GtkIMContextSimple
              compose table for us-intl keyboards (Red Hat bugzilla
              #70995, Alexandre Oliva)
      a61948aa
    • Owen Taylor's avatar
      Chain up so that entry->activates_default is honored. (#93865, Pieter · aa6cde8d
      Owen Taylor authored
      Tue Sep 24 04:50:28 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkspinbutton.c (gtk_spin_button_activate):
              Chain up so that entry->activates_default is honored.
              (#93865, Pieter Penninckx)
      aa6cde8d
    • Jacob Berkman's avatar
      cpp macros aren't ``;'' terminated · bbf6222a
      Jacob Berkman authored
      2002-09-23  Jacob Berkman  <jacob@ximian.com>
      
      	* gtk/gtkprogress.c (DEFAULT_FORMAT): cpp macros aren't ``;''
      	terminated
      bbf6222a
  2. 23 Sep, 2002 8 commits
    • Owen Taylor's avatar
      Privatize gtk_selection_request, gtk_selection_incr_event · b33ec36d
      Owen Taylor authored
      Mon Sep 23 19:49:11 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkselection.[ch] gtk/gtkwidget.c gtk/gtkmain.c:
              Privatize gtk_selection_request, gtk_selection_incr_event
              gtk_selection_notify, gtk_selection_property_notify.
              Add doc note about future deprecation of gtk_selection_clear()
              which. (#85683)
      
              * gtk/gtkoldeditable.c (gtk_old_editable_selection_clear):
              Chain up, rather than calling gtk_selection_clear().
      b33ec36d
    • Owen Taylor's avatar
      Add missing bug # reference · c52f0127
      Owen Taylor authored
      c52f0127
    • Owen Taylor's avatar
      Restore back to the default format instead of an empty format. · 1b1f2458
      Owen Taylor authored
      Mon Sep 23 18:53:35 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkprogressbar.c (gtk_progress_bar_set_text):
              Restore back to the default format instead of an
              empty format.
      
              * gtk/gtkprogress.c (gtk_progress_set_format_string):
              Make NULL restore back to the default format.
      1b1f2458
    • Owen Taylor's avatar
      Allow accel_path == NULL. (#84241, James Henstridge.) · 21f1b62d
      Owen Taylor authored
      Mon Sep 23 18:45:46 2002  Owen Taylor  <otaylor@redhat.com>
              * gtk/gtkmenuitem.c (gtk_menu_item_set_accel_path):
              Allow accel_path == NULL. (#84241, James Henstridge.)
      21f1b62d
    • Owen Taylor's avatar
      i Add gtk_notebook_get_n_pages (#73229, Havoc Pennington) · 9879b5b4
      Owen Taylor authored
      Mon Sep 23 18:01:52 2002  Owen Taylor  <otaylor@redhat.com>
      i
              * gtk/gtknotebook.[ch]: Add gtk_notebook_get_n_pages
              (#73229, Havoc Pennington)
      
              * gtk/gtknotebook.c (gtk_notebook_get_nth_page): Handle
              -1 to mean the last page, as we do elsewhere. (#73229)
      9879b5b4
    • Owen Taylor's avatar
      Add a keys_changed signal emitted when the keymap changes. (#72148) · a16b63eb
      Owen Taylor authored
      Mon Sep 23 16:48:46 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdkkeys.[ch] gdk/x11/gdkkeys-x11.c gdk/x11/gdkevents-x11.c:
              Add a keys_changed signal emitted when the keymap changes.
              (#72148)
      
              * gtk/gtkkeyhash.c (_gtk_key_hash_remove_entry):
              Hook up code to handle keymap changes, change to keep
              a linked list of keymap entries so that we can reinsert
              them in the same order on a keymap change.
      a16b63eb
    • Owen Taylor's avatar
      Fix incorrect usage of gdk_get_default_root_window ()). (#92767) · d4fe39c3
      Owen Taylor authored
      Mon Sep 23 12:24:14 2002  Owen Taylor  <otaylor@redhat.com>
              * modules/input/gtkimcontextxim.c (status_window_get):
              Fix incorrect usage of gdk_get_default_root_window ()).
              (#92767)
      d4fe39c3
    • Owen Taylor's avatar
      Patch from Joshua N Pritikin to fix problem where signal connection wasn't · a7716c18
      Owen Taylor authored
      Mon Sep 23 12:12:48 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkspinbutton.c: Patch from Joshua N Pritikin to
              fix problem where signal connection wasn't removed
              from adjustment on finalize. (#93962)
      a7716c18
  3. 22 Sep, 2002 1 commit
    • Owen Taylor's avatar
      Patch from Eric Warmenhoven to with miscellaneous linux-fb fixes, · 5102e76f
      Owen Taylor authored
      Sun Sep 22 18:22:37 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/linux-fb/{gdkinput.c,gdkkeyboard-fb.c,gdk/linux-fb/gdkmain-fb.c,
              gdk/linux-fb/gdkprivate-fb.h, gdk/linux-fb/gdkwindow-fb.c}:
              Patch from Eric Warmenhoven to with miscellaneous linux-fb
              fixes, including a fix for a crash in
              gdk_keymap_get_entries_for_keycode (#87420)
      5102e76f
  4. 21 Sep, 2002 2 commits
    • Matthias Clasen's avatar
      Mark abstract types as G_TYPE_FLAG_ABSTRACT. (#72383) · 083c3aef
      Matthias Clasen authored
      	* gdk/gdkdraw.c (gdk_drawable_get_type):
      	* gdk/gdkgc.c (gdk_gc_get_type):
      	* gtk/gtkmenushell.c (gtk_menu_shell_get_type):
      	* gtk/gtkimcontext.c (gtk_im_context_get_type):
      	* gtk/gtkprogress.c (gtk_progress_get_type):
      	* gtk/gtkoldeditable.c (gtk_old_editable_get_type):
      	* gtk/gtkcellrenderer.c (gtk_cell_renderer_get_type):
      	* gtk/gtkwidget.c (gtk_widget_get_type):
      	* gtk/gtkseparator.c (gtk_separator_get_type):
      	* gtk/gtkscrollbar.c (gtk_scrollbar_get_type):
      	* gtk/gtkscale.c (gtk_scale_get_type):
      	* gtk/gtkrange.c (gtk_range_get_type):
      	* gtk/gtkpaned.c (gtk_paned_get_type):
      	* gtk/gtkmisc.c (gtk_misc_get_type):
      	* gtk/gtkitem.c (gtk_item_get_type):
      	* gtk/gtkcontainer.c (gtk_container_get_type):
      	* gtk/gtkbbox.c (gtk_button_box_get_type):
      	* gtk/gtkbox.c (gtk_box_get_type):
      	* gtk/gtkbin.c (gtk_bin_get_type):
      	* gtk/gtkobject.c (gtk_object_get_type): Mark abstract types as
      	G_TYPE_FLAG_ABSTRACT.  (#72383)
      083c3aef
    • Tor Lillqvist's avatar
      Copy from X11 backend. The old version mishandled consecutive newlines. · d0cac482
      Tor Lillqvist authored
      2002-09-21  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/win32/gdkselection-win32.c (sanitize_utf8): Copy from X11
      	backend. The old version mishandled consecutive newlines.
      
      	* tests/testgtkrc: Remove obsolete mention of gtk-engines and
      	Pixmap theme engine on Win32.
      d0cac482
  5. 20 Sep, 2002 2 commits
  6. 19 Sep, 2002 3 commits
    • Tor Lillqvist's avatar
      On Win32, look explicitly for LANG, LC_ALL and LC_CTYPE, and if not found, · 8a4c5247
      Tor Lillqvist authored
      2002-09-20  Tor Lillqvist  <tml@iki.fi>
      
      	* gtk/gtkmain.c (gtk_get_default_language): On Win32, look
      	explicitly for LANG, LC_ALL and LC_CTYPE, and if not found, use
      	g_win32_getlocale(). The setlocale() in msvcrt.dll would return a
      	locale name in the form Swedish_Finland for sv_FI.
      8a4c5247
    • Tor Lillqvist's avatar
      Delete leftover declarations of the obsolete Win32-only functions · d8a49627
      Tor Lillqvist authored
      2002-09-20  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/gdkfont.h: Delete leftover declarations of the obsolete
      	Win32-only functions gdk_font_full_name_get() and
      	gdk_font_full_name_free().
      
      	* gdk/gdk.def: Delete from here, too.
      
      	* gdk/win32/gdkfont-win32.c (logfont_to_xlfd,
      	gdk_font_full_name_get, gdk_font_full_name_free): Delete
      	implementation, and helper functions.
      
      	(pattern_match, InnerEnumFontFamExProc, EnumFontFamExProc,
      	gdk_font_list_new, gdk_font_list_free): Delete unused functions.
      
      	(gdk_text_width, gdk_text_width_wc) Instead of code duplication,
      	let gdk_text_extents() and gdk_text_extents_wc() do the job.
      
      	* gdk/win32/gdkgc-win32.c (gdk_win32_gc_values_to_win32values):
      	Don't use the above removed functions in debugging output.
      
      	* gdk/win32/gdkdisplay-win32.c
      	* gdk/win32/gdkmain-win32.c
      	* gdk/win32/gdkprivate-win32.h
      	* gdk/win32/gdkselection-win32.c
      	* gdk/win32/gdkinput-win32.h
      	* gdk/win32/gdkinput.c: Make it compile again, pass a GdkDisplay in
      	a couple of places.
      d8a49627
    • Owen Taylor's avatar
      Fix usage of compat GTK_TYPE_ macros without including gtkobject.h. · 3f5ad789
      Owen Taylor authored
      Thu Sep 19 16:39:29 2002  Owen Taylor  <otaylor@redhat.com>
              * gtk/gtksettings.h (GTK_SETTINGS_GET_CLASS): Fix
              usage of compat GTK_TYPE_ macros without including
              gtkobject.h.
      
              * gdk/x11/gdkevents-x11.[ch]: Set a flag when initializing
              to avoid having extra settings-notify events sent
              when not needed.
      3f5ad789
  7. 16 Sep, 2002 1 commit
    • Matthias Clasen's avatar
      Stockify color picker icon. (#89880) · 703b02db
      Matthias Clasen authored
      	* gtk/stock-icons/stock_color_picker_25.png:
      	* gtk/stock-icons/Makefile.am (VARIABLES1):
      	* gtk/gtkstock.h (GTK_STOCK_COLOR_PICKER):
      	* gtk/gtkiconfactory.c (get_default_icons):
      	* gtk/gtkcolorsel.c (gtk_color_selection_init): Stockify color
      	picker icon.   (#89880)
      703b02db
  8. 14 Sep, 2002 1 commit
  9. 13 Sep, 2002 1 commit
  10. 11 Sep, 2002 6 commits
    • Tor Lillqvist's avatar
      Merge from gtk-2-0: · 3e58667f
      Tor Lillqvist authored
      2002-09-12  Tor Lillqvist  <tml@iki.fi>
      
      	Merge from gtk-2-0:
      
      	* gdk/win32/gdkkeys-win32.c (print_keysym_tab): Factor out
      	debugging output to new function.
      3e58667f
    • Tor Lillqvist's avatar
      Merge from gtk-1-3-win32-production and gtk-2-0: · 0db40009
      Tor Lillqvist authored
      2002-09-12  Tor Lillqvist  <tml@iki.fi>
      
      	Merge from gtk-1-3-win32-production and gtk-2-0:
      
      	* gdk/win32/gdkinput-win32.c (gdk_input_init): Use
      	GetSystemMetrics (SM_C[XY]SCREEN) instead of
      	gdk_screen_{width,height}().
      
      	* gdk/win32/gdkselection-win32.c (gdk_selection_convert): Don't
      	use return value from GlobalSize() as length of string when
      	calling MultiByteToWideChar(). Pass -1 instead (zero-terminated
      	string). Thanks to Iwasa Kazmi.
      0db40009
    • Tor Lillqvist's avatar
      Use correct function name in warning messages. · f713eb82
      Tor Lillqvist authored
      2002-09-12  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/win32/gdkinput-win32.c (gdk_input_wintab_init): Use correct
      	function name in warning messages.
      f713eb82
    • Tor Lillqvist's avatar
      Merge from gtk-2-0: · c06ae8c2
      Tor Lillqvist authored
      2002-09-12  Tor Lillqvist  <tml@iki.fi>
      
      	Merge from gtk-2-0:
      
      	* gdk/win32/gdkgeometry-win32.c: Add GDK_NOTE debugging output
      	to some functions, related to moving and resizing and expose
      	and antiexpose queue processing. Use %p to output HWNDs.
      
      	Tentative fix for #79720 based on code by Florent Duguet:
      
      	* gdk/win32/gdkgeometry-win32 (gdk_window_queue_append): New
      	static function. Checks length of translate_queue, calls
      	_gdk_window_process_expose() if length is >= 128. Then appends
      	to translate_queue.
      	(gdk_window_queue_translation,_gdk_windowing_window_queue_antiexpose):
      	Call gdk_window_queue_append().
      c06ae8c2
    • Tor Lillqvist's avatar
      Merge from gtk-2-0: · 1acfb9ae
      Tor Lillqvist authored
      2002-09-12  Tor Lillqvist  <tml@iki.fi>
      
      	Merge from gtk-2-0:
      
      	* gdk/win32/gdkevents-win32.c: Some spacing and indentation cleanup.
      
      	* gdk/win32/gdkevents-win32.c (_gdk_events_init): Search if the
      	system has some input locale identifier that uses a Latin
      	keyboard. This is needed to be able to get the virtual-key code
      	for the latin characters corresponding to ASCII control
      	characters. If no such keyboard is present, try to load one
      	then. Will this upset users with no wish to ever use a Latin-based
      	keyboard layout?
      
      	(vk_from_char): Convert all ASCII control chars to the
      	corresponding uppercase char before calling VkKeyScanEx(). Idea by
      	Florent Duguet. Makes Control-C work again. To make it hopefully
      	work like I think it should on non-Latin keyboards, too, use
      	latin_locale when looking for the corresponding keycode.
      
      	Fix for #81831 by Tim Evans:
      
      	* gdk/win32/gdkevents-win32.c (gdk_event_translate): Don't call
      	_gdk_event_button_generate() here, it would append the double- or
      	triple-click events too early, before the single-click event.
      
      	(real_window_procedure): If we got a single-click event, call
      	_gdk_event_button_generate() to perhaps append the double- or
      	triple-click event after that.
      
      	Merge from gtk-1-3-win32-production branch:
      
      	* gdk/win32/gdkevents-win32.c (propagate): Check for parent being
      	NULL before trying to propagate to it, and return FALSE in that
      	case. (If parent is NULL, we are handling gdk_parent_root, and
      	probably should have noticed that and bailed out earlier. But
      	better late than never.)
      1acfb9ae
    • Tor Lillqvist's avatar
      Merge from gtk-2-0: · 86a90abf
      Tor Lillqvist authored
      2002-09-12  Tor Lillqvist  <tml@iki.fi>
      
      	Merge from gtk-2-0:
      
      	* gdk/win32/gdkdrawable-win32.c (render_line_horizontal,
      	render_line_vertical): Some spacing cleanup. Return TRUE.
      86a90abf