Commit Graph

726 Commits

Author SHA1 Message Date
Tim Janik
aa505f0ff4 creation 1998-05-10 05:44:41 +00:00
Owen Taylor
66dd08d2e8 Work around inability of HP/UX to sscanf from a readonly string.
Sun May 10 00:16:44 1998  Owen Taylor  <otaylor@gtk.org>

	* gtk.m4: Work around inability of HP/UX to
	sscanf from a readonly string.

Sat May  9 23:14:39 1998  Owen Taylor  <otaylor@gtk.org>

	* gdk/gdk.c: Fixed one more XLookupString location. (For KeyRelease)

Fri May  8 21:31:50 1998  Owen Taylor  <otaylor@gtk.org>

	* gtk/gtkwidget.c (gtk_widget_queue_draw): Free the
	draw-queue when we are done.

	(gtk_widget_queue_draw/_queu_resize): Always return
	FALSE and avoid having two idles at the same time.

Fri May  8 21:04:00 1998  Owen Taylor  <otaylor@gtk.org>

	* gtk/gtktext.c: Various fixes to make sure cache
	lines are freed if line_start_cache doesn't point to the
	beginning of the cache.
1998-05-10 04:17:28 +00:00
Tim Janik
8555c23889 GtkTooltips is a GtkData 1998-05-07 08:03:28 +00:00
Federico Mena Quintero
98d997b105 Fixed incorrect painting of row background (fg_set -> bg_set confusion).
1998-05-06  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* gtk/gtkclist.c (draw_row): Fixed incorrect painting of row
	background (fg_set -> bg_set confusion).
1998-05-06 23:50:09 +00:00
Owen Taylor
5cb538d805 A guint * was being passed where X expected a Keysym *, and keysyms are
Tue May  5 17:04:14 1998  Owen Taylor  <otaylor@gtk.org>

	* gdk/gdk.c (gdk_event_translate): A guint * was
	being passed where X expected a Keysym *, and
	keysyms are long's on Alpha Linux. This was causing
	segfaults in Xlib, apparently because of alignment.
1998-05-05 21:22:35 +00:00
Owen Taylor
7d6aff77e5 Fixed reversed conditionals that caused segfault on some platforms.
Tue May  5 11:03:00 1998  Owen Taylor  <otaylor@gtk.org>

	* gtk/gtkselection.c (gtk_selection_clear): Fixed
	reversed conditionals that caused segfault on some
	platforms.

Tue May  5 00:44:47 1998  Owen Taylor  <otaylor@gtk.org>

	* gtk/gtkcontainer.c (gtk_container_set_focus_[hv]adjustment):
	cast to GTK_OBJECT for gtk_object_ref.
1998-05-05 15:38:02 +00:00
PDT 1998 Shawn T. Amundson
668c7604a9 Released GTK 1.0.1
Mon May  4 21:07:36 PDT 1998 Shawn T. Amundson <amundson@gtk.org>

        * Released GTK 1.0.1
GTK_1_0_1
1998-05-05 04:10:51 +00:00
rhlabs
e8cf1d552b autoconf test for shape extension should really find it, now 1998-05-04 22:12:44 +00:00
Owen Taylor
5266d6322a GtkTooltips is an object, not a Boxed now.
Mon May  4 00:32:20 1998  Owen Taylor  <otaylor@gtk.org>

	* gtk/gtk.defs (GtkContainer): GtkTooltips is an
	object, not a Boxed now.
1998-05-04 05:14:20 +00:00
PDT 1998 Shawn T. Amundson
52d2e1b6a1 Version number changed to 1.0.1, along with a more automatic changing of
Sun May  3 20:43:27 PDT 1998 Shawn T. Amundson <amundson@gtk.org>

        * Version number changed to 1.0.1, along with a more automatic
	  changing of version numbers in the Makefile.am files
1998-05-04 03:46:38 +00:00
Owen Taylor
4aa965149c Draw the areas between the default and the button always in
Fri May  1 22:32:47 1998  Owen Taylor  <otaylor@gtk.org>

	* gtk/gtkbutton.c (gtk_button_paint): Draw the areas
	between the default and the button always in GTK_STATE_NORMAL.

Sun May  3 16:55:43 1998  Tim Janik  <timj@gtk.org>

	* gtk/gtkcontainer.c (gtk_container_set_focus_child): new function to
	set the current focus_child of a container, does proper referencing and
	adjusts the vadjustment/hadjustment associated with the focus widget.

	* gtk/gtkwidget.c (gtk_widget_grab_focus): set the focused child on
	containers via gtk_container_set_focus_child.

	* gtk/gtknotebook.c: modifications to use gtk_container_set_focus_child
 	where appropriate.

	* gtk/gtkcontainer.c (gtk_container_remove): removed unsetting of focus
 	child since not every child removal goes through this function (this
	showed up after gtk_container_set_focus_child() started to reference the
 	focus_child of a container).

	* gtk/gtkwidget.c (gtk_widget_unparent): moved unsetting the focus_child
	of a container from gtk_container_remove into this place.
1998-05-04 02:54:17 +00:00
Owen Taylor
ab40e71ec9 Don't force a clear until the widget is actually on screen.
Sun May  3 19:04:46 1998  Owen Taylor  <otaylor@gtk.org>

	* gtk/gtklabel.c (gtk_label_state_changed): Don't
	force a clear until the widget is actually on
	screen.
1998-05-03 23:38:58 +00:00
Owen Taylor
d8e88af7d0 configure.in acheader.h gdk/gdkwindow.c Check for Shape extension both on
Sun May  3 17:20:50 1998  Owen Taylor  <otaylor@gtk.org>

	* configure.in acheader.h gdk/gdkwindow.c
	Check for Shape extension both on the client and server
	side. (And, more importantly, check for the shape extension
	so we may include -lXext even when compiling with --disable-xshm)

	* gdk/gdkwindow.c: Set ->colormap to NULL for root
	and foreign windows. Use this to check if we
	need to get the colormap from X.

Fri May  1 16:40:57 1998  Owen Taylor  <otaylor@gtk.org>
	[ security-audit changes from Alan Cox ]

	* gdk/gdkpixmap.c (gdk_pixmap_colormap_create_from_xpmp[_d]):
	  Fix a buffer overflow on pixmaps that claim to have
	  more than 31 characters per pixel.

	  (gdk_pixmap_read_string): Don't wrap around strings longer
 	  than half of address space ;-)

	* gtk/gtk[vh]ruler.c gtk/gtkinputdialog.c: Expand some buffers
	that were used for printing integers.

	* gdk/gxid.c (handle_claim_device): Some extra checks.
	It isn't safe against being fed bad X id's, but at
	least it should be safe against deleting all your
	files.

Sat May  2 23:14:34 1998  Owen Taylor  <otaylor@gtk.org>

	* gtk/gtkcurve.c (gtk_curve_graph_events): Ignore
	Configure events that would result in a negative
	size.

Sat May  2 00:14:05 1998  Owen Taylor  <otaylor@gtk.org>

	* gtk/gtkpreview.c (gtk_trim_cmap): Make sure the
	parameters to log are doubles. Digital Unix apparently
	is missing the argument in its prototype.
1998-05-03 22:17:05 +00:00
Owen Taylor
1a7acfef50 Added a FAQ entry about "glibconfig.h" and another about writing another
Sun May  3 14:55:34 1998  Owen Taylor  <otaylor@gtk.org>

	* docs/gtkfaq.sgml (CPPFLAGS): Added a FAQ entry about
	"glibconfig.h" and another about writing another IRC
	client.
1998-05-03 18:55:03 +00:00
Owen Taylor
f8116014c1 Always show the scrollbars when the policy is GTK_POLICY_ALWAYS...
Fri May  1 22:45:55 1998  Owen Taylor  <otaylor@gtk.org>

	* gtk/gtkscrolledwindow.c (gtk_scrolled_window_size_allocate):
	Always show the scrollbars when the policy is
	GTK_POLICY_ALWAYS...
1998-05-02 02:55:02 +00:00
Tim Janik
eedaab9236 ok this will fix the gimp's channel & layers refcounting wiredness,
but the gimp really ougtha fixed in dealing with gtklists.
BTW: i *hate* backporting bugfixes!

Fri May  1 10:05:44 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtklist.c (gtk_list_add): let gtk_list_append_items do the work
                for us.
                        (gtk_list_clear_items): use gtk_list_unselect_child() for unselection of
                                children.
                                        (gtk_list_shutdown): remove all children from the list.
                                                (gtk_real_list_unselect_child):
                                                        (gtk_real_list_select_child): *always* put our internal structures into
                                                                sane state *before* signal emisions (i.e. list->selection updates prior
                                                                        to gtk_list_item_[de]select() calls).
1998-05-01 17:28:55 +00:00
Owen Taylor
2117f4ac7e Fix up getting colormap for FOREIGN windows to go along with Raster's fix
Fri May  1 00:42:25 1998  Owen Taylor  <otaylor@gtk.org>

	* gdk/gdkwindow.c (gdk_window_get_colormap): Fix up
	getting colormap for FOREIGN windows to go along with
	Raster's fix for visuals.
1998-05-01 04:53:18 +00:00
Owen Taylor
6349f7cb2c Check to catch the case when the viewport fits in either direction or
Thu Apr 30 23:32:51 1998  Owen Taylor  <otaylor@gtk.org>

	* gtk/gtkscrolledwindow.c (gtk_scrolled_window_size_allocate):
	Check to catch the case when the viewport fits in either
 	direction or both, instead of flip-flopping infinitely.

	Only show/hide the scrollbars once at the end.

Thu Apr 30 21:56:07 1998  Owen Taylor  <otaylor@gtk.org>

	* gtk/gtkscrolledwindow.c (gtk_scrolled_window_foreach):
	Include the scrollbars in the foreach call.
	(gtk-fortier-980405-0.patch;
 	 Patrice Fortier <Patrice.Fortier@aquarel.fr>).

	The notebook widget
	really should also include its tabs, but that might cause
	problems for programs if they
gtk-1-0-merge-1
1998-05-01 03:37:01 +00:00
Owen Taylor
8435d34838 Check arguments more carefully, (gtk-draco-980423-1.patch;
Thu Apr 30 21:41:30 1998  Owen Taylor  <otaylor@gtk.org>

	* gstring.c : Check arguments more carefully,
	(gtk-draco-980423-1.patch; ramsey@rhrk.uni-kl.de)
1998-05-01 01:41:06 +00:00
rhlabs
0f0ede22ad <raster@redhat.com> fixed gdk_window_get_visual() to check for a foreign
<raster@redhat.com>
fixed gdk_window_get_visual() to check for a foreign window and if so return
the visual the old-way (which worked) the new way only works for gdk created
windows. Now wfixed - keeping owen's optimisations and allowing backwards
compatability.
1998-04-30 23:52:57 +00:00
Owen Taylor
43ef2e2394 Changed Log 1998-04-30 20:46:28 +00:00
Owen Taylor
b94559a288 ltmain.sh ltconfig config.sub config.guess:
Thu Apr 30 10:22:59 1998  Owen Taylor  <otaylor@gtk.org>

	* glib/ltmain.sh glib/ltconfig glib/config.sub glib/config.guess:
	  ltmain.sh ltconfig config.sub config.guess:

	Reverted back to libtool-1.2 (plus minor patches) so as not to
	force the issue for everyone else.
1998-04-30 20:45:30 +00:00
Owen Taylor
a3cfbc84cf Update log. Mention new libtool version. 1998-04-30 15:08:58 +00:00
Owen Taylor
4143e106cc Updated to libtool 1.2a.
Thu Apr 30 10:22:59 1998  Owen Taylor  <otaylor@gtk.org>

	* glib/ltmain.sh glib/ltconfig glib/config.sub glib/config.guess:
	Updated to libtool 1.2a.

	* gtk/gtkclist.c: Draw the in-between lines with style->base
	instead of style->white.
1998-04-30 14:53:02 +00:00
Manish Singh
d0a29b40d6 don't die when naughty people remove parts of the filesystem under you (fix
from Josh)

-Yosh
1998-04-30 09:44:07 +00:00
Tim Janik
1b7fc490af check if the viewport already exists before iterating over it, maybe we
Thu Apr 30 09:49:14 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtkscrolledwindow.c (gtk_scrolled_window_foreach): check
                if the viewport already exists before iterating over it, maybe we
                        haven't been constructed yet.
1998-04-30 08:08:02 +00:00
Owen Taylor
8c66060a8e Cache the colormap and children of a window locally instead of fetching
Wed Apr 29 15:46:13 1998  Owen Taylor  <otaylor@gtk.org>

	* gdk/gdkprivate.h gdk/gdkwindow.c gdk/gdkpixmap.c:
	Cache the colormap and children of a window locally
	instead of fetching them from the server when needed.
	Huge performance difference for creating/destroying
	windows.

	* gtk/gtkstyle.c: Find the depth from the cached
	visual, instead of asking the server.

	* gtk.m4: Distribute the new version which tries to
	figure out what went wrong and give helpful error
	messages.

	* ltmain.sh ltconfig config.sub config.sh:
	Updated to libtool 1.2a

	* gtk/gtktext.c: Fixed a bug where the drawn level
	was being messed up when the text was scrolled
	during a deletion.
1998-04-30 05:26:57 +00:00
Tim Janik
e94d12f926 made this function issue a warning if the GtkBin widget already has a
Thu Apr 30 01:51:00 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtkbin.c (gtk_bin_add): made this function issue a warning if
                the GtkBin widget already has a child.

                        * gtk/gtkbox.c (gtk_box_pack_{start|end}):
                                check that child->parent == NULL;
1998-04-30 04:03:06 +00:00
Arturo Espinosa
cde57dc1d2 Apply the drag and drop fix to the 1.0 branch as well -mig 1998-04-29 03:08:13 +00:00
Owen Taylor
42a7da51fc Only return FALSE when the clear event is been rejected, not when widget
Tue Apr 28 22:13:54 1998  Owen Taylor  <otaylor@gtk.org>

	* gtk/gtkselection.c (gtk_selection_clear): Only return
	FALSE when the clear event is been rejected, not when
	widget has already lost the selection. (Which should
	only happen when we are setting the selection to another
	widget ourself.)
1998-04-29 02:50:40 +00:00
Tim Janik
2bec3fad18 allow the inclusion of other rc-files.
Tue Apr 28 15:46:41 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtkrc.c (gtk_rc_parse_statement): allow the inclusion of other
                rc-files.
1998-04-28 13:49:05 +00:00
Tim Janik
2f6ee99191 only allow grabbing of focus for CAN_FOCUS widgets.
Mon Apr 27 15:11:52 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtkwidget.c (gtk_widget_grab_focus): only allow grabbing of focus
                for CAN_FOCUS widgets.

                        * gtk/testgtk.c (create_scrolled_windows): feature h/v focus
                                adjustments for the table.
                                        (create_list): feature automatic adjustment of the scrolled window to
                                                always contain the focused child.
                                                        (create_main_window): keep the focussed button always inside of the
                                                                scrolled windoww.

                                                                        * gtk/gtkcontainer.c (gtk_real_container_focus): set the h/v focus
                                                                                adjustments, to contain the allocation of the currently focused child.
                                                                                        (gtk_container_set_focus_hadjustment): new functin to set the
                                                                                                horizontal focus adjustment.
                                                                                                        (gtk_container_set_focus_vadjustment): new functin to set the vertical
                                                                                                                focus adjustment.

                                                                                                                        * gtk/gtkadjustment.c (gtk_adjustment_clamp_page): new fucntion to
                                                                                                                                clamp the currents adjustment page into a specific range.

                                                                                                                                        * random GtkType fixups for gtk_*_get_type() functions.



this bug-fix (feature? ;) is fully binary compatible, so just invoke
touch *.h -r gtkbutton.h; make; make install-exec
and you are all set ;)
(devoted to yosh ;)))
1998-04-27 13:46:54 +00:00
Owen Taylor
9a1db40746 Removed the "check visibility after gtk_widget_unparent" bug in hopefully
Fri Apr 24 19:07:32 1998  Owen Taylor  <otaylor@gtk.org>

	* gtk/gtkfixed.c gtk/gtkpaned.c gtk/gtktable.c:

	Removed the "check visibility after gtk_widget_unparent" bug
	in hopefully the last three places.
1998-04-24 23:13:43 +00:00
Owen Taylor
37bedcc07a Account for the fact that gtk_tree_item_remove_subtree will be called
Fri Apr 24 18:37:16 1998  Owen Taylor  <otaylor@gtk.org>

	* gtk/gtktreeitem.c (gtk_tree_item_remove_subtree):
	Account for the fact that gtk_tree_item_remove_subtree
	will be called recursively.

	Handle removing a collapsed subtree.

	(From Andy Dustman <adustman@comstar.net>)

	* gtk/gtktree.c (gtk_tree_remove_items): Look for the
	root tree when removing items from a non-previously
	mapped tree.

	* gtk/testgtk.c: Added a remove_subtree button.
1998-04-24 22:52:15 +00:00
Owen Taylor
302aaa2802 Notify all weak references before object removing data. This change fixes
Thu Apr 23 23:44:17 1998  Owen Taylor  <otaylor@gtk.org>

	* gtk/gtkobject.c (gtk_object_finalize): Notify all weak references
	before object removing data. This change fixes a bug where
	removing the last weak references would cause it to be
	triggered.
1998-04-24 17:14:45 +00:00
Tim Janik
9829d1ee03 merging changes from me and quartic back into the old tree. 1998-04-24 00:57:36 +00:00
Tim Janik
aa6097e255 haha! got it merged!
/me wins over cvs (this time...)
1998-04-24 00:46:27 +00:00
Tim Janik
1d8aed6816 prepend the running_timeouts list with the tmp_list link itself, not with
Wed Apr 22 04:15:26 1998  Tim Janik  <timj@gtk.org>

	* gtk/gtkmain.c (gtk_handle_current_timeouts): prepend the
 	running_timeouts list with the tmp_list link itself, not with a new
	GList structure pointing to our link. that would fill up memory and
	causes the GList.data fields of the running_timeouts list to point to
	GList structures and not GtkTimeoutFunction structures which is a
 	*really* bad thing.
	(gtk_handle_current_idles): likewise (exchange "timout" with "idle" in
	the above entry ;).
1998-04-22 03:33:50 +00:00
Tim Janik
49680fed32 corrected a brace position (Damon Chaplin), which i got wrong when
Wed Apr 15 05:13:09 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtklabel.c (gtk_label_size_request): corrected a brace position
                (Damon Chaplin), which i got wrong when applying Damon's patch the last
                        time.

hm, first -j use...
1998-04-17 01:18:30 +00:00
Owen Taylor
4a7d355898 Make sure that when we are running with a non-installed colormap, in 8-bit
Wed Apr 15 20:42:46 1998  Owen Taylor  <otaylor@gtk.org>

	* gtk/gtkpreview.c (gtk_preview_get_visuals): Make sure
	that when we are running with a non-installed colormap,
        in 8-bit pseudo-color, we actually are using the system
	visual. (Fixes *Bad Match* errors on Digital Unix machines
	with multiple 8-bit pseudo-color visuals)

	* gdk/Makefile.am: Removed mostly useless dependency that
	was causing problems for SGI's make, when used with
	the 'make dist' form of GTK+. (Dependency caused dependencies
        to be redone when BUILT_SOURCES changed)
1998-04-16 01:01:04 +00:00
Arturo Espinosa
0982f71b98 Put the gdkwindow.c fix here too 1998-04-15 03:40:58 +00:00
Shawn Amundson
7363897409 Makefile.am: add gtk+.spec, removed gtk+.prj
Makefile.am: add gtk+.spec, removed gtk+.prj
GTK_1_0_0a
1998-04-14 03:08:50 +00:00
PDT 1998 Shawn T. Amundson
2b210ff47e Released GTK+ 1.0.0
Mon Apr 13 19:16:22 PDT 1998 Shawn T. Amundson <amundson@gtk.org>

        * Released GTK+ 1.0.0
GTK_1_0_0
1998-04-14 02:22:39 +00:00
Owen Taylor
385164d6f9 Don't read the character past the end of the text.
Mon Apr 13 21:40:14 1998  Owen Taylor  <owt1@cornell.edu>

	* gtk/gtktext.c (find_char_width): Don't read the
	character past the end of the text.

	* gtk/gtkrange.c (gtk_real_range_timer): If the mouse
	button has been released before the timer is activated,
	don't keep on scrolling.

	* gdk/gdk.c (gdk_event_translate): Filter subsequent configure
	events after we discard the first. Removed obsolete and
	sometimes very slow GdkOtherEvent. (Left in gdktypes.h
	with signal in GTK)
1998-04-14 01:39:40 +00:00
Owen Taylor
1bafe5a8e7 Updated package versions 1998-04-14 01:10:04 +00:00
Owen Taylor
52f719521a Minor additions and fixes 1998-04-14 01:09:25 +00:00
PDT 1998 Shawn T. Amundson
5c67089e7d update address info to gtk.org for ftp and web sites.
Mon Apr 13 18:03:54 PDT 1998 Shawn T. Amundson <amundson@gtk.org>

        * README: update address info to gtk.org for ftp and web sites.
1998-04-14 01:05:16 +00:00
Federico Mena Quintero
af36f7765a New function; wrapper for XPolygonRegion().
1998-04-13  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* gdk/gdkregion.c (gdk_region_polygon): New function; wrapper for
	XPolygonRegion().

	* gdk/gdk.h: Added prototype for gdk_region_polygon().

	* gdk/gdktypes.h (GdkFillRule): New enum type of fill rule for polygons.
1998-04-14 00:49:06 +00:00
rhlabs
0b0524d397 file led_on2.xpm was initially added on branch themes. 1998-04-13 22:44:59 +00:00
rhlabs
4eaccda110 file led_on1.xpm was initially added on branch themes. 1998-04-13 22:44:58 +00:00