Commit Graph

1028 Commits

Author SHA1 Message Date
Carsten Haitzler
798e25b6f7 DAMN CVS!
DAMN CVS!
1998-07-31 16:47:51 +00:00
Carsten Haitzler
8f3e4424bf blah
blah
1998-07-31 16:20:34 +00:00
Carsten Haitzler
f22d8e2248 missed 2 files form lats commit
missed 2 files form lats commit
1998-07-31 04:01:36 +00:00
EDT 1998 The Rasterman
ea278eb5bb fixed another drawing buglet in the frame drawing code (actually in the
Thu Jul 30 23:36:46 EDT 1998 The Rasterman <raster@redhat.com>
        * fixed another drawing buglet in the frame drawing code (actually
	in the clearing code but anyway in gtkstyle.c)
1998-07-31 03:46:11 +00:00
EDT 1998 The Rasterman
bef62ec152 Fixed warning from colorsel widget...
Thu Jul 30 19:23:48 EDT 1998 The Rasterman <raster@redhat.com>
        * Fixed warning from colorsel widget...
1998-07-30 23:21:02 +00:00
EDT 1998 The Rasterman
38c30244bb Fixed defautl drawing code to no longer clobber the original style pixmap
Thu Jul 30 19:10:42 EDT 1998 The Rasterman <raster@redhat.com>
        * Fixed defautl drawing code to no longer clobber the original style
	pixmap bgs as it did and added a helper funciton in gtkstyle.c to
	help with this.
1998-07-30 23:11:06 +00:00
Owen Taylor
e439315d93 More mm fixups
Thu Jul 30 18:09:21 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkrc.c gtk/gtkstyle.c: More mm fixups

	* gtk/gtktooltips.c: Pass a widget (the window) to the
	  drawing function instead of the GtkTooltips.
1998-07-30 22:04:38 +00:00
Owen Taylor
1b1aa9d98d Abstract out checking for shape extension into a function.
Thu Jul 30 17:27:10 1998  Owen Taylor  <otaylor@redhat.com>

	* gdk/gdkwindow.c: Abstract out checking for shape
	  extension into a function.

	* gtk/gtkwindow.c: Fix up gtk_window_expose()/draw().
	  Remove extra callls to gtk_window_draw().

Miscellaneous indentation fixes.
1998-07-30 21:21:43 +00:00
EDT 1998 The Rasterman
70b7979df8 Moved all the themes to install cleanly the engine *.so's in
Thu Jul 30 14:51:34 EDT 1998 The Rasterman <raster@redhat.com>
        * Moved all the themes to install cleanly the engine *.so's in
	$(exec_prefix)/lib/gtk/themes/engines/ .
	All the data for themes is now installed in
	$(exec_prefix)/share/gtk/themes/theme_name/
	All things build using GNU configure and autoconf and libtool now.
	I have created a win95, motif and pixmap theme setup - i have to
	work on the motif and win95 ones - pixmap theme also need work -
	it partially parses a gtkrc for itself. This is goign to be a good
	sample base to work from if you wish to write your own theme engines.
1998-07-30 18:53:11 +00:00
Owen Taylor
ac4aaf0def Fixed mistaken deletion of a line; updates from main branch 1998-07-30 16:30:27 +00:00
Owen Taylor
8461f6e3eb Memory management fixups.
Thu Jul 30 11:18:43 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkstyle.c gtk/gtkrc.c: Memory management fixups.

	* themes/th_main.c: Moved messages around so they are
	  printed before destroying strings.
1998-07-30 15:14:36 +00:00
Owen Taylor
798d7ca2da Fairly implementation of expose compression. (No GraphicsExpose
Wed Jul 29 16:56:07 1998  Owen Taylor  <otaylor@redhat.com>

	* gdk/gdk.c: Fairly implementation of expose compression.
	  (No GraphicsExpose compression yet, always compress
	  with the equivalent of XtCompressMultiple - no compression
	  of Expose events across non-Expose events)

	* gdk/gdk.h gdk/gdkrectangle.c: gdk_rectangle_union()
	  Find rectangle bounding two rectangles.

	* gtk/gtkstyle.c: Set clip rects for a few extra GC's
	  in gdk_default_draw_shadow()
1998-07-29 21:07:00 +00:00
EDT 1998 The Rasterman
8fc624c81b Fixed drawing functions to handle switching themes on the fly gracefully
Wed Jul 29 16:03:20 EDT 1998 The Rasterman <raster@redhat.com>
        * Fixed drawing functions to handle switching themes on the fly
	  gracefully and look decent.
1998-07-29 19:59:53 +00:00
EDT 1998 The Rasterman
513de4171a Added all the theme drawing code to all widgets, fixed up minor nigglies
Tue Jul 28 22:52:10 EDT 1998 The Rasterman <raster@redhat.com>
        * Added all the theme drawing code to all widgets, fixed up minor
  	  nigglies in some widgets when it comes to themes, seem to be
 	  running into some funky behavior with clipping rects in GC's. Too
	  many files to list here. (all files that now use gtk_paint_* are
	  affected).
1998-07-29 03:29:17 +00:00
Owen Taylor
842d668599 Set up the demo theme so it is loaded from the RC file.
Tue Jul 28 22:49:16 1998  Owen Taylor  <otaylor@redhat.com>

	* themes/th_main.c themes/th_draw.c gtk/testgtkrc:
	  Set up the demo theme so it is loaded from the RC file.

	* themes/th_draw.c: Alleviate the hardcoded paths a wee
	  bit. (use $HOME/themes/)
1998-07-29 03:10:22 +00:00
Owen Taylor
79ba0b2aed Set up the demo theme so it is loaded from the RC file.
Tue Jul 28 22:49:16 1998  Owen Taylor  <otaylor@redhat.com>

	* themes/th_main.c themes/th_draw.c gtk/testgtkrc:
	  Set up the demo theme so it is loaded from the RC file.

	* themes/th_draw.c: Alleviate the hardcoded paths a wee
	  bit. (use $HOME/themes/)

	* gtk/gtkthemes.[ch] gtk/gtkmain.c: Load engines specified in
	  the RC file via dlopen()
1998-07-29 02:47:01 +00:00
Owen Taylor
d0f68a5c1f nternal handling of styles and RC styles pretty much completely reworked
nternal handling of styles and RC styles pretty much
	completely reworked for Theme work.

	* gtkthemes.[ch]:
	 - Added routines for virtualization of RcStyle and Style handling.
	 - Temporary "sample" inline theme-engine. (Does nothing
	   but print out a few messages.

	* gtkrc.[ch]
	 - Made GtkRcStyle public, added flags to tell if particular
	   colors have been set.
	 - RC Styles are "transparent", and the final style for
	   a widget is the composition of all matching styles
	 - Added pointer to GtkThemeEngine, and gpointer engine_data
	   to RC style and style.
	 - Parse "engine" keyword, load the appropriate theme engine
	   and call the engine's parser.

	*  gtkstyle.[ch]
	 - Keep a GtkRcStyle * in styles created from Rc Styles.
	 - Load up images from RC file at style attachment time.
         - Call ->engine->foo() at appropriate times.
	 - Don't use a GCache. All incarnations for a style are
	   just linked together in a list, depend on the RC style
	   code to find the existing copy.
1998-07-29 01:29:30 +00:00
Owen Taylor
b01d52b537 Single line change to fix window redraws. 1998-07-28 23:25:22 +00:00
Carsten Haitzler
78a42b742e oops missed them
oops missed them
1998-07-28 20:53:25 +00:00
Carsten Haitzler
742c12580d GTK theme revision 2 now in CVS themes 2 branch........ WHEEEEEEEEEEE!
GTK theme revision 2 now in CVS themes 2 branch........ WHEEEEEEEEEEE!
1998-07-28 20:39:26 +00:00
Owen Taylor
b6c34a8190 Added the concept of queued redraws of partial areas. This can be done
Tue Jul 28 14:41:54 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkwidget.[ch]: Added the concept of queued redraws
	  of partial areas. This can be done either relative
	  to the existing windows (gtk_widget_queue_clear[_area]())
	  or relative to the future allocation of the widget
	  (gtk_widget_queue_draw[_area]).

	  The initial implementation is pretty braindead, but
	  can be improved.

	* gtk/gtkwidget.[ch]: Removed calls to gdk_window_clear_area()
	  in favor of gtk_widget_queue_clear().

	* gtk/gtklabel.[ch] gtk/gtkpixmap.[ch]: Removed needs_clear
	  flags in favor of gtk_widget_queue_clear()

[ Began a new branch for ongoing RHAD themes work ]
1998-07-28 19:26:21 +00:00
CDT 1998 Shawn T. Amundson
71c52a71f4 new format for GDK documentation. Eventually plan to remove gdk.texi, but
Tue Jul 28 00:15:28 CDT 1998 Shawn T. Amundson <amundson@gtk.org>

        * docs/gdk.sgml: new format for GDK documentation.  Eventually
	  plan to remove gdk.texi, but not quite yet.  Just getting
	  started.
1998-07-28 05:19:38 +00:00
BST 1998 Tony Gale
49fdaf4fff GtkTree section from David Huggins-Daines <bn711@freenet.carleton.ca>, add
Mon Jul 27 09:18:13 BST 1998  Tony Gale  <gale@gtk.org>

        * docs/gtk_tut.sgml: GtkTree section from
          David Huggins-Daines <bn711@freenet.carleton.ca>,
          add a GtkText widget example
        * examples/text/* example/tree/* : new examples for the
          GtkTree and GtkText widgets
        * docs/gtk_tut.sgml: added an appendix to hold complete code                          examples that aren't in a full form elsewhere in the
          tutorial (e.g. scribble)
1998-07-27 08:24:38 +00:00
BST 1998 Tony Gale
8864534892 GtkTree section from David Huggins-Daines <bn711@freenet.carleton.ca>, add
Mon Jul 27 09:18:13 BST 1998  Tony Gale  <gale@gtk.org>

        * docs/gtk_tut.sgml: GtkTree section from
          David Huggins-Daines <bn711@freenet.carleton.ca>,
          add a GtkText widget example
        * examples/text/* example/tree/* : new examples for the
          GtkTree and GtkText widgets
1998-07-27 08:21:40 +00:00
CDT 1998 Shawn T. Amundson
718259dcc2 Released GTK+ 1.1.0
Mon Jul 27 00:46:21 CDT 1998 Shawn T. Amundson <amundson@gtk.org>

        * Released GTK+ 1.1.0
GTK_1_1_0
1998-07-27 06:59:50 +00:00
Tim Janik
31055c2981 fixed EXTRA_DIST sections 1998-07-27 02:51:48 +00:00
Tim Janik
f111f4b58e revamped the definitions for 1-1-0, so that all the new API stuff is
Mon Jul 27 04:18:26 1998  Tim Janik  <timj@gtk.org>

        * gtkfeatures.h.in: revamped the definitions for 1-1-0, so that all
        the new API stuff is reflected in one #define GTK_HAVE_FEATURES_1_1_0.
1998-07-27 02:24:39 +00:00
Tim Janik
fc7c7f466f fixup, so that enum values are looked up.
Mon Jul 27 03:11:20 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtkbindings.c (binding_compose_params): fixup, so that enum
        values are looked up.

        * gtk/gtktypeutils.h:
        * gtk/gtktypeutils.c: new functions gtk_type_flags_find_value and
        gtk_type_enums_find_value to lookup enum values.

        * gtk/gtkctree.h:
        * gtk/gtkctree.c: change enum name from GtkCTreeExpansion to
        GtkCTreeExpansionType. fixed signal creations to pass the enum
        types not just the base type GTK_TYPE_ENUM.

        * gtk/gtkclist.h:
        * gtk/gtkclist.c: fixed signal creations to pass the real enum
        types not just the base type GTK_TYPE_ENUM.
1998-07-27 01:50:16 +00:00
Lars Hamann
656061cb2b little fix to avoid warnings
* gtk/gtkclist.c gtk/gtkctree.c : little fix to avoid warnings
1998-07-26 15:54:41 +00:00
Stefan Jeske
a7f95d982f --- 1998-07-26 14:46:52 +00:00
Stefan Jeske
7170996088 Began cleanup, e.g. use gtk_widget_show_all instead of many
gtk_widget_show's. Completely rewrote the button box sample
(only one window now). Removed "miscellaneous" button.
1998-07-26 14:45:40 +00:00
Stefan Jeske
fb430a8dc5 Fixed wrong allocation for GTK_BUTTONBOX_END.
(allocation->x  =>  allocation->y)
1998-07-26 14:44:36 +00:00
Lars Hamann
65044acefd fix for pointer grab
* gtk/gtkclist.c (gtk_clist_button_press) (gtk_clist_button_release)
  (abort_column_resize) (gtk_clist_key_press): fix for pointer grab

* gtk/gtkctree.c (real_tree_select): added check to avoid double
  selected rows
  (gtk_ctree_button_press)
  (gtk_ctree_button_release): fix for pointer grab
1998-07-26 13:12:07 +00:00
Damon Chaplin
72415bc1a7 *** empty log message *** 1998-07-25 12:17:45 +00:00
Damon Chaplin
3f8175bb20 Fixed 2 bugs in font selection - initialising array sizes and checking that
a bitmapped font can be scaled.
1998-07-25 12:09:38 +00:00
Tim Janik
5c86382961 minor adjustments. 1998-07-25 04:07:04 +00:00
Lars Hamann
165fab7605 test for node != NULL (gtk_ctree_is_visible) (gtk_ctree_realize)
* gtk/gtkctree.c (gtk_ctree_sort_recursive)
  (gtk_ctree_sort_recursive): test for node != NULL
  (gtk_ctree_is_visible) (gtk_ctree_realize) (gtk_ctree_unrealize)
  (gtk_ctree_last) : added sanity checks
* gtk/gtkclist.c (gtk_clist_button_press): removed "no_focus_row"
1998-07-25 01:10:58 +00:00
Lars Hamann
f970ecf821 mini code cleanup
* gtk/gtkclist.c (toggle_focus_row): mini code cleanup
1998-07-24 16:22:53 +00:00
Paolo Molaro
7b1a4b5eb5 Fri, 24 Jul 1998 10:56:22 +0200 Paolo Molaro <lupus@debian.org>
* gtk/gtkfeatures.h.in: added GTK_HAVE_ENUM_VALUE_STRUCT.
1998-07-24 08:53:59 +00:00
Tim Janik
8c56db61e3 introduce testbindings on C-1 for buttons, to check out binding
Thu Jul 23 00:11:39 1998  Tim Janik  <timj@gtk.org>

        * gtk/testgtkrc: introduce testbindings on C-1 for buttons,
        to check out binding priorities. someone should really write
        gtkrc-mode for emacs.

        * gtk/gtkwidget.c (gtk_widget_class_init): remove ugly bindings test.
        * gtk/testgtk.c (main): and move it here ;). this test says something
        on release of C-9. (this works only if the mouse pointer is on a
        spinbutton and there is no focus widget).

        * gtk/gtkrc.h:
        * gtk/gtkrc.c:
        export gtk_rc_parse_color, gtk_rc_parse_state and a new function
        gtk_rc_parse_priority to parse path priority types.
        export rc tokens.
        feature binding parsing.

Wed Jul 22 23:41:17 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtkbindings.h:
        * gtk/gtkbindings.c: new function gtk_binding_parse_binding() to
        feature binding parsing in rc files.
        * gtk/gtkbindings.c (gtk_binding_set_new): bug fix.
        * gtk/gtkbindings.c (gtk_binding_pattern_compare): bug fix, we used to
        order the bindings with lowest priority first.
1998-07-22 22:29:10 +00:00
Manish Singh
3ea4f70fa6 actually builds and runs properly on big endian machines now, because we
* gdk/gdkrgb.c: actually builds and runs properly on big endian machines
now, because we #include config.h. Also fixed up a compile error in the
WORDS_BIGENDIAN case in gdk_rgb_convert_565_gray. I made the fix by looking
at patterns in the other code; Raph can you verify this?

* gdk/gdkthreads.c: #include <unistd.h> to quell compiler warnings

-Yosh
1998-07-22 22:22:05 +00:00
Lars Hamann
aa1bf58196 few fixes for gtk_signal_emits
* gtk/gtkctree.c (tree_select/unselect) (tree_expand/collapse)
  (tree_toggle_expansion) (real_select/unselect_row)
  (gtk_ctree_select/unselect) : few fixes for gtk_signal_emits
1998-07-22 21:13:48 +00:00
Tim Janik
59a36172d8 make auto-files update 1998-07-22 19:23:51 +00:00
Owen Taylor
b4c814e272 We free things from the text property MemChunk, so it needs to be
Wed Jul 15 17:44:47 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtktext.c (new_text_property): We free things from
	the text property MemChunk, so it needs to be G_ALLOC_AND_FREE.

	* Fix up line start cache when splitting a property
	during an insert.
1998-07-21 19:31:38 +00:00
Elliot Lee
8cf49d7c10 genmarshal.pl: Handle complex types, and functions with a return value but
genmarshal.pl: Handle complex types, and functions with a return value but
	       no parameters.
genmarshal.pl gtkmarshal.* gtkwidget.c: Remove support for GDK_EVENT and
				        STYLE parameter types.
1998-07-21 18:49:53 +00:00
Elliot Lee
5f8748c53e Marshallers for C_CALLBACK parameters now pass "func, func_data," instead
Marshallers for C_CALLBACK parameters now pass "func, func_data," instead
of "func,".
1998-07-21 16:06:00 +00:00
Raph Levien
d154bfafd9 More minor config fixes. 1998-07-21 05:53:44 +00:00
Raph Levien
4667d36ccd Fixed minor config bug. 1998-07-21 05:20:29 +00:00
Elliot Lee
e53fd25b04 missed this 1998-07-21 05:01:37 +00:00
Stefan Jeske
dbfe3d3967 Fixed wrong size of activity indicator. It is settable now as a fraction
Tue Jul 21 06:32:43 1998  Stefan Jeske  <stefan@gtk.org>

	* gtk/gtkprogressbar.{c,h} gtk/testgtk.c: Fixed wrong size of
 	activity indicator. It is settable now as a fraction of the
	total width/height using gtk_progress_bar_set_activity_blocks.
	Renamed gtk_progress_bar_set_number_of_blocks to
	gtk_progress_bar_set_discrete_blocks.
1998-07-21 04:49:01 +00:00