Commit Graph

1077 Commits

Author SHA1 Message Date
Owen Taylor
1995cdf3ff Reset all toplevel widgets, not toplevel windows. (I.e., plugs should be
Wed Oct 21 17:44:27 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkwindow.c (gtk_window_read_rcfiles): Reset
	all toplevel widgets, not toplevel windows. (I.e.,
	plugs should be reset)

	* gtk/gtkwindow.c (gtk_window_read_rcfiles): Yes, we
	_do_ need to notify the other toplevels - by the time
	the get the client messages, the RC file dates will
	have been updated.

	* gtk/gtkcontainer.h: Added a function call to list
	every toplevel widget.

	* gdk/gdk.c (gdk_event_send_client_message_to_all_recurse):
	Don't send client messages to _every_ window on display!

Tue Oct 20 16:21:04 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkdnd.c (gtk_drag_source_event_cb): Don't start drags
	when dragging across widgets, only in drags
	starting in widget.

Tue Oct 20 15:59:49 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkdnd.c (gtk_drag_source_info_destroy):
	Emit "drag_end" signal at end of drag.

Tue Oct 20 14:53:28 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkdnd.c: Always send "drag_leave" to dests
	without GTK_DEST_DEFAULT_MOTION.
1998-10-22 00:33:41 +00:00
Owen Taylor
f88651ba08 Maintain the null-termintation guarantee, even when data = NULL, length =
Tue Oct 20 12:43:04 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkselection.c (gtk_selection_data_set):
	Maintain the null-termintation guarantee, even when
	data = NULL, length = 0. (Warn on data = NULL,
	length > 0)

Mon Oct 19 08:31:36 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkdnd.c (gtk_drag_selection_received): Fixed
	typo - look for right atom on transfer failures.
1998-10-20 18:40:14 +00:00
Owen Taylor
6114b7943a Handle DestroyNotify on destroyed windows so we clear the XID table
Tue Oct 20 11:55:24 1998  Owen Taylor  <otaylor@redhat.com>

	* gdk/gdk.c (gdk_event_translate): Handle DestroyNotify
	on destroyed windows so we clear the XID table properly.
	Finish up restructure of return value handling that
	was half-done before.

Mon Oct 19 16:41:44 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkwidget.h (struct _GtkWidgetClass): Add in coordinates
	into function prototype for drag_data_received.
1998-10-20 15:45:48 +00:00
Owen Taylor
bcdb4d3368 Add in coordinates into function prototype for drag_data_received.
Mon Oct 19 16:41:44 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkwidget.h (struct _GtkWidgetClass): Add in coordinates
	into function prototype for drag_data_received.

Mon Oct 19 16:40:40 1998  Owen Taylor  <otaylor@redhat.com>

	* gdk/gdkdnd.c (get_client_window_at_coords_recurse): Modify
	client window finding code so that it works with
	WM's other than fvwm.
1998-10-19 20:31:57 +00:00
Owen Taylor
7a78b7fcc8 Added the "GtkDrawWindow" class, which is a descendent of the Window class
Sun Oct 18 22:48:27 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkdrawwindow.c (gtk_draw_window_get_type): Added
	the "GtkDrawWindow" class, which is a descendent
	of the Window class which leaves its background alone.
	Essentially, a toplevel drawing area, though it does
	allow adding a child.
1998-10-19 15:03:32 +00:00
Owen Taylor
347d0bf76a Merges from head.
Sun Oct 18 22:48:27 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkdrawwindow.c (gtk_draw_window_get_type): Added
	the "GtkDrawWindow" class, which is a descendent
	of the Window class which leaves its background alone.
	Essentially, a toplevel drawing area, though it does
	allow adding a child.
1998-10-19 14:20:52 +00:00
Owen Taylor
b20db730ea Duplicate bg_pixmap_name when merging RC styles. Report new share/themes
Sat Oct 17 00:40:51 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkrc.c (gtk_rc_style_init): Duplicate bg_pixmap_name when
	merging RC styles. Report new share/themes path for
	themes directory. Deref theme engines when appropriate.

	* gtk/gtkclist.c: Set all backgrounds in _style_set().
	Make sure that pixel for xor_gc is never 0.

	* gtk/gtkctree.c: Choose colors for plus/minus more
	carefully, in a hopefully style-independent fashion.
	(Still needs a bit more work)

	* gtk/gtkwidget.c: Don't send expose events to widgets
	which are about to be resized and redrawn. (Needs a
	bit more thought.)

	* gtk/gtknotebook.c (gtk_notebook_draw_tab): Avoid
	drawing on tabs for newly allocated, un-sized
	pages - we'll get the size wrong.
1998-10-17 04:39:35 +00:00
Owen Taylor
55f17ae647 Files have been moved to gtk-themes module. 1998-10-16 15:02:31 +00:00
Owen Taylor
46bc8c89a6 Fixed up stupidities in last commit.
Thu Oct  1 17:38:07 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkwidget.c (gtk_widget_redraw_queue_remove): Fixed
 	up stupidities in last commit.
1998-10-01 21:32:58 +00:00
Owen Taylor
1c20239548 When handling queued resizes, account for handleboxes, where the widget
Thu Oct  1 14:25:43 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkwidget.c: When handling queued resizes, account
	for handleboxes, where the widget heirarchy is different
	than the window heirarchy by just queueing a resize on
	the entire handlebox if the detached child is changed.

	- Remove widgets from the redraw queue when reparenting,
	even if not unrealizing. We queue a resize/redraw in
	any case.
1998-10-01 18:19:50 +00:00
EDT 1998 The Rasterman
bf9d172707 added check to see if the widget has been shaped byt the app via
Mon Sep 28 21:07:01 EDT 1998 The Rasterman <raster@redhat.com>
        * gtk/gtkstyle.c: added check to see if the widget has been shaped
	 byt the app via gtk_widget_shape_combine_mask and if it has does
	 not reset the shape on theme change.
1998-09-29 00:57:41 +00:00
Owen Taylor
18f4510ef7 Merges from HEAD. 1998-09-15 15:58:19 +00:00
Owen Taylor
ec576b8f55 Keep a list of directories in which we never want to stat the entries
Tue Sep 15 11:30:03 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkfilesel.c: Keep a list of directories in which we never
	want to stat the entries (like /afs), and assume everything in
	those directories is a subdirectory.

	- When following a path, try to open components even when
	we don't find them in their parent's directory to
	support automounters.

Mon Sep 14 14:28:24 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtktext.c (adjust_adj): Change the way we
	set the adjustments on resize so that it tries to
	keep the beginning of the text in approximately
	the same place.

	Removed assertion that the above change made invalid.

Fri Sep 11 15:36:33 1998  Owen Taylor  <otaylor@redhat.com>

	* gdk/gdkinputgxi.h (gdk_input_gxi_grab_pointer): Hopefully
	now at least compiles again.

	* gdk/gdk.c (gdk_event_translate): Don't pass events
	on destroyed widgets to the gdk_input layer.
1998-09-15 15:25:26 +00:00
Owen Taylor
8aa4520763 Fixed use of unitialized variable.
Thu Sep 10 07:35:39 1998  Owen Taylor  <otaylor@gtk.org>

	* gtk/gtkcheckbutton.c (gtk_check_button_draw_focus): Fixed
	use of unitialized variable.
1998-09-10 13:32:54 +00:00
Owen Taylor
32139f5020 When the pointer is grabbed on an input window, either explicitely, or
Sat Sep  5 16:01:19 1998  Owen Taylor  <otaylor@gtk.org>

	* gdk/gdkinputxfree.h gdk/gdk.c gdk/gdkinputgxi.h:
	When the pointer is grabbed on an input window,
	either explicitely, or through press-grab, and
	then grabbed on a non-input window, ungrab the
	devices.
1998-09-05 20:24:54 +00:00
Owen Taylor
e9c260180c Merges from HEAD.
Thu Sep  3 19:45:34 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkthemes.c: Use g_module instead of dlopen()

Thu Sep  3 19:30:11 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtktooltips.c (gtk_tooltips_expose): Check
	if we've changed widgets since the expose event
	was queued.
1998-09-04 15:02:08 +00:00
Carsten Haitzler
9d4587fc54 forogot to commit this mod....
forogot to commit this mod....
1998-09-01 19:04:21 +00:00
EDT 1998 The Rasterman
6014dbc289 several files - basically drawing and code cleanups, few minor fixes -
Tue Sep  1 14:52:10 EDT 1998 The Rasterman <raster@redhat.com>
        * several files - basically drawing and code cleanups, few
	minor fixes - basically maintinence.
1998-09-01 18:45:47 +00:00
Owen Taylor
fb3d48b7b9 Unref the adjustment.
Tue Sep  1 10:53:52 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkprogress.c (gtk_progress_finalize): Unref
	the adjustment.

	* gtk/gtkmenu.c: Modified reference counting so
	that the reference count from the toplevel that
	the menu creates to the menu is invisible to the
	application.

Mon Aug 31 15:33:13 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkstyle.h (struct _GtkStyle): Reordered a bit
	to restore approximate bin compatibility with the
	non-themes branch. (This does break bin compat
	within the themes branch.)
1998-09-01 16:52:54 +00:00
Frank Belew (Myth)
283cc5a0ce just some annoying things weren't ignored :) 1998-09-01 05:20:20 +00:00
Frank Belew (Myth)
b6449d3dce see ChangeLog 1998-09-01 05:10:55 +00:00
Owen Taylor
d213168f12 Eliminate a gdk_window_clear_area() that snuck in with the menu underlines
Sun Aug 30 16:48:27 1998  Owen Taylor  <otaylor@gtk.org>

	* gtk/gtklabel.c (gtk_label_set): Eliminate a
	gdk_window_clear_area() that snuck in with the
	menu underlines merge.
1998-08-30 20:46:30 +00:00
Owen Taylor
69746cb4d5 Make sure the mark we pass to line start is the beginning of a real line,
Tue Aug 25 16:52:47 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtktext.c (recompute_geometry): Make sure the
	mark we pass to line start is the beginning of a
	real line, not a wrapped one.
1998-08-25 22:19:33 +00:00
Owen Taylor
dfccba3826 Lot's of merges from main branch.
Mon Aug 24 23:37:26 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtktext.c: Fixed some remaining background drawing,
	  merges from main branch, cleanups.
1998-08-25 03:35:02 +00:00
Owen Taylor
4d24cab4f9 Don't dereference NULL focus tab.
Mon Aug 24 10:55:51 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtknotebook.c (gtk_notebook_draw_tab): Don't
	  dereference NULL focus tab.

	* gtk/gtkscale.c (gtk_scale_[un]map): Add map/unmap
	  functions since we need to both show/hide and
	  queue a redraw. (There's some duplication of drawing here,
	  we probably should only be queuing a redraw on the
	  "value" portion of the scale.)
1998-08-24 14:49:58 +00:00
Carsten Haitzler
b3f01550bc Allrighty then... :)
Allrighty then... :)
1998-08-22 01:29:55 +00:00
Owen Taylor
4ccce42527 More files. 1998-08-22 00:13:35 +00:00
Owen Taylor
7839d25a17 More adding files, added .cvsignore's 1998-08-21 23:47:22 +00:00
Owen Taylor
2b547db814 Cleanups to the set of active files. 1998-08-21 23:41:07 +00:00
Owen Taylor
375eea1317 Fit scales into the theme-drawing framework. We do this by making them,
Fri Aug 21 19:02:30 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkrange.[ch] gtk/gtkhscale.c gtk/gtkvscale.[ch]: Fit scales
	  into the theme-drawing framework. We do this by making them,
	  like check/radio-buttons, no-window widgets with subwindows. We
	  then move the value by calling gtk_widget_queue_clear() and only
	  redraw the value in our draw() / expose() handler.  A virtual
	  function clear_background is added which queues a clear on the
	  "background" portion of the widget.

Fri Aug 21 13:04:27 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtktext.c (mark_bg_gc): Make background colors work
	  again. (We can't always paint the background with a
	  paint() function - only do that for selected text)

Mon Aug 17 20:31:01 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtktearoffmenuitem.c gtk/gtkclist.[ch] gtk/gtkctree.[ch]
	  gtk/gtklabel.c gtk/gtkmenu.c: Merges from main branch.

	* Makefile.am (SRC_SUBDIRS): Removed themes from SRC_SUBDIRS.
	  the themes can't be built as part of the same build since
	  they depend on gdk_imlib.

Fri Aug 14 12:44:30 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkthemes.c (gtk_theme_engine_get): Removed sample engine code
	  from gtkthemes.c.

	* configure.in ltconfig.in ltmain.sh gdk/Makefile.am gtk/Makefile.am
	  gtk/

	  - Upgrade to libtool-1.2b + patch to add shared library dependencies
	    for Linux. (Needs to be extended to other platforms where they
	    are safe)

	 - Check for -ldl so this branch should build on all platforms, though
	   themes will work on all platforms they could work on.

	 - Use -version and -release simultaneously: sonames stay as they are
	   in the current scheme, but -lgtk-1.1 changes to -lgtk.

	 - Added in extra -l flags to library LDFLAGS so we get shared library
	   dependencies against X libs and -ldl. (But not libgtk against
	   libgdk or libglib yet, since dependencies against uninstalled
	   libraries aren't portable)

Fri Aug 21 19:08:25 1998  Owen Taylor  <otaylor@redhat.com>

	* Makefile.am: Added support for metal theme.
	  Install/distribute gtkrc's for each theme.

Mon Aug 17 20:32:53 1998  Owen Taylor  <otaylor@redhat.com>

	* Makefile.am, pixmap/Makefile.am: Switch back to using automake,
	  fix things up to make dist properly.

	* pixmap_theme.h: Rationalized.
	* win95_theme.h motif_theme.h: Removed

	* Started ChangeLog.
1998-08-21 23:38:47 +00:00
EDT 1998 The Rasterman
82765c7aa4 gtkrc.c - added api calls to find module and theme paths from gtk. nuked
Fri Aug 21 16:10:38 EDT 1998 The Rasterman <raster@redhat.com>
        * gtkrc.c - added api calls to find module and theme paths from gtk.
	nuked gtk_install_prefix global.
1998-08-21 20:08:09 +00:00
EDT 1998 The Rasterman
66bbad7838 fixed gtk_install_prefix global.
Fri Aug 21 12:36:46 EDT 1998 The Rasterman <raster@redhat.com>
        * fixed gtk_install_prefix global.
1998-08-21 16:30:09 +00:00
EDT 1998 The Rasterman
6c29fb342b added ~/.gtk/lib/themes/engines/ to the defautl searchpath for gtk theme
Thu Aug 20 18:27:29 EDT 1998 The Rasterman <raster@redhat.com>
        * added ~/.gtk/lib/themes/engines/ to the defautl searchpath for
	gtk theme engines
1998-08-20 22:27:16 +00:00
EDT 1998 The Rasterman
4d675735b0 made gtkrc scanner append dir that gtkrc is read from to pixmap path.
Thu Aug 20 18:27:29 EDT 1998 The Rasterman <raster@redhat.com>
        * made gtkrc scanner append dir that gtkrc is read from to pixmap path.
1998-08-20 22:21:41 +00:00
EDT 1998 The Rasterman
d9e68d7ac3 added metal theme, fixed pixmap theme now to use pixmap path - and removed
Thu Aug 20 18:25:07 EDT 1998 The Rasterman <raster@redhat.com>
        * added metal theme, fixed pixmap theme now to use pixmap path - and
	removed lots of annoying print's, added gtkr's for each
	theme data.. all your rc needs to do is include these rc's.
1998-08-20 22:20:49 +00:00
The Rasterman
f54298e6dc Fixed minor problem in gtkhandlebox.c with drawing, and some notebook
Mon Aug 10 23:03:55 1998  The Rasterman <raster@redhat.com>
        * Fixed minor problem in gtkhandlebox.c with drawing, and some
	  notebook stuff. Also pixmap theme is now "clean" again.
1998-08-19 03:04:34 +00:00
Jaka Mocnik
2660911fd7 added themes to SRC_SUBDIRS
1998-08-15  Jaka Mocnik  <jaka.mocnik@kiss.uni-lj.si>

	* added themes to SRC_SUBDIRS
1998-08-15 11:02:12 +00:00
Carsten Haitzler
d7022170c7 damn - left some debugging printf's!
damn - left some debugging printf's!
1998-08-11 03:25:06 +00:00
Owen Taylor
ec42a2fd24 Fixed up queued area resizing once more.
Mon Aug 10 23:03:55 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkwidget.c (gtk_widget_clip_rect): Fixed up
	  queued area resizing once more.
1998-08-11 03:15:46 +00:00
Carsten Haitzler
2d4bb49ed2 Mon Aug 10 23:09:30 EDT 1998 Added a few drawing fixes for notebook and
Mon Aug 10 23:09:30 EDT 1998
        * Added a few drawing fixes for notebook and other widgets. finished
	pixmap theme up to the level that can be supported so far. (need to
	add path discovery 9ie where is the rc fiel from - add to pixmap
	path so we can get theimages from there too). then we can package
	themes. After that need to add to theme seartch path stuff in users
	home dir.
1998-08-11 03:06:26 +00:00
Owen Taylor
13e1213e9a Draw into a drawing area, draw in an expose handler.
Thu Aug  6 16:49:25 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtktooltips.c (gtk_tooltips_expose): Draw into a
	  drawing area, draw in an expose handler.

	* gtk/gtknotebook.c (gtk_notebook_expose): Check for
	  empty current page.
1998-08-06 20:44:44 +00:00
Owen Taylor
89f7a5a848 Moved creation of GC's so that they will be set before they are used for
Wed Aug  5 16:13:15 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkcolorsel.c (gtk_color_selection_draw_wheel): Moved
	  creation of GC's so that they will be set before
	  they are used for map events (why are they used there?)

	* gtk/gtkwidget.c: Fixed mistake that caused widgets to
	  be queued in multiple times in the queue.
1998-08-05 20:23:18 +00:00
Owen Taylor
b163129911 Merges from main. (Hmm most of those files are unmodified...) 1998-08-05 13:38:16 +00:00
Owen Taylor
976849f090 Fixed up handling of partially clipped areas.
Tue Aug  4 19:12:14 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkwidget.c (gtk_widget_idle_draw): Fixed up
	  handling of partially clipped areas.

Merges from main branch.
1998-08-04 23:16:19 +00:00
EDT 1998 EDT 1998 The Rasterman
e1722f3d15 Wheeeeeeeeeeeeeeee fixed radiobittons to work in gimp again.
Sat Aug  1 17:44:31 EDT 1998 EDT 1998 The Rasterman <raster@redhat.com>
        * Wheeeeeeeeeeeeeeee fixed radiobittons to work in gimp again.
1998-08-01 21:45:05 +00:00
EDT 1998 The Rasterman
a1a5ef5800 YES YES YES YES YES clist borders work again! YES! YES YES! gimme more
Fri Jul 31 19:45:12 EDT 1998 The Rasterman <raster@redhat.com>
        * YES YES YES YES YES clist borders work again! YES! YES YES! gimme
	more baby oooh yeah more more MORE YES YES.
1998-07-31 23:58:10 +00:00
EDT 1998 The Rasterman
8654cf632e hopefulyl fixed problem wiht togglebuttons acting like radiobuttons in
Fri Jul 31 19:45:12 EDT 1998 The Rasterman <raster@redhat.com>
        * hopefulyl fixed problem wiht togglebuttons acting like
	radiobuttons in gtktogglebutton.c
1998-07-31 23:41:39 +00:00
Owen Taylor
607f7ddde9 Added missed case into draw code. (Thanks Tim!)
Fri Jul 31 13:23:50 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkwidget.c (gtk_widget_queue_clear_area): Added
	  missed case into draw code. (Thanks Tim!)

	* gtk/gtkrc.c gtk/gtkstyle.c: When unrealizing/destroying
	  call engine-specific code first. Misc cleanups.

	* themes/Makefile.in themes/configure.in: Fixups with
	  GTK_CFLAGS.

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.

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().
1998-07-31 18:27:00 +00:00
Carsten Haitzler
257ef68381 ???????????
???????????
1998-07-31 17:02:42 +00:00
Carsten Haitzler
798e25b6f7 DAMN CVS!
DAMN CVS!
1998-07-31 16:47:51 +00:00