Commit Graph

777 Commits

Author SHA1 Message Date
Tim Janik
2bc0f1c83d news update 1998-07-27 01:33:21 +00:00
Tim Janik
780f6c48f5 collect floats as doubles. (gtk_signal_real_emit): pass the signal by id,
Sat Jul 25 05:16:04 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtksignal.c (gtk_params_get): collect floats as doubles.
        (gtk_signal_real_emit): pass the signal by id, and keep it on
        the stack after the lookup, so to get around the reallocation
        problem.
1998-07-25 04:06:23 +00:00
Owen Taylor
0a4017b054 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-16 01:13:08 +00:00
Manish Singh
39a1087c7c Cleaned up a warning.. otherwise someone is going to upload a patch
for 1.0.5. :P

-Yosh
1998-07-15 04:43:22 +00:00
Tim Janik
7f8bb36f06 call the base classes' object_init_func for derived objects with the
Sun Jul 12 06:18:10 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtktypeutils.c (gtk_type_new): call the base classes'
        object_init_func for derived objects with the object's ->klass field
        still pointing to the corresponding base class, otherwise overridden
        class functions could get called with partly-initialized objects.
        (change from Tero Pulkkinen <terop@modeemi.cs.tut.fi>).
1998-07-12 04:21:14 +00:00
Manish Singh
7e893194cd fix for building shared libs with SunPro cc (fscking glib not separated out
forgot it !@$%#%)

-Yosh
1998-07-02 03:15:23 +00:00
Manish Singh
3b4e7ea423 fix for properly detecting shared lib support on SunPro cc (taken from
libtool 1.2.a)

-Yosh
1998-07-01 16:59:40 +00:00
Tony Gale
7c1e35b4c6 Mon Jun 29 14:19:30 BST 1998
* docs/gtk_tut.sgml: add section on GtkCList widget, contributed
          by Stefan Mars <mars@lysator.liu.se>
        * examples/clist/clist.c examples/clist/Makefile: example code
          for GtkCList widget from the Tutorial
1998-06-29 13:20:58 +00:00
Stefan Jeske
559a3b4435 *** empty log message *** 1998-06-26 07:09:44 +00:00
Stefan Jeske
d367a71915 added check for step >= 0 1998-06-26 07:00:17 +00:00
BST 1998 Tony Gale
e43a752e2b new file to explain how the code examples should be extracted from the
Tue Jun 23 12:12:19 BST 1998  Tony Gale  <gale@gtk.org>

        * examples/README.1ST: new file to explain how the
          code examples should be extracted from the tutorial.
1998-06-23 11:17:24 +00:00
Stefan Jeske
4ae5397e86 - Bug fix for precision problem causing occasional double emission of
* gtk/gtkspinbutton.c:
  - Bug fix for precision problem causing occasional double emission
    of "value_changed" signal (hopefully works now).
  - Fixed casting of GtkAdjustment* to GtkWidget* in
    gtk_spin_button_value_changed.
1998-06-22 16:06:22 +00:00
Owen Taylor
fcf1813ac6 Removed code for drawing the child in two places at once. Unfortunately,
Fri Jun 12 21:20:42 1998  Owen Taylor  <otaylor@gtk.org>

	* gtk/gtkoptionmenu.c (gtk_option_menu_expose): Removed
	code for drawing the child in two places at once. Unfortunately,
	not only does it not work anymore (because reparenting has
	been fixed), but it also triggers reparent/expose loops
	in some cases.

	* gtk/gtkoptionmenu.c (gtk_option_menu_remove_contents): Removed
	an unecessary unrealize.
1998-06-13 01:38:01 +00:00
Owen Taylor
320c0f5b4a Fixed broken list-removal code.
Thu Jun 11 13:09:00 1998  Owen Taylor  <otaylor@gtk.org>

	* gtk/gtktext.c (remove_cache_line): Fixed broken
	list-removal code.
1998-06-11 17:49:31 +00:00
Lars Hamann
4992f18f25 Added missing argument. 1998-06-09 22:57:24 +00:00
BST 1998 Tony Gale
7f44192c6f New files to automagically extract code examples from the tutorial.
Thu Jun  4 12:12:11 BST 1998  Tony Gale  <gale@gtk.org>

        * examples/extract.sh, examples/extract.awk:
          New files to automagically extract code examples from the
          tutorial.
1998-06-04 11:19:37 +00:00
BST 1998 Tony Gale
15e5518841 minor changes to support auto extraction of example code
Tue Jun  2 13:04:06 BST 1998  Tony Gale  <gale@gtk.org>

        * docs/gtk_tut.sgml: minor changes to support auto
          extraction of example code
1998-06-02 12:11:20 +00:00
CDT 1998 Shawn T. Amundson
e8358c9845 Released GTK+ 1.0.4
Mon Jun  1 22:14:33 CDT 1998 Shawn T. Amundson <amundson@gtk.org>

        * Released GTK+ 1.0.4
GTK_1_0_4
1998-06-02 05:01:09 +00:00
Jay Painter
b975c992ba fixed pixmap clipping in gtkclist 1998-06-02 03:22:28 +00:00
BST 1998 Tony Gale
a66b9ecba3 [1-1-0-Merge]
Mon Jun  1 12:47:56 BST 1998  Tony Gale  <gale@gtk.org>
        [1-1-0-Merge]

        * docs/gtk_tut_it.sgml: Update of Italian Tutorial
          to Tutorial of 24th May, from Daniele Canazza <dcanazz@tin.it>
1998-06-01 11:55:37 +00:00
BST 1998 Tony Gale
fe487d27d3 [1-1-0-Merge]
Fri May 29 13:53:57 BST 1998  Tony Gale  <gale@gtk.org>
        [1-1-0-Merge]

        * docs/gtk_tut.sgml:
          - new section on Events
          - change all delete_event callbacks to include
            a GdkEvent parameter
          - clean up the formatting

        * examples - helloworld.c, helloworld2.c, notebook.c,
          packbox.c, pixmap.c, progressbar.c, radiobuttons.c,
          rulers.c, table.c, wheelbarrow.c: change all delete_event
           callbacks to include a GdkEvent parameter.
1998-06-01 11:46:58 +00:00
Owen Taylor
ffefc931cb x_libs=, not $x_libs=. Enough said. (Case only hit for --disable-xshm)
Mon May 25 19:54:20 1998  Owen Taylor  <otaylor@gtk.org>

	* configure.in: x_libs=, not $x_libs=. Enough said.
          (Case only hit for --disable-xshm)
1998-05-25 23:53:51 +00:00
Owen Taylor
936a9bb82f Add to $CFLAGS and $LDFLAGS when testing for X libraries, don't replace
Mon May 25 12:08:14 1998  Owen Taylor  <otaylor@gtk.org>

	* configure.in (LDFLAGS): Add to $CFLAGS and $LDFLAGS
	  when testing for X libraries, don't replace them. Because
	  the user might have specified the path to the X libraries
	  themself before running configure.

	* examples/**.c: Changed all gpointer * to gpointer
1998-05-25 17:01:39 +00:00
PDT 1998 Shawn T. Amundson
2cf9cfc70e Released GTK+ 1.0.3
Sun May 24 12:07:55 PDT 1998 Shawn T. Amundson <amundson@gtk.org>

        * Released GTK+ 1.0.3
1998-05-24 20:35:19 +00:00
BST 1998 Tony Gale
8e1f6f269d [1-1-0-Merge]
Sun May 24 12:11:38 BST 1998  Tony Gale  <gale@gtk.org>
        [1-1-0-Merge]

        * docs/gtk_tut.sgml:
           - GtkTooltips, update to current API
           - change all 'gpointer *data' to 'gpointer data'
           - other minor changes
1998-05-24 11:27:33 +00:00
Owen Taylor
4a666956be Bombo out with a moderately helpful message if detection of X libraries
Sat May 23 21:54:05 1998  Owen Taylor  <otaylor@gtk.org>

	* configure.in (LDFLAGS): Bombo out with a moderately
	  helpful message if detection of X libraries fails.
1998-05-24 02:02:20 +00:00
BST 1998 Tony Gale
ed9c2e8b44 [1-1-0-Merge]
Thu May 21 12:33:15 BST 1998 Tony Gale  <gale@gtk.org>
        [1-1-0-Merge]

        * gtkfaq.sgml: add question on multi-threading,
          minor URL cleanups.
1998-05-21 11:36:57 +00:00
Owen Taylor
d5e1327f9e Fill lookup arrays _after_ possibly changing the selected visuals. (Fixes
Tue May 19 23:38:36 1998  Owen Taylor  <otaylor@gtk.org>

	* gtk/gtkpreview.c (gtk_preview_get_visuals): Fill lookup
	arrays _after_ possibly changing the selected visuals.
	(Fixes problem with reversed red and blue on SGI's)
1998-05-20 03:45:53 +00:00
Tim Janik
f25b333e33 conditionally define NULL, FALSE and TRUE. added G_GNUC_FORMAT(),
Wed May 20 05:02:26 1998  Tim Janik  <timj@gtk.org>

        * glib.h: conditionally define NULL, FALSE and TRUE.
        added G_GNUC_FORMAT(), G_GNUC_NORETURN and G_GNUC_CONST macros to
        feature more function arguments.
        (g_mem_chunk_create): new convenience macro as a short hand for
        g_mem_chunk_new().
        (g_chunk_free): new convenience macro to be consistent with g_chunk_new.

        * glist.c: backmerged g_list_nth_data().
        * gslist.c: backmerged g_slist_nth_data().
1998-05-20 03:30:23 +00:00
Owen Taylor
510541dd5b Added a cast (in code scheduled for removal ;-) to suppress a warning on
Mon May 18 22:26:33 1998  Owen Taylor  <otaylor@gtk.org>

	* gtk/gtkwindow.c (gtk_window_style_set_event): Added a
	cast (in code scheduled for removal ;-) to suppress a
	warning on 64 bit machines.
1998-05-19 02:29:38 +00:00
Owen Taylor
7c9cc2cf39 (Yasuhiro SHIRASAKI <joke@awa.tohoku.ac.jp> : gtk-joke-980517-0.patch)
Mon May 18 22:14:39 1998  Owen Taylor  <otaylor@gtk.org>
(Yasuhiro SHIRASAKI <joke@awa.tohoku.ac.jp> : gtk-joke-980517-0.patch)

	* gutils.c: Restored a missing prototype for g_vsprintf.
1998-05-19 02:27:46 +00:00
Manish Singh
b252a7fffd sigh... this keeps coming back....
-Yosh
1998-05-18 20:35:40 +00:00
Tim Janik
b26728291a changed "proximity-in-event", "drop-data-available-event",
Mon May 18 04:01:41 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtkwidget.c (gtk_widget_class_init): changed "proximity-in-event",
        "drop-data-available-event", "drop-enter-event" and "drop-leave-event"
        to be of runtype GTK_RUN_LAST.

        * gtk/gtkcontainer.c (gtk_container_class_init): likewise for
        "need-resize".

        * gtk/gtktipsquery.c (gtk_tips_query_class_init): likewise for
        "widget-selected".
1998-05-18 04:23:06 +00:00
PDT 1998 Shawn T. Amundson
b62fc60de7 Released GTK+ 1.0.2
Fri May 15 21:20:40 PDT 1998 Shawn T. Amundson <amundson@gtk.org>

        * Released GTK+ 1.0.2

	* Fixed an error in configure.in introduced since 1.0.1
GTK_1_0_2
1998-05-16 15:48:38 +00:00
Manish Singh
7defce053a ignore autogened file
-Yosh
1998-05-16 01:19:05 +00:00
Manish Singh
f322097971 bye bye autogenerated file
-Yosh
1998-05-15 22:35:27 +00:00
rodo
8d312b1d4f (Merged from HEAD)
Fri May 15 12:31:27 1998  rodo  <doulik@karlin.mff.cuni.cz>

	* gdk/gdk.c: include gdkkeysyms.h always

NEWS wording changes. Updated gtk+.spec to 1.0.2 version no.
1998-05-15 16:24:36 +00:00
Owen Taylor
3b0e9baee5 A few more GPOINTER_TO_UINT fixes.
Wed May 13 00:53:52 1998  Owen Taylor  <otaylor@gtk.org>

	* gtk/gtktypeutils.c gtk/gtksignal.c gdk/gdkdnd.c: A few more
	  GPOINTER_TO_UINT fixes.

	* gtk/gtksignal.c: Include <string.h> for memset.

Tue May 12 19:19:29 1998  Owen Taylor  <otaylor@gtk.org>

	* gtk/gtkinputdialog.c gtk/gtkgamma.c gtk/gtkrc.c
	  gtk/gtkcolorsel.c gtk/gtkclist.c gtk/testgtk.c: Use
	GPOINTER_TO_INT/GINT_TO_POINTER macros where appropriate.

	* gdk/gdk.c: Print sizeof() results
	as g_print("%ld", (glong)sizeof(foo)), to deal with
	sizeof() being long on Alpha's.

	* gtk/testgtk.c: include <string.h> for strlen

Tue May 12 19:22:58 1998  Owen Taylor  <otaylor@gtk.org>

 	* glib/glib.h: Added macros G[U]INT_TO_POINTER() and
	GPOINTER_TO_[U]INT for storing small integers integers
	inside pointers.

	* glib/testglib.c: Print sizeof() results
	as g_print("%ld", (glong)sizeof(foo)), to deal with
	size_t being long on Alpha's.

Tue May 12 16:54:15 1998  Owen Taylor  <otaylor@gtk.org>
	(James A <jamesa@demon.net> : gtk-jamesa-980511-4.patch)

	* glib.h gstring.c gmessages.c: Added some missing
	const to arguments.

	* gutils.c (g_strsignal.c): Added missing return statements.
1998-05-13 06:17:47 +00:00
Owen Taylor
0b1b179e45 Fixed a couple of warnings. 1998-05-13 03:28:04 +00:00
Owen Taylor
6c6b244015 Initialize a variable so that invalid inputs don't pass garbage to X.
Tue May 12 12:35:34 1998  Owen Taylor  <otaylor@gtk.org>

	* gdk/gdkregion.c: Initialize a variable so that invalid
	inputs don't pass garbage to X.

Tue May 12 16:56:35 1998  Owen Taylor  <otaylor@gtk.org>
	(James A <jamesa@demon.net> : gtk-jamesa-980511-4.patch)

	* gtk/gtkbbox.h gtk/gtkcolorsel.h gtk/gtkvbbox.h:
	Changed #include "gtkfoo.h" to #include <gtk/gtkfoo.h>

	* gtk/gtkwindow.[ch]: Added const to gtk_window_set_wmclass

Tue May 12 16:54:15 1998  Owen Taylor  <otaylor@gtk.org>
	(James A <jamesa@demon.net> : gtk-jamesa-980511-4.patch)

	* glib.h gstring.c gmessages.c: Added some missing
	const to arguments.

	* gutils.c (g_strsignal.c): Added missing return statements.
1998-05-13 00:32:41 +00:00
Owen Taylor
725300f5f2 Rewritten and hopefully improved.
Tue May 12 00:24:59 1998  Owen Taylor  <otaylor@gtk.org>

	* docs/gtk-config.1: Rewritten and hopefully improved.
1998-05-12 04:23:33 +00:00
Manish Singh
7d56ba7b0c Added man page for gtk-config from Ben Gertzfield
-Yosh
1998-05-12 03:30:35 +00:00
Federico Mena Quintero
832e096207 Create the window using GtkPreview's visual and colormap, otherwise things
1998-05-11  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* gtk/gtkpreview.c (gtk_preview_realize): Create the window using
	GtkPreview's visual and colormap, otherwise things can BadMatch.

	* gtk/testgtk.c (create_color_preview):
	(create_gray_preview): Removed pushing/popping of visual/colormap
	now that GtkPreview does things correctly.

	* gtk/gtkcolorsel.c (gtk_color_selection_draw_wheel_frame):
	(gtk_color_selection_draw_wheel): Pick the style from the correct
	place (the colorsel->wheel_area widget) so that the GCs will match
	with where we are going to paint to.

	* gtk/testgtk.c (create_color_selection): Removed pushing/popping
	of visual/colormap now that GtkColorSelection does things the
	right way.
1998-05-12 03:27:54 +00:00
Owen Taylor
063c490570 Moved g_error, g_warning, g_message and g_print from gutils.c to new file
Mon May 11 21:11:54 1998  Owen Taylor  <otaylor@gtk.org>

	* gutils.c gmessages.c: Moved g_error, g_warning, g_message and
	g_print from gutils.c to new file gmessages.c, to avoid having to
	include <unistd.h> in gutils.c which was causing problems for the
	g_strsignal implementation on FreeBSD boxes.

Mon May 11 21:04:51 1998  Owen Taylor  <otaylor@gtk.org>

	* gtk/gtkwindow.c (gtk_real_window_move_resize): Use the
	previously unused window->need_resize flag to mark if a window's
	descendents changed size while the window was not visible. In this
	case, when the window becomes visible, we reallocate everything,
	since we didn't keep track of what actually changed.

	(Fixes bug where changing the popdown strings of a
	combo to something of the same length caused them to
	blank out, as reported by Todd Dukes <tdukes@ibmoto.com>)
1998-05-12 02:05:39 +00:00
Tim Janik
8d55a9d665 [security audit by Alan Cox]
Tue May 12 02:17:19 1998  Tim Janik  <timj@gtk.org>

        [security audit by Alan Cox]

        * gtk/gtkobject.c (gtk_object_get_arg_type): check for arg_name to not
        exceed maximum assumed size.

        * gtk/gtkmenufactory.c (gtk_menu_factory_create): check that `path' does
        not exceed maximum assumed size.
        (gtk_menu_factory_remove): likewise.
        (gtk_menu_factory_find_recurse): likewise.
1998-05-12 00:24:35 +00:00
Tim Janik
6c21fc646d queue the idle_sizer with GTK_PRIORITY_INTERNAL - 1, so widgets get first
Tue May 12 00:21:33 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtkwidget.c (gtk_widget_queue_resize): queue the idle_sizer with
        GTK_PRIORITY_INTERNAL - 1, so widgets get first resized and then
        redrawn if that is still neccessary. don't allow queueing of already
        destructed objects.
        (gtk_widget_idle_sizer): proccess the resize queue in a save manner, so
        widgets which are in the queue can be destroyed savely, handle
        requeueing properly.
        (gtk_widget_idle_draw): proccess the redraw queue in a save manner, so
        widgets which are in the queue can be destroyed/unrealized savely.
1998-05-11 22:33:00 +00:00
Tim Janik
0847bed69f compilation fixups 1998-05-11 15:29:00 +00:00
Tim Janik
f3f8304436 preserve automake CFLAGS setup.
Mon May 11 07:20:39 1998  Tim Janik  <timj@gtk.org>

        * configure.in: preserve automake CFLAGS setup.

        * gtk/gtkobject.h (gtk_trace_referencing): compile time check the type
        of the first argument to be of type GtkObject. unconditionally compile
        this function. removed __GNUC__ dependancy of the gtk_object_ref and
        gtk_object_unref macro wrappers for this function.

Mon May 11 07:22:36 1998  Tim Janik  <timj@gtk.org>

        * glib.h: provide G_GNUC_FUNCTION and G_GNUC_PRETTY_FUNCTION to
        avoid conditionals. unconditionally define NULL, TRUE, FALSE, MAX,
        MIN, ABS and CLAMP, these macros might be screwed from other headers.
1998-05-11 08:33:25 +00:00
Tim Janik
7e6c3c0df7 merging hassle. most is caused by func() -> func(void) converions. else
merging hassle.
most is caused by func() -> func(void) converions.
else than that, you don't want me to put the ChangeLog entries in here ;)
1998-05-10 07:37:50 +00:00
Tim Janik
25f9fd2958 hmmmm 1998-05-10 06:03:15 +00:00