1. 31 Jul, 2000 5 commits
    • Owen Taylor's avatar
      Fix problem where computation was depending on widget->allocation instead · e9a03443
      Owen Taylor authored
      Mon Jul 31 18:37:36 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkentry.c (entry_adjust_scroll): Fix problem where computation
      	was depending on widget->allocation instead of the width of text_area,
      	which was incorrect for subclasses like GtkSpinButton.
      
      	* gdk/gdkpango.c (gdk_draw_layout): Fix a couple of typos
      	with width == 1 tests that should be width == -1.
      e9a03443
    • Owen Taylor's avatar
      Replace broken, (broken, Elliot, every single window blank on X) custom · 44afc537
      Owen Taylor authored
      Mon Jul 31 16:45:48 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkwindow.c (gdk_window_process_updates_internal): Replace broken,
      	(broken, Elliot, every single window blank on X) custom code with call
      	to gdk_window_is_viewable() which a) prevents code duplicate and
      	b) works.
      44afc537
    • Elliot Lee's avatar
      We really do need to include gdkfb.h in order to get the GDK_PARENT_ROOT() · d9e05d70
      Elliot Lee authored
      
      
      * gtk/gtkcolorsel.c: We really do need to include gdkfb.h in order to get the GDK_PARENT_ROOT()
      macro to work.
      * gtk/gtkmarshal.list: Add NONE:STRING,POINTER
      * gdk/gdkwindow.c: Don't send expose events, or invalidate pieces of, windows that aren't shown.
      * gdk/linux-fb: Redraw-when-menu-hidden solved, plus a bunch of pointer grab stuff.
      d9e05d70
    • BST 2000  Tony Gale's avatar
      s/gtk_main_iteration/g_main_iteration/ · 621639b7
      BST 2000 Tony Gale authored
      Mon Jul 31 13:53:16 BST 2000  Tony Gale <gale@gtk.org>
      
              * docs/gtkfaq.sgml docs/gtk-faq.sgml:
                s/gtk_main_iteration/g_main_iteration/
      
                Did this already in change:
                      Mon Nov 15 17:17:51 GMT 1999 Tony Gale  <gale@gtk.org>
                don't know how it got reverted.
      621639b7
    • Stanislav Brabec's avatar
      #ifdef G_ENABLE_DEBUG around gdk_arg_debug_cb and gdk_arg_no_debug_cb to · e4d140d5
      Stanislav Brabec authored
      2000-07-31  Stanislav Brabec  <utx@penguin.cz>
      
              * gdk/gdk.c: #ifdef G_ENABLE_DEBUG around gdk_arg_debug_cb and
              gdk_arg_no_debug_cb to fix compilation problem with --disable-debug.
      
              * gdk/Makefile.am: Link gdk against actually compiled gdk_pixbuf-1.3,
              not gdk_pixbuf.
      e4d140d5
  2. 30 Jul, 2000 2 commits
    • Pablo Saratxaga's avatar
      updated Serbian files · 3d8f790e
      Pablo Saratxaga authored
      3d8f790e
    • Tor Lillqvist's avatar
      Add makefile.mingw.in to EXTRA_DIST. · 471396fd
      Tor Lillqvist authored
      2000-07-30  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/Makefile.am: Add makefile.mingw.in to EXTRA_DIST.
      
      	* gdk/win32/gdkevents-win32.c (gdk_events_init, gdk_events_queue):
      	Remove the g_pipe_readable_msg stuff. Not needed with new GLib
      	GIOChannel implementation.
      
      	* gdk/win32/gdkinput.c
      	* gdk/win32/gdkpango-win32.c: Update license name here, too.
      
      	* gdk/win32/gdkwin32id.c (gdk_win32_handle_table_lookup): Fix
      	definition to match prototype.
      
      	* gtk/makefile.mingw.in: Add libiconv CFLAGS and LIBS.
      471396fd
  3. 28 Jul, 2000 1 commit
    • Elliot Lee's avatar
      Add gdk_pixbuf_loader_new_with_type function, to allow handling image · 3ddaa735
      Elliot Lee authored
      
      
      2000-07-27  Elliot Lee  <sopwith@redhat.com>
      
      	* gtk/gdk-pixbuf-loader.[ch]: Add gdk_pixbuf_loader_new_with_type
      	function, to allow handling image formats that cannot be detected
      	by looking at content alone.
      
      gdk-pixbuf/
      2000-07-27  Elliot Lee  <sopwith@redhat.com>
      	* gdk-pixbuf-io.h, gdk-pixbuf-io.c: Add gdk_pixbuf_get_named_module() function to facilitate above change
      	* io-bmp.c: Don't malloc a temporary buffer - use stack instead.
      	* io-wbmp.c, pixbufloader_wbmp.defs, gdk-pixbuf-io.c, Makefile: Implement loader for WBMP format.
      
      **NOTE: I haven't tested this yet, I need to sync it to another machine, but it if it is broken
      I'm already working on fixing it
      3ddaa735
  4. 27 Jul, 2000 2 commits
  5. 26 Jul, 2000 5 commits
  6. 25 Jul, 2000 5 commits
    • Havoc Pennington's avatar
      update to reflect text widget changes. · a4762fbf
      Havoc Pennington authored
      2000-07-25  Havoc Pennington  <hp@redhat.com>
      
      * gtk/testtext.c, gtk/testtextbuffer.c: update to reflect text
      widget changes.
      
      * gtk/gtktextview.h: To be consistent with usage of "line"
      throughout the API to mean "newline-terminated thingy", change
      MOVEMENT_LINE to be MOVEMENT_WRAPPED_LINE, and MOVEMENT_PARAGRAPH
      to MOVEMENT_LINE.
      
      (GtkTextView): Add flags for default editability, and whether to
      show the cursor. Add functions to get/set that. Add
      
      (gtk_text_view_get_iter_location): new function
      
      * gtk/gtktexttypes.h: Move GtkTextLine typedef from here to
      gtktextlayout.h
      (g_convert): Add g_convert temporarily, will go in glib in a bit
      
      * gtk/gtktexttagtable.h: include gtktexttag.h, and define
      GtkTextTagTableForeach instead of brokenly using GHFunc.
      Change gtk_text_tag_table_foreach() so it doesn't use GHFunc.
      
      * gtk/gtktexttagprivate.h: Remove GtkTextStyleValues from here,
      moved to public header.
      
      * gtk/gtktexttag.h: Rename the "elide" attribute of tags to
      "invisible", since "elide" was a bad name.
      (gtk_text_tag_get_priority): Added
      
      (GtkTextStyleValues): put this in public header, along with
      functions to use it.
      
      * gtk/gtktextmarkprivate.h: Include more headers, since we no
      longer include gtktextbtree.h.
      
      * gtk/gtktextmark.h: Add gtk_text_mark_ref, gtk_text_mark_unref,
      gtk_text_mark_deleted
      
      * gtk/gtktextlayout.h: Don't include the "really private" headers,
      only buffer/iter. Forward declare GtkTextLIne and GtkTextLineData
      to make this possible. Now we only need to install
      gtktextlayout.h, not gtktextbtree.h and gtktext*private.h.
      (However the Makefile.am isn't changed yet because of the
      logistics of merging gtk-hp-patches piecemeal)
      
      * gtk/gtktextiterprivate.h: include btree header, so it compiles;
      rename gtk_text_iter_get_line to gtk_text_iter_get_text_line since
      gtk_text_iter_get_line is now used in the public API for a
      different purpose.
      
      * gtk/gtktextiter.h: Clean up function names to be more
      consistent. Always call char offset "offset" and byte index
      "index". A "line" is always a line number.
      
      (gtk_text_iter_is_last): new function, more efficient than
      the existing way to check
      (gtk_text_iter_is_first): new function, also more efficient
      
      (gtk_text_iter_up_lines, gtk_text_iter_down_lines): Remove these
      
      (gtk_text_iter_next_char, gtk_text_iter_prev_char): Renamed from
      gtk_text_iter_forward_char, etc.
      
      (gtk_text_iter_forward_to_tag_toggle): Renamed from
      forward_find_tag_toggle, since this isn't a linear search
      
      (GtkTextCharPredicate): rename from GtkTextViewCharPredicate
      
      (gtk_text_iter_forward_search, gtk_text_iter_backward_search):
      New functions, search for a buffer substring.
      
      * gtk/gtktextbuffer.h: Add fields to store whether a paste is
      interactive and default editable (since we need to store that info
      until we receive the selection data).
      
      Remove all the _at_char and at_line etc. versions of functions;
      only have iterator versions.
      
      Add _interactive() versions of functions, that consider the
      editability of text. (FIXME add interactive flag to the
      insert/delete signals per Darin's suggestion)
      
      (gtk_text_buffer_get_tag_table): new function, demand-creates the
      tag table if necessary
      
      Remove declaration of gtk_text_buffer_get_iter_from_string
      
      (_gtk_text_buffer_get_btree): private/internal function, added.
      
      
      * gtk/gtktextbtree.h: Remove forward decl of GtkTextLineData.
      (gtk_text_line_is_last): new function
      a4762fbf
    • Havoc Pennington's avatar
      Implement new sane, 5-function API for using GtkProgressBar. See · f56297c5
      Havoc Pennington authored
      2000-07-25  Havoc Pennington  <hp@redhat.com>
      
      * gtk/gtkprogressbar.h: Implement new sane, 5-function API for
      using GtkProgressBar. See Changes-2.0.txt for details.
      
      * gtk/gtkprogressbar.c: Add object arguments "fraction" and
      "pulse_step" which are the equivalent of
      gtk_progress_bar_set_pulse_step and gtk_progress_bar_set_fraction.
      Implement new API.
      
      * gtk/gtkprogress.h (struct _GtkProgress): Add a field
      (use_text_format) to mark whether text set on the progress bar is
      a format string. Deprecate entire GtkProgress interface.
      
      * gtk/gtkprogress.c (gtk_progress_init): init use_text_format to TRUE
      (gtk_progress_build_string): make this a no-op if use_text_format
      is FALSE
      
      * docs/Changes-2.0.txt: Describe progress bar changes.
      f56297c5
    • Tor Lillqvist's avatar
      Generate gdk/, gdk/win32/, and gtk/makefile.mingw. · d1a4a1ea
      Tor Lillqvist authored
      	* configure.in: Generate gdk/, gdk/win32/, and gtk/makefile.mingw.
      d1a4a1ea
    • Tor Lillqvist's avatar
      Generate gtk/makefile.mingw. · 20e675e1
      Tor Lillqvist authored
      2000-07-25  Tor Lillqvist  <tml@iki.fi>
      
      	* configure.in: Generate gtk/makefile.mingw.
      
      	* config.h.win32: Add GETTEXT_PACKAGE.
      
      	* gdk/gdk.def
      	* gtk/gtk.def: Updates.
      
      	* gdk/gdkfont.h
      	* gdk/gdkpixmap.h: Remove temporary Win32-only functions, we don't
      	need them any longer.
      
      	* gdk/gdkinput.h: Mark gdk_core_pointer for export/import.
      
      	* gdk/win32/*.c: More work.
      
      	* gdk/win32/gdkpango-win32.c: New file.
      
      	* gtk/makefile.mingw.in: New file
      
      	* gtk/makefile.cygwin: Removed
      
      	* gtk/Makefile.am: Update accordingly.
      
      	* gtk/gtkmain.c: Use gtk_win32_get_installation_directory().
      
      	* gtk/gtktextdisplay.c: No need to include pangox.h, pango.h
      	is enough.
      
      	* gtk/gtktypeutils.c: Mark glib_debug_objects for import.
      20e675e1
    • Tor Lillqvist's avatar
      Include the build directory. · 5ac61d3e
      Tor Lillqvist authored
      2000-07-25  Tor Lillqvist  <tml@iki.fi>
      
      	* Makefile.am: Include the build directory.
      
      	* configure.in: Generate build/Makefile and build/win32/Makefile.
      
      	* config.h.win32: Add USE_GMODULE and USE_MMX for gdk-pixbuf.
      
      	* gdk/gdk.def
      	* gtk/gtk.def: Updates.
      
      	* gdk/makefile.mingw.in: Define GDK_COMPILATION. Link with
      	PANGOWIN32_LIBS and gdk_pixbuf.
      
      	* gdk/win32: Compiles, but no doubt doesn't work at all.
      
      	* gdk/win32/makefile.mingw.in: Define GDK_COMPILATION.
      
      	* gdk/win32/gdkinput.c: New file, temporarily.
      
      	* gdk/win32/gdkinput-win32.h: New file
      
      	* gdk/win32/gdkinputprivate.h: Remove.
      
      	* gtk/gtkrc.[ch] (gtk_win32_get_installation_directory): Renamed and
      	made externally visible.
      5ac61d3e
  7. 24 Jul, 2000 1 commit
    • Elliot Lee's avatar
      (Part 2) Remove gdk_*_lookup() defines, since they are defined by the · 6d7a643f
      Elliot Lee authored
      
      
      (Part 2)
      	* gdk/gdkprivate.h: Remove gdk_*_lookup() defines, since they are defined by the
      	individual backends already.
      	* gdk/gdkregion-generic.h, gdk/gdktypes.h: Put gdkregionbox & gdksegment back together
      	again. Yes, there really is a good reason for this, if you are using the gdkregion
      	internals, and if you're not, why do you care?
      	* gdk/gdkwindow.c: Fix inverted condition
      	* gdk/linux-fb: Compiles (for me - it will not work elsewhere most likely).
      	* gtk/gtkcolorsel.c, gtk/gtkwindow.c: Add include for linux-fb
      	* gtk/gtkrange.c: Redraw trough when moving.
      	* gtk/gtktypeutils.c: Fix warning by adding const cast.
      	* modules/linux-fb/basic.c: Fix unknown glyph retrieval.
      6d7a643f
  8. 23 Jul, 2000 1 commit
    • Tor Lillqvist's avatar
      More work on GDK for Win32. Still in an intermediate state. · 20b5d8ec
      Tor Lillqvist authored
      2000-07-23  Tor Lillqvist  <tml@iki.fi>
      
      	More work on GDK for Win32. Still in an intermediate state.
      
      	* gdk/makefile.cygwin
      	* gdk/win32/makefile.cygwin: Removed.
      
      	* gdk/makefile.mingw.in
      	* gdk/win32/makefile.mingw.in: New files.
      
      	* gdk/Makefile.am
      	* gdk/win32/Makefile.am: Generate and distribute them.
      
      	* gdk/win32/gdkwindow-win32.h
      	* gdk/win32/gdkdrawable-win32.h
      	* gdk/win32/gdkpixmap-win32.h: New files.
      
      	* gdk/win32/gdkcolor-win32.c
      	* gdk/win32/gdkcursor-win32.c
      	* gdk/win32/gdkgc-win32.c
      	* gdk/win32/gdkimage-win32.c
      	* gdk/win32/gdkprivate-win32.h
      	* gdk/win32/gdkwin32.h: Update data structures. Cosmetics:
      	don't use fields and variables called xcursor, xid, etc (leftovers
      	from the X11 backend).
      20b5d8ec
  9. 22 Jul, 2000 3 commits
  10. 21 Jul, 2000 3 commits
    • Owen Taylor's avatar
      Use new PangoAttrShape to reserve space for pixmaps, add GSList *pixmaps · e6be8f3f
      Owen Taylor authored
      Fri Jul 21 15:28:13 2000  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtktextlayout.[ch], gtk/gtktextdisplay.c: Use new
      	PangoAttrShape to reserve space for pixmaps, add
      	GSList *pixmaps to GtkTextLineDisplay, draw the pixmaps
      	in the display functions.
      
      	* gtk/testgtk.c (create_layout): Set some more exotic
      	scrolled window options
      
      	* gtk/gtkscrolledwindow.[ch] (gtk_scrolled_window_set_shadow_type):
      	Add function to set the shadow type of a window, to allow
      	putting a shadow around widgets such as GtkLayout or GnomeCanvas
      	which don't draw their own frame.
      e6be8f3f
    • BST 2000  Tony Gale's avatar
      New file for packaging DocBook format tutorial · fa5d7c77
      BST 2000 Tony Gale authored
      Fri Jul 21 16:34:42 BST 2000  Tony Gale <gale@gtk.org>
      
              * docs/tutorial/package-db-tutorial.sh: New file for
                packaging DocBook format tutorial
      fa5d7c77
    • BST 2000  Tony Gale's avatar
      Minor updates · a7ac5157
      BST 2000 Tony Gale authored
      Fri Jul 21 14:23:51 BST 2000  Tony Gale <gale@gtk.org>
      
              * docs/tutorial/gtk-tut.sgml: Minor updates
      
              * docs/tutorial/*.jpg *.eps: Screenshots for tutorial
      a7ac5157
  11. 20 Jul, 2000 1 commit
    • Tor Lillqvist's avatar
      Fix C++ comment. · 631205dd
      Tor Lillqvist authored
      2000-07-19  Tor Lillqvist  <tml@iki.fi>
      
      * gtk/gtksignal.c: Fix C++ comment.
      
      * gtk/gtkimmulticontext.c
      * gtk/gtktextbtree.c: Remove gccisms: Don't use __FUNCTION__,
      don't return value from void functions.
      
      * gtk/gtk.def: Add gtk_rc_style_unref.
      631205dd
  12. 19 Jul, 2000 2 commits
    • Sebastian Wilhelmi's avatar
      Include files outside of the extern "C" block. Makes some C++ compiler · 1e166c06
      Sebastian Wilhelmi authored
      
      2000-07-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* gdk-pixbuf/gdk-pixbuf.h, gtk/gtkhsv.h, gtk/gtktextbtree.h,
      	gtk/gtktextbuffer.h, gtk/gtktextchild.h, gtk/gtktextdisplay.h,
      	gtk/gtktextiter.h, gtk/gtktextiterprivate.h, gtk/gtktextlayout.h,
      	gtk/gtktextmarkprivate.h, gtk/gtktextsegment.h, gtk/gtktexttag.h,
      	gtk/gtktexttagtable.h, gtk/gtktexttypes.h, gtk/gtktextview.h,
      	gtk/gtktypeutils.h: Include files outside of the extern "C"
      	block. Makes some C++ compiler happy. Reported by Denis Vakatov
      	<vakatov@peony.nlm.nih.gov>.
      
      	I really hope not to have caused a merging nightmare for all
      	the branches out there. Otherwise I'll be available for crucifixion.
      1e166c06
    • BST 2000  Tony Gale's avatar
      Yet more clean ups. Completes first pass. Hurrah! · 8ac34068
      BST 2000 Tony Gale authored
      Wed Jul 19 14:07:57 BST 2000  Tony Gale <gale@gtk.org>
      
              * docs/tutorial/gtk-tut.sgml: Yet more clean ups.
                Completes first pass. Hurrah!
      8ac34068
  13. 18 Jul, 2000 1 commit
    • BST 2000  Tony Gale's avatar
      More clean ups. · 18e2da33
      BST 2000 Tony Gale authored
      Tue Jul 18 17:17:55 BST 2000  Tony Gale <gale@gtk.org>
      
              * docs/tutorial/gtk-tut.sgml: More clean ups.
      18e2da33
  14. 17 Jul, 2000 3 commits
    • Owen Taylor's avatar
      Restore code to paint the background of the text area which was · b8dcd76c
      Owen Taylor authored
      Mon Jul 17 18:52:38 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkentry.c (gtk_entry_draw_text): Restore code to
      	paint the background of the text area which was accidentally
      	removed at some point.
      
      	* gtk/gtkrc.[ch] gtk/gtkstyle.[ch] gtk/gtkthemes.[ch]:
      
      	 - Move	most of the functionality from the theme vtable
      	   into GtkRcStyleClass and GtkStyleClass. The moved
      	   vtable functions were changed a bit in the move to
      	   work better in their new home.
      
      	 - Get rid of the engine and engine_data fields from
      	   GtkRcStyle and GtkStyle; instead the theme
      	   engine derives theme-specific subclasses of GtkRcStyle
      	   and GtkStyle
      
      	 - Add extra dlsym() found entry point to themes,
      	   theme_create_rc_style().
      
      	* gtk/gtkstyle.c: Copy xthickness, ythickness fields
      	in gtk_style_real_copy.
      
       	* gtk/themes.[ch]: add a function gtk_theme_engine_register_type()
      	to register a type associated with an engine. (The engine
      	won't be unloaded as there is an instance of the type.)
      b8dcd76c
    • BST 2000  Tony Gale's avatar
      Clean ups. · 2465ad85
      BST 2000 Tony Gale authored
      Mon Jul 17 18:19:06 BST 2000  Tony Gale <gale@gtk.org>
      
              * docs/tutorial/gtk-tut.sgml: Clean ups.
      2465ad85
    • BST 2000  Tony Gale's avatar
      Initial DocBook version. Lots of cleaning up to do. · 6c9b8cab
      BST 2000 Tony Gale authored
      Mon Jul 17 13:59:29 BST 2000  Tony Gale <gale@dera.gov.uk>
      
              * docs/tutorial/gtk-tut.sgml: Initial DocBook version. Lots
                of cleaning up to do.
      6c9b8cab
  15. 15 Jul, 2000 2 commits
  16. 14 Jul, 2000 3 commits
    • Owen Taylor's avatar
      Released 1.3.1 · 72fe20c1
      Owen Taylor authored
      Fri Jul 14 18:40:39 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* Released 1.3.1
      72fe20c1
    • Owen Taylor's avatar
      use FALSE for size_only most of the time when calling · 0bcf86c0
      Owen Taylor authored
      Fri Jul 14 16:21:26 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtktextlayout.c: use FALSE for size_only most
      	of the time when calling gtk_text_layout_get_line_display()
      	to avoid causing double reshapes when a redraw follows
      	immediately after.
      
      Tue Jul 11 11:13:40 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkrange.c (gtk_range_default_[hv]slider_update): Invalidate
      	appropriate region and gdk_window_process_updates() so trough
      	updating doesn't lag behind the window being scrolled.
      
              * gdk/gdkgc.c: Make parent_class pointer static.
      
      Sun Jul  9 21:31:23 2000  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdk-pixbuf.c gtk/gdk-pixbuf-loader.c gtk/gtktextview.c:
      	include <string.h>.
      
      	* gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable): Fix
      	cut-and-paste error in computing memory offset for 4 channels.
      0bcf86c0
    • Owen Taylor's avatar
      Remove gtk_rc_append_default_pixmap_path(), since it wasn't adding an · ed7408e1
      Owen Taylor authored
      Fri Jul 14 14:05:02 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkrc.c (gtk_rc_parse_pixmap_path_string): Remove
      	gtk_rc_append_default_pixmap_path(), since it wasn't
      	adding an interesting path and we don't have a meaningful
      	default for this value.
      ed7408e1