]> Pileus Git - ~andy/gtk/log
~andy/gtk
25 years agoProvide a hacked version of the gettext macros that never use the included
Owen Taylor [Tue, 15 Dec 1998 21:08:52 +0000 (21:08 +0000)]
Provide a hacked version of the gettext macros that never use the included

Tue Dec 15 16:06:15 1998  Owen Taylor  <otaylor@redhat.com>

* acinclude.m4: Provide a hacked version of the
  gettext macros that never use the included gettext.

* Makefile.am configure.in: Remove references
  to intl/

* autogen.sh: Don't run gettextize.

25 years agoAdded gdk_text_extents_wc()
Owen Taylor [Tue, 15 Dec 1998 20:31:26 +0000 (20:31 +0000)]
Added gdk_text_extents_wc()

Tue Dec 15 14:30:35 1998  Owen Taylor  <otaylor@redhat.com>

* gdk/gdk.h gdk/gdkfonts.c: Added gdk_text_extents_wc()

        * Patch from Jonathan Blanford <jrb@redhat.com> to add line wrapping
  to label. (Based on patch from Jeff Dairiki
  <dairiki@mac-ceope.apl.washington.edu> gtk-dairiki-971208-0)

- Adds new function gtk_label_set_line_wrap()
- implement GTK_JUSTIFY_FILL.
- rename gtk_label_set to gtk_label_set_text() add
   gtk_label_set() to gtkcompat.h.

* Use an internal wc representation in the label, so
  that we handle underlining and line breaks correctly
  for multi-byte strings.

25 years agoAdded GTK_USER_DRAW flag.
Owen Taylor [Tue, 15 Dec 1998 18:48:19 +0000 (18:48 +0000)]
Added GTK_USER_DRAW flag.

Tue Dec 15 13:32:28 1998  Owen Taylor  <otaylor@redhat.com>

* gtk/gtkwidget.h: Added GTK_USER_DRAW flag.

* gtk/gtkwindow.c: Honor GTK_USER_DRAW flag.

* gtk/gtkdrawwindow.c gtk/Makefile.am: Removed
GtkDrawWindow, which GTK_USER_DRAW obsoletes.

25 years agoFixed up some warnings.
Owen Taylor [Tue, 15 Dec 1998 17:56:31 +0000 (17:56 +0000)]
Fixed up some warnings.

Tue Dec 15 11:37:05 1998  Owen Taylor  <otaylor@redhat.com>

* gtk/gtkmain.c: Fixed up some warnings.

Tue Dec 15 10:32:01 1998  Owen Taylor  <otaylor@redhat.com>

* gtk/gtk{h,v,}paned.{c,h}: Add new functions
gtk_paned_set_position(),
gtk_paned_pack1/2(). The latter take a
shrink and resize parameters, that allows setting
minimum sizes and getting 'relative' resizing.

25 years agoKeep separate putback_events and queued_events queues so that we get both
Owen Taylor [Tue, 15 Dec 1998 15:32:49 +0000 (15:32 +0000)]
Keep separate putback_events and queued_events queues so that we get both

Tue Dec 15 10:26:23 1998  Owen Taylor  <otaylor@redhat.com>

* gdk/gdkevents.c: Keep separate putback_events and
queued_events queues so that we get both FIFO and
preemptive behavior for gdk_event_put().

25 years agoRemoved unused variable, fixed minor memory leak.
Owen Taylor [Tue, 15 Dec 1998 14:23:46 +0000 (14:23 +0000)]
Removed unused variable, fixed minor memory leak.

Tue Dec 15 09:22:44 1998  Owen Taylor  <otaylor@gtk.org>

* gtk/gtkrc.c (gtk_rc_init): Removed unused
variable, fixed minor memory leak.

* gdk/gdk.c: Fixed another merge problem.

25 years agoRemove gdk_signal, which crept back in in last commit.
Owen Taylor [Tue, 15 Dec 1998 13:54:20 +0000 (13:54 +0000)]
Remove gdk_signal, which crept back in in last commit.

Tue Dec 15 08:53:38 1998  Owen Taylor  <otaylor@redhat.com>

        * gdk/gdk.c (gdk_get_display): Remove gdk_signal,
        which crept back in in last commit.

gdk/gdkevents.c: File missed on last commit.

CVS

25 years agoCommented out testthreads from the build process, since we won't have any
Owen Taylor [Tue, 15 Dec 1998 07:32:11 +0000 (07:32 +0000)]
Commented out testthreads from the build process, since we won't have any

Tue Dec 15 01:38:53 1998  Owen Taylor  <otaylor@redhat.com>

* gtk/Makefile.am: Commented out testthreads from
the build process, since we won't have any idea
how to create a thread.

* configure.in (LIBS): use glib-config ... gthread
so we always build a thread-compatible library.

        * gtk/gtkaccellabel.c gtk/gtkclist.c gtk/gtkcolorsel.c
  gtk/gtkcombo.c gtk/gtkcontainer.c gtk/gtkentry.c
  gtk/gtklist.c gtk/gtkmenuitem.c gtk/gtknotebook.c
  gtk/gtkrange.c gtk/gtkselection.c gtk/gtkspinbutton.c
  gtk/gtktext.c gtk/gtktooltips.c gtk/gtkwidget.c:

Add GTK_THREADS_ENTER/LEAVE pairs around timeouts
and idles to account for the fact that they are no
longer called within the GTK+ lock.

* gtk/gtkprivate.h: Added definitions for locking
the main GTK+ mutex.

* gtk/gtkmain.c: Re-implement the main loop
in terms of the GLib main loop.

* gdk/gdk.h gdk/gdkthreads.c gdk/Makefile.am: Removed threading
functionality, as it seems better to subsume GDK within the
GTK+ lock than vice-versa.

        * gdk/gdkevents.c: New file, containing event handling bits
from gdk.c.

* gdk/gdkevents.c: Implement event source for GDK
events.

* configure.in gdk/gdkevents.c: Removed attempts to
subtract base_id, which were already non-functional.

25 years agoacconfig.h removed IPC_RMID_DEFERRED_RELEASE check
Manish Singh [Tue, 15 Dec 1998 07:08:05 +0000 (07:08 +0000)]
acconfig.h removed IPC_RMID_DEFERRED_RELEASE check

* acconfig.h
* configure.in: removed IPC_RMID_DEFERRED_RELEASE check

* gdk/gdk.c: remove signal handlers, since we do an IPC_RMID
after XShmAttach, and nobody complained

-Yosh

25 years agoautoconf says we need AC_ISC_POSIX. Whiner.
Manish Singh [Tue, 15 Dec 1998 05:27:17 +0000 (05:27 +0000)]
autoconf says we need AC_ISC_POSIX. Whiner.

-Yosh

25 years agoinclude -lintl in LIBS
Tim Janik [Tue, 15 Dec 1998 03:37:32 +0000 (03:37 +0000)]
include -lintl in LIBS

25 years agoReplaced the crappy de.po with a valid one.
Sven Neumann [Tue, 15 Dec 1998 01:32:30 +0000 (01:32 +0000)]
Replaced the crappy de.po with a valid one.

(Bring me the haed of ...)

--Sven

25 years agoAppend locale-specific suffixes to default rc file names, and look these
Owen Taylor [Mon, 14 Dec 1998 23:26:12 +0000 (23:26 +0000)]
Append locale-specific suffixes to default rc file names, and look these

Mon Dec 14 16:10:05 1998  Owen Taylor  <otaylor@redhat.com>

* gtk/gtkrc.c (gtk_rc_init): Append locale-specific
suffixes to default rc file names, and look these
up in addition to the base filename, to facilitate
having the correct fontset per-locale.

move $(sysconfdir)/gtkrc to $(sysconfdir)/gtk/gtkrc

* gtk/gtkitemfactory.[ch] (gtk_item_factory_set_translate_func):
New function to set a function to translate menu paths.

* gtk/gtkrc.c (gtk_rc_add_initial_default_files): Free
results of g_strsplit().

25 years agoAdded Portuguese translation.
Nuno Ferreira [Mon, 14 Dec 1998 23:21:27 +0000 (23:21 +0000)]
Added Portuguese translation.

* Added Portuguese translation.

25 years agoOnly call gtk_spin_button_update if the spinbutton is editable.
Stefan Jeske [Mon, 14 Dec 1998 19:13:58 +0000 (19:13 +0000)]
Only call gtk_spin_button_update if the spinbutton is editable.

Mon Dec 14 20:04:31 1998  Stefan Jeske  <stefan@gtk.org>

* gtk/gtkspinbutton.c: Only call gtk_spin_button_update if
  the spinbutton is editable.

25 years agoAdded gettext-10.35
Owen Taylor [Mon, 14 Dec 1998 17:39:58 +0000 (17:39 +0000)]
Added gettext-10.35

Mon Dec 14 12:24:13 1998  Owen Taylor  <otaylor@redhat.com>

* HACKING: Added gettext-10.35

* autogen.sh: Run gettextize.

Wed Dec  9 16:29:06 1998  Owen Taylor  <otaylor@redhat.com>

        Applied gtk-egger-981010-[12]
[ Daniel.Egger@t-online.de (Daniel Egger) ]

* gtk/gtkintl.h: New file - defines for localization.

* gtk/gtkfilesel.c gtk/gtkinputdialog.c: Mark strings
for internationalization.

* gtk/gtkmain.c: call bindtextdomain

* po/ - directory for translations. Initially includes
German translation.

25 years agomade GtkWidget::grab_focus a RUN_LAST and RUN_ACTION signal. moved stuff
Tim Janik [Mon, 14 Dec 1998 01:59:43 +0000 (01:59 +0000)]
made GtkWidget::grab_focus a RUN_LAST and RUN_ACTION signal. moved stuff

Mon Dec 14 02:42:11 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtkwidget.c: made GtkWidget::grab_focus a RUN_LAST and
        RUN_ACTION signal. moved stuff from gtk_widget_grab_focus() into
        gtk_widget_real_grab_focus() so a signal is always emitted
        if the focus is grabbed on a widget.

25 years agofixed submenu popup timeouts, we decide whether or not to delay the
Tim Janik [Mon, 14 Dec 1998 01:35:33 +0000 (01:35 +0000)]
fixed submenu popup timeouts, we decide whether or not to delay the

Mon Dec 14 02:13:01 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtkmenuitem.c: fixed submenu popup timeouts, we decide whether or
        not to delay the submenu popup from a menu item deselection time stamp.
        the code looks even more hackish than before, but in practice "feels"
        very well.

25 years agoAdded a "grab_focus" signal for widgets. When the signal is emitted, the
Federico Mena Quintero [Mon, 14 Dec 1998 01:32:24 +0000 (01:32 +0000)]
Added a "grab_focus" signal for widgets. When the signal is emitted, the

1998-12-13  Federico Mena Quintero  <federico@nuclecu.unam.mx>

* gtk/gtkwidget.h (struct _GtkWidgetClass): Added a "grab_focus"
signal for widgets.  When the signal is emitted, the widget will
grab the focus.  This is needed to let the user press an
accelerator key in a dialog box and have the corresponding widget
be focused.

* gtk/gtkwidget.c (gtk_widget_class_init): Create the "grab_focus"
signal.  The default handler is simply gtk_widget_grab_focus().

25 years agoUpdate the following sections to the current API: - Container Widgets -
GMT 1998 Tony Gale [Sun, 13 Dec 1998 22:25:07 +0000 (22:25 +0000)]
Update the following sections to the current API: - Container Widgets -

Sun Dec 13 22:15:48 GMT 1998  Tony Gale  <gale@gtk.org>

        * docs/gtk_tut.sgml: Update the following sections to the
          current API:
            - Container Widgets
            - CList Widget
            - List Widget
            - Tree Widget

25 years agomade GtkMenuItem::activate a GTK_RUN_ACTION signal.
Tim Janik [Sun, 13 Dec 1998 00:13:39 +0000 (00:13 +0000)]
made GtkMenuItem::activate a GTK_RUN_ACTION signal.

Sat Dec 12 19:11:35 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtkmenuitem.c: made GtkMenuItem::activate a GTK_RUN_ACTION signal.

        * gtk/gtkbutton.c: made GtkButton::clicked a GTK_RUN_ACTION signal.

        * gtk/gtkfeatures.h.in: define GTK_HAVE_FEATURES_1_1_8.

25 years agoMark child->window as destroyed so we don't destroy it again.
Owen Taylor [Sat, 12 Dec 1998 22:49:38 +0000 (22:49 +0000)]
Mark child->window as destroyed so we don't destroy it again.

Sat Dec 12 17:46:55 1998  Owen Taylor  <otaylor@gtk.org>

* gtk/gtklayout.c (gtk_layout_unrealize): Mark
child->window as destroyed so we don't destroy
it again.

25 years agoCorrections to computation of extents of text from a font set. (from
Owen Taylor [Sat, 12 Dec 1998 22:21:48 +0000 (22:21 +0000)]
Corrections to computation of extents of text from a font set. (from

Sat Dec 12 17:18:32 1998  Owen Taylor  <otaylor@redhat.com>

        * gdk/gdkfont.c (gdk_text_extents): Corrections
        to computation of extents of text from a font set.
        (from Chi-Deok Hwang <cdhwang@sr.hei.co.kr>)
         and Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>)

25 years agoAdded "style_set" handlers.
Owen Taylor [Fri, 11 Dec 1998 14:00:09 +0000 (14:00 +0000)]
Added "style_set" handlers.

Fri Dec 11 08:59:12 1998  Owen Taylor  <otaylor@redhat.com>

* gtk/gtklistitem.c (gtk_list_item_style_set):
* gtk/gtklist.c     (gtk_list_style_set):
Added "style_set" handlers.

25 years agoAdd in a "style_set" handler so that the background of the clist changes
Owen Taylor [Fri, 11 Dec 1998 10:52:30 +0000 (10:52 +0000)]
Add in a "style_set" handler so that the background of the clist changes

Fri Dec 11 05:49:30 1998  Owen Taylor  <otaylor@redhat.com>

* gtk/gtkclist.c (gtk_clist_style_set): Add in a "style_set"
handler so that the background of the clist changes
with the theme.

25 years agoReleased GTK+ 1.1.7
CST 1998 Shawn T. Amundson [Fri, 11 Dec 1998 06:12:24 +0000 (06:12 +0000)]
Released GTK+ 1.1.7

Thu Dec 10 22:02:49 CST 1998 Shawn T. Amundson <amundson@gtk.org>

        * Released GTK+ 1.1.7

        * INSTALL:
          NEWS:
          README:
          configure.in:
          gtk+.spec:
          gtk/gtkfeatures.h.in:
          docs/gtk-config.1: Version to 1.1.7

25 years agoavoid void pointer math
Manish Singh [Fri, 11 Dec 1998 05:52:42 +0000 (05:52 +0000)]
avoid void pointer math

* gtk/gtkclist.c: avoid void pointer math

* gtk/gtkhscale.c
* gtk/gtkhscrollbar.c
* gtk/gtkvscale.c
* gtk/gtkvscrollbar.c: removed trailing , from enums

* gtk/gtksignal.c: can't use enums as a bitfield type, use guint

* gtk/testgtk.c: removed C++ comment added by owenpoo

-Yosh

25 years agoAdded gtk_drag_source_unset()
Owen Taylor [Fri, 11 Dec 1998 02:48:40 +0000 (02:48 +0000)]
Added gtk_drag_source_unset()

Thu Dec 10 21:48:34 1998  Owen Taylor  <otaylor@redhat.com>

* gtk/gtkdnd.[ch]: Added gtk_drag_source_unset()

25 years agoUse gdk_window_get_origin() instead of gdk_window_get_position, because
Owen Taylor [Fri, 11 Dec 1998 01:44:12 +0000 (01:44 +0000)]
Use gdk_window_get_origin() instead of gdk_window_get_position, because

Thu Dec 10 20:42:22 1998  Owen Taylor  <otaylor@redhat.com>

* gtk/gtkdnd.c (gtk_drag_dest_handle_event): Use
gdk_window_get_origin() instead of gdk_window_get_position,
because get_position is unreliable for plugs.

This is a bad hack, maybe we need GDK_WINDOW_PLUG?

25 years ago- re-write the GtkProgressBar section to the 1.1 API. - add an Appendix
GMT 1998 Tony Gale [Thu, 10 Dec 1998 17:31:04 +0000 (17:31 +0000)]
- re-write the GtkProgressBar section to the 1.1 API. - add an Appendix

Thu Dec 10 17:58:49 GMT 1998  Tony Gale  <gale@gtk.org>

        * docs/gtk_tut.sgml:
          - re-write the GtkProgressBar section to the 1.1 API.
          - add an Appendix listing all the signals
            (apologies to TimJ for taking so long in using his hard work
             in automating the extraction - thanx Tim).
        * examples/*: bring them all upto the tutorial versions

25 years agouse g_snprintf, eliminate need for string.h include string.h, for strlen
Jeff Garzik [Thu, 10 Dec 1998 06:18:32 +0000 (06:18 +0000)]
use g_snprintf, eliminate need for string.h include string.h, for strlen

        * gtk/testdnd.c: use g_snprintf, eliminate need for string.h
        * gtk/testrgb.c: include string.h, for strlen

25 years agoAdd a case for success in test for XUnregisterIMInstantiate, to prevent
Owen Taylor [Wed, 9 Dec 1998 22:40:42 +0000 (22:40 +0000)]
Add a case for success in test for XUnregisterIMInstantiate, to prevent

Wed Dec  9 17:39:26 1998  Owen Taylor  <otaylor@redhat.com>

* configure.in: Add a case for success in
test for XUnregisterIMInstantiate, to prevent
screwing up $LIBS.

25 years agoFixed argument list and return type for non-XIM fallback.
Sebastian Wilhelmi [Wed, 9 Dec 1998 18:13:52 +0000 (18:13 +0000)]
Fixed argument list and return type for non-XIM fallback.

Wed Dec  9 13:06:31 1998  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

  * gdk/gdkim.c (gdk_ic_new,gdk_ic_{set,get}_attr): Fixed argument
  list and return type for non-XIM fallback.

  * configure.in: Only build XIM-support if available.

25 years agoAdd in missing 'flags' field to target list.
Owen Taylor [Wed, 9 Dec 1998 17:31:52 +0000 (17:31 +0000)]
Add in missing 'flags' field to target list.

Wed Dec  9 12:23:30 1998  Owen Taylor  <otaylor@redhat.com>

* gtk/testselection.c (main): Add in missing 'flags'
field to target list.

* gdk/gdkproperty.c (gdk_atom_intern): Actually
add the atoms to the local cache.

25 years agoput text after #endif in comment
Manish Singh [Wed, 9 Dec 1998 13:01:17 +0000 (13:01 +0000)]
put text after #endif in comment

* gdk/gdkprivate.h: put text after #endif in comment

* gdk/gdktypes.h: change whitespace in enum to shut up makeenums.pl

* gtk/testdnd.c: #include <string.h>

-Yosh

25 years agoNew file that holds code for dealing with X Input Methods.
Owen Taylor [Wed, 9 Dec 1998 09:19:36 +0000 (09:19 +0000)]
New file that holds code for dealing with X Input Methods.
(Missing from last big commit)

25 years agoDestroy widgets _after_ propagating unrealize signals through the widget
Owen Taylor [Wed, 9 Dec 1998 06:36:57 +0000 (06:36 +0000)]
Destroy widgets _after_ propagating unrealize signals through the widget

Mon Dec  7 10:27:09 1998  Owen Taylor  <otaylor@redhat.com>

* gtk/gtkwidget.c: Destroy widgets _after_ propagating unrealize
signals through the widget heirarchy. This is unpleasant, as it
causes more X traffic, but is necessary, because we have to clean
up our Input Contexts before destroying the X windows.
(from matsu-981109-0.patch)

Mon Dec  7 10:18:18 1998  Owen Taylor  <otaylor@redhat.com>

Applied gtk-a-higuti-981202-0 :
[ a-higuti@math.sci.hokudai.ac.jp (Akira Higuchi) ]

* gdk/gdk.h gdk/gdk.c
(gdk_mbstowcs): New function. Nearly equals to mbstowcs, but
implemented by a combination of Xlib functions, so
it works even with X_LOCALE.
(gdk_wcstombs): New function.
(g_mbtowc): Removed. No longer needed.

* gdk/gdk.h gdk/gdkfont.c gdk/gdkdraw.c:
        Added _wc() variants to gdk_text_width(),
gdk_char_width(), gdk_draw_text(),

* gdk/gdki18n.h
(mblen, mbtowc, wctomb, mbstowcs, wcstombs,
 wcslen, wcscpy, wcsncpy):
Removed. No longer needed.
(iswalnum): Removed.
(gdk_iswalnum): New macro.
(gdk_iswspace): New macro.
* gdk/gdktype.h
(GdkWChar): New typedef.

* gtk/gtkentry.h, gtk/gtkentry.c
There are many changes according to the change of the
internal representation of text, from multibyte string
to wide characters.
* gtk/gtkprivate.h, gtk/gtkmain.c
Removed the variable gtk_use_mb and related codes.
* gtk/gtkspinbutton.c
Some changes according to the change of type of entry->text.
* gtk/gtktext.h, gtk/gtktext.c
Changed the internal representation of text. We use GdkWchar
if a fontset is supplied. If not, we use guchar to save
memory.

25 years agoAllocate correct amount of memory for strings.
Owen Taylor [Wed, 9 Dec 1998 05:43:35 +0000 (05:43 +0000)]
Allocate correct amount of memory for strings.

Wed Dec  9 00:41:41 1998  Owen Taylor  <otaylor@redhat.com>

* gtk/gtkrc.c (gtk_rc_add_initial_default_files): Allocate
correct amount of memory for strings.

25 years agoReleased GTK+ 1.1.6
CST 1998 Shawn T. Amundson [Wed, 9 Dec 1998 01:05:41 +0000 (01:05 +0000)]
Released GTK+ 1.1.6

Tue Dec  8 18:29:05 CST 1998 Shawn T. Amundson <amundson@gtk.org>

        * Released GTK+ 1.1.6

        * NEWS: updated

        * gtk/Makefile.am:
          gtk/testgtk.c:
          gtk/gtkrc.h:
          gtk/gtkrc.c: Read in default files.

25 years agoadded gtk_type_query() which returns a newly allocated structure holding
Tim Janik [Tue, 8 Dec 1998 23:57:25 +0000 (23:57 +0000)]
added gtk_type_query() which returns a newly allocated structure holding

Wed Dec  9 00:49:12 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtktypeutils.h:
        * gtk/gtktypeutils.c: added gtk_type_query() which returns a newly
        allocated structure holding certain type specific informations.
        fixed the big bunch of `discards const' warnings with the
        initialization of enum/flags values.

25 years agoFixed order of arguments to gdk_window_transient_for().
Owen Taylor [Tue, 8 Dec 1998 20:12:26 +0000 (20:12 +0000)]
Fixed order of arguments to gdk_window_transient_for().

Tue Dec  8 15:10:17 1998  Owen Taylor  <otaylor@redhat.com>

* gtk/gtkwindow.c (gtk_window_transient_parent_realized):
Fixed order of arguments to gdk_window_transient_for().

25 years agosimple top level Makefile that invokes all the sub-directory Makefiles.
GMT 1998 Tony Gale [Tue, 8 Dec 1998 18:04:58 +0000 (18:04 +0000)]
simple top level Makefile that invokes all the sub-directory Makefiles.

Tue Dec  8 18:02:57 GMT 1998  Tony Gale  <gale@gtk.org>

        * examples/Makefile: simple top level Makefile that invokes all
          the sub-directory Makefiles.

25 years agoFunctions to test the toolbar space style.
Andrew T. Veliath [Tue, 8 Dec 1998 13:25:35 +0000 (13:25 +0000)]
Functions to test the toolbar space style.

* gtk/testgtk.c: Functions to test the toolbar space style.

* gtk/gtktoolbar.c: Add a private GtkToolbarChildSpace subclass of
GtkToolbarChild to hold allocation. Set default space style to
GTK_TOOLBAR_SPACE_EMPTY, define SPACE_LINE_* for separator
fraction defaults.
(gtk_toolbar_paint_space_line): New function; paints the separator
line, using "toolbar" as the detail.
(gtk_toolbar_expose): (gtk_toolbar_draw): Handle CHILD_SPACE when
style is set to SPACE_LINE.
(gtk_toolbar_size_allocate): Store space allocations.
(gtk_toolbar_insert_element): If we are a space, allocate and
initialize a GtkToolbarChildSpace instead of a GtkToolbarChild.
(gtk_toolbar_set_space_style): New function.

* gtk/gtktoolbar.h: Add GtkToolbarSpaceStyle, with styles of EMPTY
and LINE. Add prototype for gtk_toolbar_set_space_style.

25 years agoRemove random unnecessary includes of standard headers.
Owen Taylor [Mon, 7 Dec 1998 21:11:34 +0000 (21:11 +0000)]
Remove random unnecessary includes of standard headers.

Mon Dec  7 16:03:55 1998  Owen Taylor  <otaylor@redhat.com>

* gtk/gtkthemes.h: Remove random unnecessary includes
of standard headers.

25 years ago""
Damon Chaplin [Mon, 7 Dec 1998 20:56:46 +0000 (20:56 +0000)]
""

25 years agoDon't name function parameters after ObjC reserved words ("id" to
Elliot Lee [Mon, 7 Dec 1998 19:53:08 +0000 (19:53 +0000)]
Don't name function parameters after ObjC reserved words ("id" to

Don't name function parameters after ObjC reserved words ("id" to
"sm_client_id" - the function doesn't appear to be implemented anywhere so
it's no great loss).

25 years agoUse IPC_RMID _after_ doing XShmAttach. This should work everywhere, and
Owen Taylor [Mon, 7 Dec 1998 19:03:10 +0000 (19:03 +0000)]
Use IPC_RMID _after_ doing XShmAttach. This should work everywhere, and

Mon Dec  7 13:38:06 1998  Owen Taylor  <otaylor@redhat.com>

* gdk/gdkimage.c (gdk_image_new): Use IPC_RMID
_after_ doing XShmAttach. This should work everywhere,
and avoid the need for signal handlers or configure
checks.

25 years agoRemoved the unused cursor field in the structure.
Federico Mena Quintero [Mon, 7 Dec 1998 15:53:21 +0000 (15:53 +0000)]
Removed the unused cursor field in the structure.

1998-12-07  Federico Mena Quintero  <federico@nuclecu.unam.mx>

* gtk/gtkpaned.h (struct _GtkPaned): Removed the unused cursor
field in the structure.

25 years agoStart mass update for GTK 1.1 Look for the best version of awk Fix FD leak
GMT 1998 Tony Gale [Mon, 7 Dec 1998 15:19:00 +0000 (15:19 +0000)]
Start mass update for GTK 1.1 Look for the best version of awk Fix FD leak

Mon Dec  7 15:15:06 GMT 1998  Tony Gale <gale@gtk.org>

        * docs/gtk_tut.sgml: Start mass update for GTK 1.1
        * examples/extract.sh: Look for the best version of awk
        * examples/extract.awk: Fix FD leak
        * example/base: minimal example from Tutorial

25 years agoNew functions gtk_window_set_transient_for() - set up a "transient for"
Owen Taylor [Mon, 7 Dec 1998 06:37:27 +0000 (06:37 +0000)]
New functions gtk_window_set_transient_for() - set up a "transient for"

Mon Dec  7 01:29:27 1998  Owen Taylor  <otaylor@gtk.org>

* gtk/gtkwindow.c: New functions
        gtk_window_set_transient_for() - set up a "transient for" relationship.
gtk_window_set_default_size() - set the initial size of a window
   distinct from its minimum size.
gtk_window_set_geometry_hints() - Allow the user to set
   minimum, maximum sizes, aspect rations, and gridded geometry,
   possibly all with respect to a subwidget of the window.
These interfaces are still a wee bit experimental.

* gdk/gdk.c: Added gdk_window_set_transient_for(),
gdk_window_set_geometry_hints(), and gdk_window_set_role().

* gdk/gdktypes.h: Added new types for find-grained specification
of WM hints.

* gtk/testgtk.c: Various changes to tests to test the
above new functions.

* gtk/gtkfontsel.c: Squash a few 'const' warnings.

* gtk/gtktogglebutton.c (gtk_toggle_button_realize): Restored
call to gtk_style_set_background() to prevent egregious
flashing to black.

25 years agoupdates
Tim Janik [Mon, 7 Dec 1998 03:12:58 +0000 (03:12 +0000)]
updates

25 years agofixups
Tim Janik [Mon, 7 Dec 1998 03:02:19 +0000 (03:02 +0000)]
fixups

25 years agowhen marshalling connect_object signals, don't pass the data pointer
Tim Janik [Mon, 7 Dec 1998 02:58:24 +0000 (02:58 +0000)]
when marshalling connect_object signals, don't pass the data pointer

Mon Dec  7 03:52:01 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtksignal.c (gtk_handlers_run): when marshalling connect_object
        signals, don't pass the data pointer twice, but swap it with the
        object pointer (proposed on Nov 30 1998 on gtk-devel-list).

25 years agoreverted marius change to expose the type systems internal type info data
Tim Janik [Mon, 7 Dec 1998 02:31:19 +0000 (02:31 +0000)]
reverted marius change to expose the type systems internal type info data

Mon Dec  7 03:08:39 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtktypeutils.h:
        * gtk/gtktypeutils.c: reverted marius change to expose the type systems
        internal type info data to the user. if such functionality is required
        we should provide wrapped accessors, ala gtk_signal_query().

        * gtk/gtksignal.c (gtk_signal_connect_by_type): reverted marius change,
        since it destroys the possibility to implement automatic marshaller
        lookups some day, and it also disables third party code's ability to
        connect to any signal. also the GtkTypeInfo structures are dynamically
        allocated memory portions, so only the type system is really allowed
        to access that stuff.

Mon Dec  7 01:32:18 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtkfilesel.c (gtk_file_selection_key_press): always intercept the
        Tab key on the entry. the focus shouldn't get lost even if completion
        is attempted from an empty entry, since an empty entry string does
        indeed have a valid completion meaning (complete all).
        (gtk_file_selection_init): cast the gchar array parameter in calls to
        gtk_clist_new_with_titles() to quit compiler warnings.
        (check_dir): the no_stat_dirs struct must not be const, since we do
        indeed modify its contents.

        * gtk/testgtk.c (event_watcher): adapted prototype to fit new emission
        hook semantics.

        * gtk/gtksignal.h:
        * gtk/gtksignal.c:
        changed emission allocation, so we don't use a doubly linked list
        but link ourselfs (singly linked).
        changed emission hooks, they get the emision parameters passed as
        well now and are emitted during the actuall signal emission (after
        the RUN_FIRST class method, but prior to RUN_FIRST handlers).
        the existing restrictions do still apply to signal emission hooks,
        i.e. an emission may not be stopped or restarted from an emission hook.
        due to possibly huge perfomance impacts, frequent use of emision hooks
        is also not recommended.
        (gtk_signal_next_and_invalidate): added an
        assertments which explicits what the code assumes anyways: a
        maximum amount of 65535 signals.

        * gtk/gtkcontainer.h: deprecated gtk_container_foreach_interp(),
        gtk_container_foreach_full() should be used instead.

        * gtk/gtkmain.h:
        deprecated gtk_timeout_add_interp and gtk_idle_add_interp, since
        we provide _full variants.

        * gtk/gtksignal.h: deprecated gtk_signal_connect_interp(), we provide
        gtk_signal_connect_full() for long enough now.

25 years ago*** empty log message ***
Marius Vollmer [Sun, 6 Dec 1998 22:18:13 +0000 (22:18 +0000)]
*** empty log message ***

25 years agoAllow a NULL marshaller. (gtk_signal_connect_by_type): Allow only
Marius Vollmer [Sun, 6 Dec 1998 22:15:53 +0000 (22:15 +0000)]
Allow a NULL marshaller. (gtk_signal_connect_by_type): Allow only

* gtk/gtksignal.c (gtk_signal_newv): Allow a NULL marshaller.
(gtk_signal_connect_by_type): Allow only no_marshal handlers to
connect to signals with a NULL marshaller.

* gtk/gtktypeutils.c (gtk_type_get_info): New.
gtk/gtktypeutils.h (gtk_type_get_info): New prototype.

25 years agoGrey out arrows if wrap == FALSE and interval borders are reached.
Stefan Jeske [Sun, 6 Dec 1998 14:18:46 +0000 (14:18 +0000)]
Grey out arrows if wrap == FALSE and interval borders are reached.

* gtk/gtkspinbutton.c (gtk_spin_button_draw_arrow): Grey out
  arrows if wrap == FALSE and interval borders are reached.

25 years agoFixed long-standing typo in aspect ratio computation code. (pointed out by
Owen Taylor [Sun, 6 Dec 1998 02:08:28 +0000 (02:08 +0000)]
Fixed long-standing typo in aspect ratio computation code. (pointed out by

Sat Dec  5 21:07:09 1998  Owen Taylor  <otaylor@gtk.org>

     * gtk/gtkaspectframe.c (gtk_aspect_frame_size_allocate): Fixed
       long-standing typo in aspect ratio computation code.
       (pointed out by Sebastian Rittau <srittau@jroger.in-berlin.de>)

25 years agocall toggle_row with valid row numbers only (toggle_row): check if
Lars Hamann [Fri, 4 Dec 1998 01:11:46 +0000 (01:11 +0000)]
call toggle_row with valid row numbers only (toggle_row): check if

Fri Dec  4 01:20:06 1998  Lars Hamann  <lars@gtk.org>

        * gtk/gtkclist.c (gtk_clist_button_release): call toggle_row with
        valid row numbers only
        (toggle_row): check if clist_row != NULL

25 years agofixed for-loop.
Lars Hamann [Fri, 4 Dec 1998 00:04:31 +0000 (00:04 +0000)]
fixed for-loop.

Fri Dec  4 00:50:12 1998  Lars Hamann  <lars@gtk.org>

* gtk/gtkctree.c (gtk_ctree_export_to_gnode): fixed for-loop.

* gtk/gtkclist.c
(gtk_clist_set_column_visibility)
(gtk_clist_column_titles_active)
  (gtk_clist_column_titles_active)
(gtk_clist_column_title_passive)
  (gtk_clist_column_title_active): few additional tests whether
  column->button != NULL

25 years agoChanged to 5 min from 10 seconds, so it doesn't abort while users have an
Owen Taylor [Thu, 3 Dec 1998 21:50:20 +0000 (21:50 +0000)]
Changed to 5 min from 10 seconds, so it doesn't abort while users have an

Thu Dec  3 16:49:18 1998  Owen Taylor  <otaylor@redhat.com>

* gtk/gtkdnd.c (DROP_ABORT_TIME): Changed to 5 min
from 10 seconds, so it doesn't abort while users
have an ACTION_ASK menu up.

* gtk/gtkdnd.c: Hide the icon window between sending a a
drop event to the destination and displaying the
snapback animation, so that it doesn't hang around
during ACTION_ASK.

25 years agoUse GTK_STATE_INSENSITIVE for the foreground of cells for CLists in the
Owen Taylor [Thu, 3 Dec 1998 21:41:14 +0000 (21:41 +0000)]
Use GTK_STATE_INSENSITIVE for the foreground of cells for CLists in the

Thu Dec  3 16:37:42 1998  Owen Taylor  <otaylor@redhat.com>

* gtk/gtkclist.c (get_cell_style): Use GTK_STATE_INSENSITIVE
for the foreground of cells for CLists in the insensitive
state, instead of GTK_STATE_PRELIGHT.

25 years agomoved checks upon focus setting from gtk_window_real_set_focus to
Tim Janik [Thu, 3 Dec 1998 06:52:48 +0000 (06:52 +0000)]
moved checks upon focus setting from gtk_window_real_set_focus to

Thu Dec  3 06:20:59 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtkwindow.c: moved checks upon focus setting from
        gtk_window_real_set_focus to gtk_window_set_focus, so we don't
        emit the signal if unneccessary.

        * gtk/gtkwidget.c (gtk_widget_grab_focus): clear up the old focus
        containers when grabbing focus on a new widget. this is based on
        a patch from Alexis Mikhailov, submitted to gtk-list on 4 Nov 1998.

        * gtk/gtkclist.c (gtk_clist_focus_out): set CLIST_CHILD_HAS_FOCUS
        flag, so we take the buttons into consideration upon the next focus
        request.

        * gtk/gtkcontainer.c (gtk_container_set_focus_child): fixed an
        assertment.

25 years agoFixes for low-color displays and a slight enhancement for true-color
CST 1998 Shawn T. Amundson [Thu, 3 Dec 1998 05:52:19 +0000 (05:52 +0000)]
Fixes for low-color displays and a slight enhancement for true-color

Wed Dec  2 17:45:21 CST 1998 Shawn T. Amundson <amundson@gtk.org>

        * gtk/gtkpixmap.c: Fixes for low-color displays and a slight
          enhancement for true-color displays.

        * INSTALL:
          README:
          configure.in:
          gtk+.spec:
          docs/gtk-config.1: up to version 1.1.6

25 years agolets #define GTK_HAVE_FEATURES_1_1_6 before we release it this time
Manish Singh [Wed, 2 Dec 1998 09:38:31 +0000 (09:38 +0000)]
lets #define GTK_HAVE_FEATURES_1_1_6 before we release it this time

-Yosh

25 years agos/gtk_notebook_nth_page/gtk_notebook_get_nth_page/.
Tim Janik [Wed, 2 Dec 1998 03:40:03 +0000 (03:40 +0000)]
s/gtk_notebook_nth_page/gtk_notebook_get_nth_page/.

Wed Dec  2 01:39:02 1998  Tim Janik  <timj@gtk.org>

* gtk/gtknotebook.h:
* gtk/gtknotebook.c: s/gtk_notebook_nth_page/gtk_notebook_get_nth_page/.

* incremented version number to 1.1.6 and made Gtk
  dependant on GLib 1.1.6.

* gtk/gtkwidget.h (struct _GtkRequisition): changed width and height
  from guint16 to gint16, since sizes bigger than 32767 are not supported
  anyways, and aritmethics with intermediate negative values are possible
  now.

Tue Dec  1 00:00:04 1998  Tim Janik  <timj@gtk.org>

* gtk/gtkscrolledwindow.c:
implementation of GTK_POLICY_NEVER functionality, added rationales
on the policy and size requisition handling at the top.
(gtk_scrolled_window_size_request):
we assume a default minimum for our child's width and height
if [hv]scrollbar_policy != GTK_POLICY_NEVER, except when the user
specified the dimension explicitely.
  (gtk_scrolled_window_size_allocate):
do not show scrollbars if [hv]scrollbar_policy == GTK_POLICY_NEVER.

* gtk/gtkviewport.c (gtk_viewport_size_request): report the real
size we require (including the child).

        * gtk/gtkclist.c:
(gtk_clist_size_request): report the real size required.

* gtk/gtkenums.h (enum GtkPolicyType): added GTK_POLICY_NEVER.

* gtk/gtkobject.c (gtk_object_init_type): object_type doesn't
need to be a static variable.

Mon Nov 30 22:41:25 1998  Tim Janik  <timj@gtk.org>

* gtk/gtkclist.h:
* gtk/gtkclist.c:
* gtk/gtkviewport.h:
* gtk/gtkviewport.c:
* gtk/gtktext.h:
* gtk/gtktext.c:
* gtk/gtklayout.h:
* gtk/gtklayout.c:
* gtk/gtkwidget.h:
* gtk/gtkwidget.c:
* gtk/gtkscrolledwindow.h:
* gtk/gtkscrolledwindow.c:
s/scroll_adjustements/scroll_adjustments/
s/scroll_adjustments/set_scroll_adjustments/g

25 years agonew class method/signal row_move. new public function. emit a row_move
Lars Hamann [Wed, 2 Dec 1998 00:52:14 +0000 (00:52 +0000)]
new class method/signal row_move. new public function. emit a row_move

Tue Dec  1 22:45:58 1998  Lars Hamann  <lars@gtk.org>

* gtk/gtkclist.h (struct _GtkCListClass): new class method/signal
row_move.
* gtk/gtkclist.c (gtk_clist_row_move): new public function.
emit a row_move signal
(real_row_move): move source_row to dest_row
(gtk_clist_swap_rows): use gtk_clist_row_move calls.
(gtk_clist_columns_autosize): resize all columns to their optimal
width
* gtk/gtkctree.c (real_row_move): use gtk_ctree_move to move
entire sub-tree.
* gtk/gtknotebook.c (gtk_notebook_nth_page): get nth page widget.

25 years agoconfigure.in gdk/Makefile.am Put -DFOO stuff into Makefile.am INCLUDES.
Manish Singh [Tue, 1 Dec 1998 10:42:01 +0000 (10:42 +0000)]
configure.in gdk/Makefile.am Put -DFOO stuff into Makefile.am INCLUDES.

* configure.in
* gdk/Makefile.am
* gtk/Makefile.am: Put -DFOO stuff into Makefile.am INCLUDES.
Separate vars for each, for granularity.

-Yosh

25 years agofixed a stupid error of mine about the run type values.
Tim Janik [Tue, 1 Dec 1998 01:22:37 +0000 (01:22 +0000)]
fixed a stupid error of mine about the run type values.

Tue Dec  1 02:19:54 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtkenums.h: fixed a stupid error of mine about the run type
        values.

25 years agoSurround debug variable with #ifdef to silence gcc.
Jeff Garzik [Mon, 30 Nov 1998 19:35:38 +0000 (19:35 +0000)]
Surround debug variable with #ifdef to silence gcc.

25 years agoI submitted this patch twice to gtk-devel-list, and received no comments,
Elliot Lee [Mon, 30 Nov 1998 19:07:15 +0000 (19:07 +0000)]
I submitted this patch twice to gtk-devel-list, and received no comments,

I submitted this patch twice to gtk-devel-list, and received no comments, so
am committing it.  Although not exhaustively tested, I have been using this
gtk+ for a week w/o problems, and I did read the code to ensure that nothing
ever writes to these data structures. If by chance people encounter SEGV's in
gtk+ code that is setting values in global data structures, this patch could
be a possible culprit.

1998-11-30  Elliot Lee  <sopwith@cuc.ml.org>

* {gdk,gtk}/*.c: Make read-only data structures "static const" to
allow them to be shared, mainly including (but not limited to) the
GtkTypeInfo structures for each class.

* gtk/gtkfilesel.c: Add /net to the "leave me alone" directory listing.

25 years agoAdded initializer to quiet gcc warning. Added assertion to check for null
Jeff Garzik [Mon, 30 Nov 1998 17:19:59 +0000 (17:19 +0000)]
Added initializer to quiet gcc warning. Added assertion to check for null

Added initializer to quiet gcc warning.
        Added assertion to check for null pointer deref.

25 years agomerged testgtkrc with the pre-themes one, removed system specific
Tim Janik [Mon, 30 Nov 1998 10:38:29 +0000 (10:38 +0000)]
merged testgtkrc with the pre-themes one, removed system specific

Mon Nov 30 10:11:29 1998  Tim Janik  <timj@gtk.org>

        * gtk/testgtkrc: merged testgtkrc with the pre-themes one, removed
        system specific includes.

        * gtk/gtksignal.c: asured that stop and restart emissions are also
        checked and processed for not connected objects. fixed up restart
        emission administration. invoke emission hooks after emission, hooks
        are not supposed to muck around with the current emission, and
        may also not cause emission restarts. fixed up stop emission
        administration.

25 years agoadded an event watcher for enter/leave based on signal emission hooks.
Tim Janik [Mon, 30 Nov 1998 07:09:36 +0000 (07:09 +0000)]
added an event watcher for enter/leave based on signal emission hooks.

Mon Nov 30 06:20:36 1998  Tim Janik  <timj@gtk.org>

        * gtk/testgtk.c: added an event watcher for enter/leave based on
        signal emission hooks.

        * gtk/gtkobject.c (gtk_object_class_init): made GtkObject::destroy a
        GTK_RUN_NO_HOOKS signal.

        * gtk/gtksignal.h:
        * gtk/gtksignal.c: implemented emission hooks, new hooks can be added
        to a signal with gtk_signal_add_emission_hook or
        gtk_signal_add_emission_hook_full, and can be removed again with
        gtk_signal_remove_emission_hook.

        * gtk/gtkenums.h: remove GTK_RUN_MASK, since it doesn't represent
        an appropriate mask for signal runtypes for a long time now.
        added GTK_RUN_NO_HOOKS value, which is used to flag signals
        that do not allow the running of signal hooks.

25 years agomade 'page_num' argument a gint: switch_page signal delivers valid page
Michael Krause [Sun, 29 Nov 1998 22:00:28 +0000 (22:00 +0000)]
made 'page_num' argument a gint: switch_page signal delivers valid page

1998-11-26  Michael Krause  <m.krause@tu-harburg.de>

        * gtk/gtknotebook.c (gtk_notebook_switch_page): made 'page_num'
        argument a gint: switch_page signal delivers valid page numbers
        again.

25 years agoset composite names.
Tim Janik [Sun, 29 Nov 1998 09:51:02 +0000 (09:51 +0000)]
set composite names.

Sun Nov 29 06:12:01 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_[hv]adjustment):
        set composite names.

25 years agoupdates
Tim Janik [Sun, 29 Nov 1998 06:30:26 +0000 (06:30 +0000)]
updates

25 years agoremoved default initialization check, people must use gtk_type_init();
Tim Janik [Sun, 29 Nov 1998 06:29:40 +0000 (06:29 +0000)]
removed default initialization check, people must use gtk_type_init();

Sun Nov 29 06:12:01 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtktypeutils.c (gtk_type_unique): removed default initialization
        check, people must use gtk_type_init();

        * gtk/gtkwidget.h:
        * gtk/gtkwidget.c: added gtk_widget_set_composite_name() which is meant
        for internal use by containers, that want to assign specific composite
        names to their composite children.
        added gtk_widget_get_composite_name() which will return a newly
        allocated string, containing the composite name of a widget. valid
        composite names can only be retrived from widgets that have a parent
        assigned and are flagged as GTK_COMPOSITE_CHILD.

        * gtk/gtkcontainer.h:
        * gtk/gtkcontainer.c: added a new function
        gtk_container_child_default_composite_name() which will return a
        newly allocated string, holding the composite name of a containers
        child. a default implementation is provided which will compose the
        composite name out of the widgets type and its sequential children
        id. this implementation can be overidden through a new class function
        *(composite_name)().

25 years agoRemoved bogus expose_event handler - we had two expose_event handlers!
Owen Taylor [Sat, 28 Nov 1998 15:57:55 +0000 (15:57 +0000)]
Removed bogus expose_event handler - we had two expose_event handlers!

Sat Nov 28 10:57:59 1998  Owen Taylor  <otaylor@redhat.com>

* gtk/gtkwindow.c (gtk_window_expose_event): Removed bogus
expose_event handler - we had two expose_event
handlers!

25 years agochanged scrolled window inheritance, it inherits from GtkBin now.
Tim Janik [Sat, 28 Nov 1998 07:42:37 +0000 (07:42 +0000)]
changed scrolled window inheritance, it inherits from GtkBin now.

Sat Nov 28 03:13:42 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtkscrolledwindow.h:
        * gtk/gtkscrolledwindow.c: changed scrolled window inheritance,
        it inherits from GtkBin now.

        * gtk/gtkbin.c (gtk_bin_unmap): removed superfluous check for
        visibility of child.
        (gtk_bin_draw): removed superfluous check for GTK_WIDGET_DRAWABLE().
        added check so a child gets only drawn if it's visible.

        * gtk/gtkwidget.h:
        * gtk/gtkwidget.c: removed gtk_widget_draw_children().

        * gtk/gtkstyle.h:
        * gtk/gtkstyle.c: rmoved gtk_reset_widget_shapes.

        * gtk/gtkwidget.h:
        * gtk/gtkwidget.c: removed crufty relict: gtk_widget_is_child().
        added internal function gtk_widget_reset_shapes() from gtkstyle.c.

        * gtk/gtkrc.h:
        * gtk/gtkrc.c: (gtk_rc_find_pixmap_in_path): removed bogus gscanner
        argument, changed callers.

        * gtk/gtkmenufactory.c: GtkMenuFactory is deprecated for a long time,
        it will issue a warning now.

        * gtk/gtkcompat.h: new file to #define aliases for historic
        function names.

        * changed 8 function names for consistency and provided aliases to keep
        source compatibility in gtkcompat.h:
        (gtk_accel_label_get_accel_width): renamed from gtk_accel_label_accelerator_width
        (gtk_container_set_border_width): renamed from gtk_container_border_width
        (gtk_notebook_get_current_page): renamed from gtk_notebook_current_page
        (gtk_packer_configure): renamed from gtk_packer_set_child_packing
        (gtk_paned_set_gutter_size): renamed from gtk_paned_gutter_size
        (gtk_paned_set_handle_size): renamed from gtk_paned_handle_size
        (gtk_scale_get_value_width): renamed from gtk_scale_value_width
        (gtk_window_set_position): renamed from gtk_window_position

        * renamed a few recently added funtions for consistency:
        (gtk_notebook_get_tab_label): renamed from gtk_notebook_query_tab_label.
        (gtk_notebook_get_menu_label): renamed from gtk_notebook_query_menu_label.
        (gtk_progress_configure): renamed from gtk_progress_reconfigure.

25 years agocheck for existing viewport first, and don't add one if there already is
Manish Singh [Sat, 28 Nov 1998 03:05:31 +0000 (03:05 +0000)]
check for existing viewport first, and don't add one if there already is

* gtk/gtkscrolledwindow.c (gtk_scrolled_window_add_with_viewport):
check for existing viewport first, and don't add one if there
already is one

-Yosh

25 years agoGTK_BASIC and freeze/thaw explanaition
Tim Janik [Sat, 28 Nov 1998 02:07:44 +0000 (02:07 +0000)]
GTK_BASIC and freeze/thaw explanaition

25 years agodeprecated gtk_widget_freeze_accelerators and
Tim Janik [Sat, 28 Nov 1998 01:56:09 +0000 (01:56 +0000)]
deprecated gtk_widget_freeze_accelerators and

Sat Nov 28 00:06:49 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtkwidget.h:
        * gtk/gtkwidget.c: deprecated gtk_widget_freeze_accelerators and
        gtk_widget_thaw_accelerators, we provide gtk_widget_lock_accelerators
        and gtk_widget_unlock_accelerators.

        * gtk/gtklayout.h:
        * gtk/gtklayout.c: implemented incremental freezing facility.

        * gtk/gtktext.h:
        * gtk/gtktext.c: implemented incremental freezing facility.

        * gtk/gtkenums.h:
        * gtk/gtkaccelgroup.h: moved enum GtkAccelFlags into this place.

        * gtk/gtkentry.h:
        * gtk/gtkentry.c:
        deprecated gtk_entry_adjust_scroll().

        * random GtkType, macro and indentation fixes.

Fri Nov 27 22:50:15 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtkclist.h:
        * gtk/gtkclist.c: implemented incremental freezing facility, added
        a new class member (*refresh)() which takes over the thaw
        functionality. the clist FROZEN flag got removed on the way.
        * gtk/gtkctree.c: adaptions to feature the clist refresh functionality
        and incremental freezing.

        * gtk/gtkcalendar.c: implemented incremental freezing facility.

25 years agoFixed gdk_input_devices being NULL when compiled with --xinput=xfree but
Raph Levien [Fri, 27 Nov 1998 19:44:01 +0000 (19:44 +0000)]
Fixed gdk_input_devices being NULL when compiled with --xinput=xfree but
no XInput extension in X server.

25 years agoNew function to get the source widget of a drag.
Owen Taylor [Fri, 27 Nov 1998 17:16:36 +0000 (17:16 +0000)]
New function to get the source widget of a drag.

Fri Nov 27 12:17:15 1998  Owen Taylor  <otaylor@redhat.com>

* gtk/gtkdnd.[ch] (gtk_drag_get_source_widget): New function to
get the source widget of a drag.

* gtk/gtkdnd.[ch]: Target flags GTK_TARGET_SAME_[WIDGET/APP]
to restrict certain targets to the same widget or to
the same application.

* gtk/testdnd.c: Test gtk_drag_get_source_widget().

25 years agodefine GtkCTreeNode as boxed type use GTK_CTREE_NODE_TYPE instead of
Lars Hamann [Thu, 26 Nov 1998 18:47:58 +0000 (18:47 +0000)]
define GtkCTreeNode as boxed type use GTK_CTREE_NODE_TYPE instead of

Thu Nov 26 19:11:46 1998  Lars Hamann  <lars@gtk.org>

* gtk/gtk-boxed.defs (GtkCTreeNode): define GtkCTreeNode as boxed type
* gtk/gtkctree.c (gtk_ctree_class_init): use GTK_CTREE_NODE_TYPE
instead of GTK_TYPE_POINTER in signal definitions.
(patch from James Henstridge <james@daa.com.au>)

Thu Nov 26 18:48:44 1998  Lars Hamann  <lars@gtk.org>

* gtk/gtkclist.c (set_cell_contents)
* gtk/gtkctree.c (set_cell_contents): call column_auto_resize only
  if auto.resize == TRUE

* gtk/gtknotebook.c (gtk_notebook_set_shape) (gtk_notebook_expose):
  don't draw tab, if show_tabs == FALSE
  (bug reports from Alexis Mikhailov / Dave Cole)
  (gtk_notebook_focus_changed) (gtk_notebook_draw_focus): draw only
  the focus rectangle, not the hole tab.

25 years agoreverted bogus and undocumented!!! changes from Jay Cox (98/11/23
Tim Janik [Thu, 26 Nov 1998 03:43:24 +0000 (03:43 +0000)]
reverted bogus and undocumented!!! changes from Jay Cox (98/11/23

Thu Nov 26 03:18:08 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtkclist.h:
        * gtk/gtkctree.h:
        * gtk/gtkclist.c:
        * gtk/gtkctree.c: reverted bogus and undocumented!!! changes from
        Jay Cox (98/11/23 13:53:26) which `const' qualified char* arrays.

        * gtk/maketypes.awk: changed underline substitution, so we get
        GTK_TYPE_CTREE_POS instead of the broken GTK_TYPE_C_TREE_POS.
        * gtk/makeenums.pl: likewise.
        * gtk/gtkctree.c: adapted type names accordingly.

25 years agoReplaced pushd and popd calls with equivalent shell code.
Jeff Garzik [Wed, 25 Nov 1998 17:13:14 +0000 (17:13 +0000)]
Replaced pushd and popd calls with equivalent shell code.
pushd and popd are not supported by ksh or sh [under Solaris at least].

25 years agouse $srcdir instead of the $OBJ_DIR hack
Elliot Lee [Wed, 25 Nov 1998 16:34:23 +0000 (16:34 +0000)]
use $srcdir instead of the $OBJ_DIR hack

25 years agoEdited section on the ScrolledWindow.
Owen Taylor [Tue, 24 Nov 1998 19:33:01 +0000 (19:33 +0000)]
Edited section on the ScrolledWindow.

Tue Nov 24 11:31:06 1998  Owen Taylor  <otaylor@redhat.com>

* docs/Changes-1.2.txt: Edited section on the ScrolledWindow.

* gtk/gtklayout.c (gtk_layout_set_[hv]adjustment): Remove
some code duplication.

* gtk/gtklayout.[ch] Fixed mapping and unmapping of child windows
and child widgets when scrolling greater than 32k pixels.

* testgtk.c: Modified layout test to test scrolling over
long distances.

* gtk/gtkplug.c: Added a few blank lines.

25 years agoFixed up copyright message.
Owen Taylor [Tue, 24 Nov 1998 16:15:46 +0000 (16:15 +0000)]
Fixed up copyright message.

Tue Nov 24 11:11:05 1998  Owen Taylor  <otaylor@redhat.com>

* gtk/gtklayout.[ch]: Fixed up copyright message.

* gdk/gdkrgb.c (DM): Make the dither matrix constant
so it can be shared.

* gtk/gtkdnd.c: Make cursor bitmaps const.

* gdk/gdk.h gdk/gdkpixmap.c: Added const to
gdk_pixmap/bitmap_create_from_data.

25 years agoadded a section on scrolled windows and scrollable widgets.
Tim Janik [Tue, 24 Nov 1998 07:23:06 +0000 (07:23 +0000)]
added a section on scrolled windows and scrollable widgets.

Tue Nov 24 07:46:09 1998  Tim Janik  <timj@gtk.org>

        * docs/Changes-1.2.txt: added a section on scrolled windows and
        scrollable widgets.

25 years agoInclude radio buttons when setting relief for button items.
Andrew T. Veliath [Tue, 24 Nov 1998 06:27:02 +0000 (06:27 +0000)]
Include radio buttons when setting relief for button items.

* gtk/gtktoolbar.c (gtk_toolbar_insert_element): Include radio
buttons when setting relief for button items.
(gtk_toolbar_set_button_relief): Same.

25 years agoRemoved DEFS "+=" mess that breaks recent automakes. INCLUDES is the
Jeff Garzik [Tue, 24 Nov 1998 05:58:53 +0000 (05:58 +0000)]
Removed DEFS "+=" mess that breaks recent automakes. INCLUDES is the

* gdk/Makefile.am, gtk/Makefile.am:

        Removed DEFS "+=" mess that breaks recent automakes.
        INCLUDES is the correct way to add to CFLAGS from Makefile.am.

* gdk/gdk.c, gdk/gdkglobals.c, gdk/gdkimage.c, gdk/gdkinput.c,
gdk/gdkpixmap.c, gdk/gdkthreads.c, gdk/gdkwindow.c,
gdk/gxid_lib.c, gtk/fnmatch.c, gtk/gtkclist.c, gtk/gtkmain.c,
gtk/testthreads.c:

        Include "config.h" instead of "../config.h".

        Now that DEFS works again, automake will automatically pass us
        the location of config.h in -I.

25 years agoFixed accidentally introduced typo.
Owen Taylor [Tue, 24 Nov 1998 05:10:21 +0000 (05:10 +0000)]
Fixed accidentally introduced typo.

25 years agoAdded layout widget for scrolling arbitrarily big areas. Added plug/socket
Owen Taylor [Tue, 24 Nov 1998 04:45:29 +0000 (04:45 +0000)]
Added layout widget for scrolling arbitrarily big areas. Added plug/socket

Mon Nov 23 22:10:09 1998  Owen Taylor  <otaylor@redhat.com>

* gtk/Makefile.am gtk/gtk.h gtk/gtklayout.[ch]
gtk/gtkplug.[ch] gtk/gtksocket.[ch] gtk/gtk.h:

Added layout widget for scrolling arbitrarily big areas.
Added plug/socket widgets for interprocess embedding.

These widgets still, at some point, need to be
made more pure in their use of GDK, as opposed
to raw X.

* gtk/testgtk.c: Added test for layout widget.

25 years agoBugfix from Brandon Long <blong@fiction.net> - Do the intended thing with
Jeff Garzik [Tue, 24 Nov 1998 04:25:38 +0000 (04:25 +0000)]
Bugfix from Brandon Long <blong@fiction.net> - Do the intended thing with

* gtk/gtkclist.c: (gtk_clist_swap_rows):
Bugfix from Brandon Long <blong@fiction.net> -
Do the intended thing with 'first' and 'last' list index

25 years agoModified Files: gtkclist.c gtkclist.h gtkctree.c gtkctree.h gtknotebook.c
jaycox [Mon, 23 Nov 1998 13:53:25 +0000 (13:53 +0000)]
Modified Files: gtkclist.c gtkclist.h gtkctree.c gtkctree.h gtknotebook.c

 Modified Files:
  gtkclist.c gtkclist.h gtkctree.c gtkctree.h gtknotebook.c
  gtknotebook.h gtkrc.c gtkrc.h
 add const in some useful places

25 years agomake a saner default adjustment (from 0 to 100) instead. I'm not sure if
Manish Singh [Mon, 23 Nov 1998 12:29:03 +0000 (12:29 +0000)]
make a saner default adjustment (from 0 to 100) instead. I'm not sure if

* gtk/gtkprogress.c: (gtk_progress_set_adjustment): make a saner
default adjustment (from 0 to 100) instead. I'm not sure if this
is the correct level for the fix, but gtk_progress_bar_new()'s
original default behavior is restored.

-Yosh

25 years agoDefine this so we can check for latest GTK features.
Martin Baulig [Mon, 23 Nov 1998 11:08:12 +0000 (11:08 +0000)]
Define this so we can check for latest GTK features.

1998-11-23  Martin Baulig  <martin@home-of-linux.org>

* gtk/gtkfeatures.h.in (GTK_HAVE_FEATURES_1_1_5): Define this so
we can check for latest GTK features.