Commit 7033e338 authored by PST 1998 Shawn T. Amundson's avatar PST 1998 Shawn T. Amundson Committed by Shawn Amundson

Released GTK+ 0.99.9

Fri Mar 27 16:35:00 PST 1998 Shawn T. Amundson <amundson@gtk.org>

        * Released GTK+ 0.99.9

	* examples: added a couple more, fixed some Makefiles
parent b2c30ad9
Fri Mar 27 16:35:00 PST 1998 Shawn T. Amundson <amundson@gtk.org>
* Released GTK+ 0.99.9
* examples: added a couple more, fixed some Makefiles
Fri Mar 27 17:58:41 1998 Owen Taylor <owt1@cornell.edu>
* gtk/gtkhandlebox.c (gtk_handle_box_paint): Don't clear
......
Fri Mar 27 16:35:00 PST 1998 Shawn T. Amundson <amundson@gtk.org>
* Released GTK+ 0.99.9
* examples: added a couple more, fixed some Makefiles
Fri Mar 27 17:58:41 1998 Owen Taylor <owt1@cornell.edu>
* gtk/gtkhandlebox.c (gtk_handle_box_paint): Don't clear
......
Fri Mar 27 16:35:00 PST 1998 Shawn T. Amundson <amundson@gtk.org>
* Released GTK+ 0.99.9
* examples: added a couple more, fixed some Makefiles
Fri Mar 27 17:58:41 1998 Owen Taylor <owt1@cornell.edu>
* gtk/gtkhandlebox.c (gtk_handle_box_paint): Don't clear
......
Fri Mar 27 16:35:00 PST 1998 Shawn T. Amundson <amundson@gtk.org>
* Released GTK+ 0.99.9
* examples: added a couple more, fixed some Makefiles
Fri Mar 27 17:58:41 1998 Owen Taylor <owt1@cornell.edu>
* gtk/gtkhandlebox.c (gtk_handle_box_paint): Don't clear
......
Fri Mar 27 16:35:00 PST 1998 Shawn T. Amundson <amundson@gtk.org>
* Released GTK+ 0.99.9
* examples: added a couple more, fixed some Makefiles
Fri Mar 27 17:58:41 1998 Owen Taylor <owt1@cornell.edu>
* gtk/gtkhandlebox.c (gtk_handle_box_paint): Don't clear
......
Fri Mar 27 16:35:00 PST 1998 Shawn T. Amundson <amundson@gtk.org>
* Released GTK+ 0.99.9
* examples: added a couple more, fixed some Makefiles
Fri Mar 27 17:58:41 1998 Owen Taylor <owt1@cornell.edu>
* gtk/gtkhandlebox.c (gtk_handle_box_paint): Don't clear
......
Fri Mar 27 16:35:00 PST 1998 Shawn T. Amundson <amundson@gtk.org>
* Released GTK+ 0.99.9
* examples: added a couple more, fixed some Makefiles
Fri Mar 27 17:58:41 1998 Owen Taylor <owt1@cornell.edu>
* gtk/gtkhandlebox.c (gtk_handle_box_paint): Don't clear
......
......@@ -9,7 +9,23 @@ EXTRA_DIST = \
gtk+.prj \
gtk.m4 \
makecopyright \
TODO
TODO \
examples/gtkdial/Makefile \
examples/gtkdial/dial_test.c \
examples/gtkdial/gtkdial.c \
examples/helloworld/Makefile \
examples/helloworld/helloworld.c \
examples/helloworld2/Makefile \
examples/helloworld2/helloworld2.c \
examples/scribble-simple/Makefile \
examples/scribble-simple/scribble-simple.c \
examples/tictactoe/Makefile \
examples/tictactoe/tictactoe.c \
examples/tictactoe/ttt_test.c \
examples/buttons/Makefile \
examples/buttons/info.xpm \
examples/buttons/buttons.c
m4datadir = $(datadir)/aclocal
m4data_DATA = gtk.m4
......
Overview of Changes in GTK+ 0.99.9:
* Added examples directory, even more examples soon
* Added optional word wrap to gtktext
* Changes to gtkhandlebox
* Lots of bug fixes
Overview of Changes in GTK+ 0.99.8:
* Compilation and configuration fixes
......
This is GTK+ version 0.99.8. GTK, which stands for the Gimp ToolKit,
This is GTK+ version 0.99.9. GTK, which stands for the Gimp ToolKit,
is a library for creating graphical user interfaces.
The official ftp site is:
......
......@@ -6,7 +6,7 @@ cflags_set=${CFLAGS+set}
GTK_MAJOR_VERSION=0
GTK_MINOR_VERSION=99
GTK_MICRO_VERSION=8
GTK_MICRO_VERSION=9
GTK_VERSION=$GTK_MAJOR_VERSION.$GTK_MINOR_VERSION.$GTK_MICRO_VERSION
# For automake.
......
CC = gcc
buttons: buttons.c
$(CC) `gtk-config --cflags` `gtk-config --libs` buttons.c -o buttons
clean:
rm -f *.o buttons
/* This file extracted from the GTK tutorial. */
/* buttons.c */
#include <gtk/gtk.h>
/* create a new hbox with an image and a label packed into it
* and return the box.. */
GtkWidget *xpm_label_box (GtkWidget *parent, gchar *xpm_filename, gchar *label_text)
{
GtkWidget *box1;
GtkWidget *label;
GtkWidget *pixmapwid;
GdkPixmap *pixmap;
GdkBitmap *mask;
GtkStyle *style;
/* create box for xpm and label */
box1 = gtk_hbox_new (FALSE, 0);
gtk_container_border_width (GTK_CONTAINER (box1), 2);
/* get style of button.. I assume it's to get the background color.
* if someone knows the real reason, please enlighten me. */
style = gtk_widget_get_style(parent);
/* now on to the xpm stuff.. load xpm */
pixmap = gdk_pixmap_create_from_xpm (parent->window, &mask,
&style->bg[GTK_STATE_NORMAL],
xpm_filename);
pixmapwid = gtk_pixmap_new (pixmap, mask);
/* create label for button */
label = gtk_label_new (label_text);
/* pack the pixmap and label into the box */
gtk_box_pack_start (GTK_BOX (box1),
pixmapwid, FALSE, FALSE, 3);
gtk_box_pack_start (GTK_BOX (box1), label, FALSE, FALSE, 3);
gtk_widget_show(pixmapwid);
gtk_widget_show(label);
return (box1);
}
/* our usual callback function */
void callback (GtkWidget *widget, gpointer *data)
{
g_print ("Hello again - %s was pressed\n", (char *) data);
}
int main (int argc, char *argv[])
{
/* GtkWidget is the storage type for widgets */
GtkWidget *window;
GtkWidget *button;
GtkWidget *box1;
gtk_init (&argc, &argv);
/* create a new window */
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_window_set_title (GTK_WINDOW (window), "Pixmap'd Buttons!");
/* It's a good idea to do this for all windows. */
gtk_signal_connect (GTK_OBJECT (window), "destroy",
GTK_SIGNAL_FUNC (gtk_exit), NULL);
gtk_signal_connect (GTK_OBJECT (window), "delete_event",
GTK_SIGNAL_FUNC (gtk_exit), NULL);
/* sets the border width of the window. */
gtk_container_border_width (GTK_CONTAINER (window), 10);
gtk_widget_realize(window);
/* create a new button */
button = gtk_button_new ();
/* You should be getting used to seeing most of these functions by now */
gtk_signal_connect (GTK_OBJECT (button), "clicked",
GTK_SIGNAL_FUNC (callback), (gpointer) "cool button");
/* this calls our box creating function */
box1 = xpm_label_box(window, "info.xpm", "cool button");
/* pack and show all our widgets */
gtk_widget_show(box1);
gtk_container_add (GTK_CONTAINER (button), box1);
gtk_widget_show(button);
gtk_container_add (GTK_CONTAINER (window), button);
gtk_widget_show (window);
/* rest in gtk_main and wait for the fun to begin! */
gtk_main ();
return 0;
}
/* XPM */
static char *openfile[] = {
/* width height num_colors chars_per_pixel */
" 20 19 66 2",
/* colors */
".. c None",
".# c #000000",
".a c #dfdfdf",
".b c #7f7f7f",
".c c #006f6f",
".d c #00efef",
".e c #009f9f",
".f c #004040",
".g c #00bfbf",
".h c #ff0000",
".i c #ffffff",
".j c #7f0000",
".k c #007070",
".l c #00ffff",
".m c #00a0a0",
".n c #004f4f",
".o c #00cfcf",
".p c #8f8f8f",
".q c #6f6f6f",
".r c #a0a0a0",
".s c #7f7f00",
".t c #007f7f",
".u c #5f5f5f",
".v c #707070",
".w c #00f0f0",
".x c #009090",
".y c #ffff00",
".z c #0000ff",
".A c #00afaf",
".B c #00d0d0",
".C c #00dfdf",
".D c #005f5f",
".E c #00b0b0",
".F c #001010",
".G c #00c0c0",
".H c #000f0f",
".I c #00007f",
".J c #005050",
".K c #002f2f",
".L c #dfcfcf",
".M c #dfd0d0",
".N c #006060",
".O c #00e0e0",
".P c #00ff00",
".Q c #002020",
".R c #dfc0c0",
".S c #008080",
".T c #001f1f",
".U c #003f3f",
".V c #007f00",
".W c #00000f",
".X c #000010",
".Y c #00001f",
".Z c #000020",
".0 c #00002f",
".1 c #000030",
".2 c #00003f",
".3 c #000040",
".4 c #00004f",
".5 c #000050",
".6 c #00005f",
".7 c #000060",
".8 c #00006f",
".9 c #000070",
"#. c #7f7f80",
"## c #9f9f9f",
/* pixels */
"........................................",
"........................................",
"........................................",
".......................#.#.#............",
".....................#.......#...#......",
"...............................#.#......",
".......#.#.#.................#.#.#......",
".....#.y.i.y.#.#.#.#.#.#.#..............",
".....#.i.y.i.y.i.y.i.y.i.#..............",
".....#.y.i.y.i.y.i.y.i.y.#..............",
".....#.i.y.i.y.#.#.#.#.#.#.#.#.#.#.#....",
".....#.y.i.y.#.s.s.s.s.s.s.s.s.s.#......",
".....#.i.y.#.s.s.s.s.s.s.s.s.s.#........",
".....#.y.#.s.s.s.s.s.s.s.s.s.#..........",
".....#.#.s.s.s.s.s.s.s.s.s.#............",
".....#.#.#.#.#.#.#.#.#.#.#..............",
"........................................",
"........................................",
"........................................"
};
......@@ -11,4 +11,4 @@ gtkdial.o: gtkdial.c gtkdial.h
$(CC) `gtk-config --cflags` -c gtkdial.c -o gtkdial.o
clean:
rm *.o dial_test
rm -f *.o dial_test
......@@ -5,4 +5,4 @@ helloworld: helloworld.c
$(CC) `gtk-config --cflags` `gtk-config --libs` helloworld.c -o helloworld
clean:
rm helloworld
rm -f helloworld
......@@ -5,4 +5,4 @@ helloworld2: helloworld2.c
$(CC) `gtk-config --cflags` `gtk-config --libs` helloworld2.c -o helloworld2
clean:
rm helloworld2
rm -f helloworld2
......@@ -5,4 +5,4 @@ scribble-simple: scribble-simple.c
$(CC) `gtk-config --cflags` `gtk-config --libs` scribble-simple.c -o scribble-simple
clean:
rm scribble-simple
rm -f scribble-simple
......@@ -11,4 +11,4 @@ tictactoe.o: tictactoe.c tictactoe.h
$(CC) `gtk-config --cflags` -c tictactoe.c -o tictactoe.o
clean:
rm *.o ttt_test
rm -f *.o ttt_test
......@@ -5,7 +5,7 @@ AC_INIT(glist.c)
cflags_set=${CFLAGS+set}
dnl Initialize automake stuff
AM_INIT_AUTOMAKE(glib, 0.99.8)
AM_INIT_AUTOMAKE(glib, 0.99.9)
# Specify a configuration file
AM_CONFIG_HEADER(glibconfig.h)
......
# Note that this is NOT a relocatable package
%define ver 0.99.8
%define ver 0.99.9
%define rel SNAP
%define prefix /usr
......@@ -13,7 +13,7 @@ Source: ftp://ftp.gimp.org/pub/gtk/v0.99/gtk+-%{ver}.tar.gz
BuildRoot: /tmp/gtk-root
Obsoletes: gtk
Packager: Marc Ewing <marc@redhat.com>
URL: http://www.gimp.org/gtk
URL: http://www.gtk.org
Prereq: /sbin/install-info
Docdir: %{prefix}/doc
......@@ -39,6 +39,11 @@ and GTK is a widget set for creating user interfaces.
* Thu Mar 19 1998 Shawn T. Amundson <amundson@gimp.org>
- Changed version to 0.99.9
- Changed gtk home page to www.gtk.org
* Thu Mar 19 1998 Shawn T. Amundson <amundson@gimp.org>
- Changed version to 0.99.8
* Sun Mar 15 1998 Marc Ewing <marc@redhat.com>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment