1. 06 Jun, 2003 8 commits
    • Owen Taylor's avatar
      Many fixes, along with extensive cleanups and refactoring of code to · 0b7c616a
      Owen Taylor authored
      Fri Jun  6 16:25:44 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkviewport.c: Many fixes, along with extensive cleanups and
              refactoring of code to reduce duplication; fixes include:
      
              - gtk_viewport_realize(): Position the window correct from adjustment
              values. (#110737, Michael Natterer)
      
              - Remove some division-by-zero checks in places where there is no
              longer division. (#110737)
      
              - gtk_viewport_class_init: Make the hadjustment/vadjustment properties
              G_PARAM_CONSTRUCT, so that there will always be adjustments, even
              if gtk_viewport_new isn't used (#101135, Thomas Leonard).
      
              - Switch over to encapsulated lazy-creation for hadjustment/
              vadjustment; even with the CONSTRUCT property, we need this after
              destroy.
      
              - When updating the adjustment, immediate set their values to
              match the the current range of the viewport, and update the
              viewport position to match the value of the new adjustments.
              (Part of #1165
      0b7c616a
    • Tor Lillqvist's avatar
      Fix typo. · f91ae980
      Tor Lillqvist authored
      2003-06-06  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/win32/gdkprivate-win32.h: Fix typo.
      f91ae980
    • Tor Lillqvist's avatar
      Set graphics_exposures and subwindow_mode, too, even if they aren't · 37ccf562
      Tor Lillqvist authored
      2003-06-06  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/win32/gdkgc-win32.c (_gdk_win32_gc_new): Set
      	graphics_exposures and subwindow_mode, too, even if they aren't
      	currently used.
      37ccf562
    • Kristian Rietveld's avatar
      Merged from stable. · e0e04dd8
      Kristian Rietveld authored
      Fri Jun  6 23:38:23 2003  Kristian Rietveld  <kris@gtk.org>
      
      	Merged from stable.
      
      	* gtk/gtktreeview.c (do_expand_collapse),
      	(expand_collapse_timeout), (cancel_arrow_animation): made
      	expand_collapse_timeout a wrapper with locks around
      	do_expand_collapse, made cancel_arrow_animation use
      	do_expand_collapse. Fixes threadlock. (Fixes #111286, patch from
      	Peter Bloomfield).
      e0e04dd8
    • Hidetoshi Tajima's avatar
      Add a 'finalizing' flag to keep preedit-[start,changed,end] signals from · 16191e52
      Hidetoshi Tajima authored
      Fri Jun  6 11:05:45 2003  Hidetoshi Tajima  <hidetoshi.tajima@sun.com>
      
      	* modules/input/gtkimcontextxim.h (struct _GtkIMContextXIM):
      	* modules/input/gtkimcontextxim.c (preedit_start_callback,
      	preedit_draw_callback, preedit_done_callback): Add a 'finalizing' flag
      	to keep preedit-[start,changed,end] signals from being called during
      	finalization (#111861).
      16191e52
    • Noah Levitt's avatar
      Ignore button presses that are not on the tab (#114534). · e7937497
      Noah Levitt authored
      2003-06-05  Noah Levitt  <nlevitt@columbia.edu>
      
      	* gtk/gtknotebook.c (gtk_notebook_button_press): Ignore button
      	presses that are not on the tab (#114534).
      e7937497
    • Owen Taylor's avatar
      Conditionalize deendencies for gdk-pixbuf-csource on cross-compilation · ff5da262
      Owen Taylor authored
      Thu Jun  5 20:35:40 2003  Owen Taylor  <otaylor@redhat.com>
      
              * demos/Makefile.am: Conditionalize deendencies for
              gdk-pixbuf-csource on cross-compilation (#112391, J. Ali Harlowe).
              Buildtest-inline-pixbufs.h in srcdir. Don't try to build
              test-inline-pixbufs.h if we don't have libpng.
      
              * gtk/stock-icons/Makefile.am (gtkstockpixbufs.h):
              Add a dependency on gdk-pixbuf.loaders when not
              cross-compiling, remove the dependency on gdk-pixbuf-csource
              when not cross compiling.
      ff5da262
    • Owen Taylor's avatar
      Handle gtk_window_get_geometry_info() returning NULL. (#107311, John · d4ed293d
      Owen Taylor authored
      Thu Jun  5 20:12:51 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkwindow.c (gtk_window_get_default_size): Handle
              gtk_window_get_geometry_info() returning NULL.
              (#107311, John Finlay)
      d4ed293d
  2. 05 Jun, 2003 11 commits
    • Owen Taylor's avatar
      Subtract off twice the border width from the width/height, not 1x the · 27c08ab4
      Owen Taylor authored
      Thu Jun  5 19:24:33 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtktoolbar.c (gtk_toolbar_expose): Subtract off
              twice the border width from the width/height, not
              1x the border width. (#106336, Rodney Dawes)
      27c08ab4
    • Owen Taylor's avatar
      If at the end of the buffer, move to the end iter - parallels behavior of · 9cb6de1f
      Owen Taylor authored
      Thu Jun  5 15:33:38 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
              If at the end of the buffer, move to the end iter -
              parallels behavior of move_iter_to_previous_line.
              (#81960, Padraig O'Briain)
      9cb6de1f
    • Owen Taylor's avatar
      #80023, Yao Zhang, TOKUNAGA Hiroyuki · 6bbdea92
      Owen Taylor authored
      Thu Jun  5 16:12:54 2003  Owen Taylor  <otaylor@redhat.com>
      
              #80023, Yao Zhang, TOKUNAGA Hiroyuki
      
              * gtk/gtktextlayout.c (gtk_text_layout_get_cursor_locations):
              Account for the preedit cursor offset if the iter passed
              in is at the same place as the insertion cursor.
      
              * gtk/gtktextview.c (gtk_text_view_get_cursor_location):
              Encapsulate getting the insertion cursor location.
      
              * gtk/gtktextview.c (gtk_text_view_update_im_spot_location):
              Pass the real y/height to the IM context. Take
              text_view->x/yoffset into account.
      6bbdea92
    • Owen Taylor's avatar
      Never scroll on focus in (#81893, Patch from Paolo Maggi) · 4d5b395f
      Owen Taylor authored
      Thu Jun  5 16:52:54 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtktextview.[ch]: Never scroll on focus in
              (#81893, Patch from Paolo Maggi)
      
              * gtk/gtktextview.c (gtk_text_view_scroll_[h]pages):
              Scroll to the current cursor location before handling
              the action, in case the user just tabbed in
              and the cursor is offscreen.
      4d5b395f
    • Owen Taylor's avatar
      #107883, Gustavo Giráldez · de425c5d
      Owen Taylor authored
      Thu Jun  5 17:20:40 2003  Owen Taylor  <otaylor@redhat.com>
      
               #107883, Gustavo Giráldez
      
              * gtk/gtktextlayout.c (gtk_text_layout_emit_changed):
              Split out the case where we know we changed, and
              already dealt with our cached line being invalidated
              from external calls to gtk_text_layout_changed.
      
              * gtk/gtktextlayout.c (gtk_text_layout_changed):
              Check if the invalidate yrange intersects our
              cached line, and clear it if necessary.
      de425c5d
    • Tor Lillqvist's avatar
      Handle global filters. · 72a70cb6
      Tor Lillqvist authored
      2003-06-05  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/win32/gdkevents-win32.c (gdk_event_translate): Handle global
      	filters.
      72a70cb6
    • Matthias Clasen's avatar
      Fix for #84668, reported by Torbjrn Andersson: · fc822656
      Matthias Clasen authored
      2003-06-05  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtktextview.c: Fix for #84668, reported by Torbjrn Andersson:
      	(gtk_text_view_grab_notify):
      	(gtk_text_view_state_changed): Implement these
      	to unobscure cursor when grab shadowed or insensitised.
      	(gtk_text_view_unobscure_mouse_cursor): New function to undo the
      	effect of gtk_text_view_obscure_mouse_cursor(). Code lifted from
      	gtk_text_view_motion_event().
      	(gtk_text_view_motion_event): Use gtk_text_view_obscure_mouse_cursor().
      fc822656
    • Matthias Clasen's avatar
      New keybinding signal for (un)selecting the whole buffer. Bound to · 4c735628
      Matthias Clasen authored
      2003-06-05  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtktextview.c (select_all): New keybinding signal for
      	(un)selecting the whole buffer. Bound to C-a/C-\.  (see #107889)
      4c735628
    • Matthias Clasen's avatar
      Fix a typo. · 487a0a07
      Matthias Clasen authored
      487a0a07
    • Matthias Clasen's avatar
      Add some questions. · 8992434c
      Matthias Clasen authored
      8992434c
    • Matthias Clasen's avatar
      Replace deprecated gtk_timeout_* functions by their GLib counterparts. · 1fd7856d
      Matthias Clasen authored
      	* gtk/gtkcalendar.c (calendar_timer):
      	(stop_spinning): Replace deprecated gtk_timeout_* functions by
      	their GLib counterparts.  (#114429)
      1fd7856d
  3. 04 Jun, 2003 6 commits
    • Matthias Clasen's avatar
      Document restriction on types. · f114b14a
      Matthias Clasen authored
      2003-06-05  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtktreestore.c (gtk_tree_store_new):
      	* gtk/gtkliststore.c (gtk_list_store_new): Document restriction on
      	types.
      f114b14a
    • Owen Taylor's avatar
      When drawing underlines, join up adjacent runs where possible, so we don't · f9a47864
      Owen Taylor authored
      Wed Jun  4 19:42:17 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdkpango.c (gdk_draw_layout_line_with_colors):
              When drawing underlines, join up adjacent runs
              where possible, so we don't get changes in
              shaper/font/etc. breaking underlines. (#103662,
              Kang Jeong-Hee)
      f9a47864
    • Jonathan Blandford's avatar
      Slightly modified patch from Owen Taylor <otaylor@redhat.com> to improve · 0f635335
      Jonathan Blandford authored
      Wed Jun  4 19:22:58 2003  Jonathan Blandford  <jrb@redhat.com>
      
              * gtk/gtktreemodelsort.c (gtk_tree_model_sort_level_find_insert):
              Slightly modified patch from Owen Taylor <otaylor@redhat.com> to
              improve the speed of inserting rows into an already sorted list,
              #109292
      0f635335
    • Owen Taylor's avatar
      Keep track of when we have a clip mask set for the GC, and when we unset · 76fc08a3
      Owen Taylor authored
      Wed Jun  4 19:24:28 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkgc-x11.c gdk/x11/gdkprivate-x11.h: Keep
              track of when we have a clip mask set for the GC,
              and when we unset it, or switch to a clip region,
              immediately call XSetClipMask (..., None) to avoid
              Xlib caching stale data. (#111806)
      
              * gtk/gtktextdisplay.c: Don't set a clip mask
              when drawing alpha pixmaps; it isn't necessary any more.
              (#111806)
      76fc08a3
    • Owen Taylor's avatar
      gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator): Use · c1ccc9b9
      Owen Taylor authored
      Wed Jun  4 18:27:44 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator):
              gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator):
              Use GTK_WIDGET_IS_SENSITIVE(), not GTK_WIDGET_SENSITIVE
              (#92548, Tim Evans)
      
              * gtk/gtkcheckmenuitem.c (gtk_real_check_menu_item_draw_indicator)
              gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator): If
              Use state_type = STATE_INSENSITIVE for insensitive menu items.
      c1ccc9b9
    • Kristian Rietveld's avatar
      Merged from stable. · 5afcde9a
      Kristian Rietveld authored
      Wed Jun  4 21:25:35 2003  Kristian Rietveld  <kris@gtk.org>
      
      	Merged from stable.
      
      	* gtk/gtktreeview.c (gtk_tree_view_drag_begin): use a silent
      	assert for get_info. (reported by Michael Natterer),
      	(gtk_tree_view_expand_all_emission_helper),
      	(gtk_tree_view_expand_all_helper): emit row_expanded for all
      	expanded rows during an _expand_all operation. (Fixes #111280,
      	reported by Benjamin Bayart).
      5afcde9a
  4. 03 Jun, 2003 6 commits
    • Owen Taylor's avatar
      Don't respond to pings on a root window; prevents infinite loops if we are · eb6debd4
      Owen Taylor authored
      Tue Jun  3 18:32:30 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Don't
              respond to pings on a root window; prevents infinite
              loops if we are selecting for SubstructureNotify on the
              root window. (#111945, Sergey V. Udaltsov)
      eb6debd4
    • Owen Taylor's avatar
      #71597, reported by Morten Welinder · 84ebfb7e
      Owen Taylor authored
      Tue Jun  3 17:39:16 2003  Owen Taylor  <otaylor@redhat.com>
      
              #71597, reported by Morten Welinder
      
              * gdk/gdkpixbuf-drawable.c (rgb888amsb): Fix and simplify
              (Patch from Christian Petig)
      
              * gdk/gdkpixbuf-drawable.c (rgb{555,565}{a,}{msb,lsb}):
              Major rewrite of 555 and 565 conversion routines:
      
              - Move all the bit shifting into a small block of macros,
                eliminating much duplication of complicated arithmetic.
              - Get rid of 2-pixels at a time code, which was buggy,
                hard to maintain, caused unaligned accesses, and
                probably didn't actually perform any better.
              - Simplify cases where different data types were
                used for the little and big endian cases, use
                GUINT16_SWAP_LE_BE() where appropriate.
      84ebfb7e
    • Owen Taylor's avatar
      Remove bad optimization for src_rowstride == dest_stride. (Didn't consider · 794a3a9f
      Owen Taylor authored
      Tue Jun  3 15:05:47 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkdrawable-x11.c (convert_to_format): Remove
              bad optimization for src_rowstride == dest_stride.
              (Didn't consider the case where we were copying only
              partial widths of a wider source buffer)
              (#113034, reported by Hans Petter Jansson)
      794a3a9f
    • Michael Natterer's avatar
      reenabled button_release events for xinput devices. (#113948) · ace98aba
      Michael Natterer authored
      2003-06-03  Michael Natterer  <mitch@gimp.org>
      
      	* gdk/x11/gdkinput-x11.c (_gdk_input_common_find_events):
      	reenabled button_release events for xinput devices. (#113948)
      ace98aba
    • Christian Rose's avatar
      Added "li" to ALL_LINGUAS. Added Limburgish translation by Mathieu van · 6e8aa0a1
      Christian Rose authored
      2003-06-03  Christian Rose  <menthos@menthos.com>
      
      	* configure.in: Added "li" to ALL_LINGUAS.
      	* po/li.po: Added Limburgish translation by
      	Mathieu van Woerkom <mathieu.brabants.org>.
      6e8aa0a1
    • Abel Cheung's avatar
      Added gdk-pixbuf/io-pcx.c and gtk/gtkcalendar.c · a2370432
      Abel Cheung authored
      2003-06-03  Abel Cheung  <maddog@linux.org.hk>
      
      	* POTFILES.in: Added gdk-pixbuf/io-pcx.c and
      	  gtk/gtkcalendar.c
      a2370432
  5. 02 Jun, 2003 4 commits
  6. 31 May, 2003 4 commits
  7. 30 May, 2003 1 commit
    • Murray Cumming's avatar
      Added 4-sided padding as properties with gtk_alignment_get_padding() and · 6006834d
      Murray Cumming authored
      2003-05-30  Murray Cumming  <murrayc@usa.net>
      
              * gtk/gtkalignment.[h|c]: Added 4-sided padding as properties with
              gtk_alignment_get_padding() and gtk_aligment_set_padding(). This
              uses the new private data system - see g_type_class_add_private() in
              gtk_alignment_class_init() and the use of GTK_ALIGNMENT_GET_PRIVATE().
      6006834d