]> Pileus Git - ~andy/gtk/log
~andy/gtk
26 years agofix behavior of gtk_preview_put() with srcx/srcy != 0,
Tim Janik [Sat, 28 Feb 1998 14:35:55 +0000 (14:35 +0000)]
fix behavior of gtk_preview_put() with srcx/srcy != 0,

Sat Feb 28 15:18:36 1998  Tim Janik  <timj@gimp.org>

        * gtk/gtkpreview.c: fix behavior of gtk_preview_put() with
        srcx/srcy != 0, gtk-shige-980127-0.patch.gz by
        AOSASA Shigeru <aozasa@sakuranet.or.jp>.

        * gdk: applied gtk-roebling-980121-0.patch.gz, patch for region
        support in Gdk, by Robert Roebling <roebling@ruf.uni-freiburg.de>.

26 years agoreserve the space for child_attach/child_detach signals.
Tim Janik [Sat, 28 Feb 1998 02:24:38 +0000 (02:24 +0000)]
reserve the space for child_attach/child_detach signals.

26 years agoGtkWIdget::style_set initial emission,
Tim Janik [Fri, 27 Feb 1998 22:09:20 +0000 (22:09 +0000)]
GtkWIdget::style_set initial emission,
read up in docs/style.txt on this ;)

26 years agowe make an active server grab now, this way we can change the cursor
Tim Janik [Fri, 27 Feb 1998 16:31:06 +0000 (16:31 +0000)]
we make an active server grab now, this way we can change the cursor

Fri Feb 27 15:31:55 1998  Tim Janik  <timj@gimp.org>

        * gtk/gtktipsquery.c: we make an active server grab now, this way we
        can change the cursor globally and don't need to tweak event masks
        of other windows.

        * gtk/gtkframe.c (gtk_frame_style_set): recompute label size.

        * gtk/gtkwidget.h:
        * gtk/gtkwidget.c:
        New signal GtkWidget::style_set to be emitted when a widget's style
        changed. New flag GTK_RC_STYLE to indicate whether an rc lookup has
        been perfomed for the widget.
        (gtk_widget_ensure_style): New function.
        (gtk_widget_set_rc_style): New function.

        * docs/styles.txt: new file.

26 years agoFilling in the gaps.
Owen Taylor [Fri, 27 Feb 1998 16:17:07 +0000 (16:17 +0000)]
Filling in the gaps.
                                        -owt

26 years agogtk/gtktext.c
Owen Taylor [Fri, 27 Feb 1998 06:13:22 +0000 (06:13 +0000)]
gtk/gtktext.c

Fri Feb 27 01:11:55 1998  Owen Taylor  <owt1@cornell.edu>

* gtk/gtktext.c

- gtk_text_delete and gtk_text_insert now update caches
and refresh screen correctly if the text widget isn't frozen.

- Fixed bug where text->first_line_start_index wasn't
being updated correctly on insertion and deletion.

- Added new public macro GTK_TEXT_INDEX (text, ind), and
function gtk_text_get_chars(text, index, nchars);

Thu Feb 26 22:36:46 1998  Owen Taylor  <owt1@cornell.edu>

* gtk/gtkhandlebox.c (gtk_handle_box_realize): Use MWM hints
to undecorate window.

* gtk/testgtk.c gtk/circles.xbm: new test for WM hints.

26 years agonew functions for setting WM hints
Owen Taylor [Fri, 27 Feb 1998 03:55:33 +0000 (03:55 +0000)]
new functions for setting WM hints

Thu Feb 26 22:36:46 1998  Owen Taylor  <owt1@cornell.edu>

* gdk/gdkwindow.c gdktypes.c gdk.h:
new functions for setting WM hints

 gdk_window_set_icon()
 gdk_window_set_icon_name()
 gdk_window_set_group()
 gdk_window_set_decorations()
 gdk_window_set_functions()

* gdk/MwmUtil.h: new uninstalled header file from lesstif
distribution, used for setting MWM hints.

* gdk/gdkdnd.c Makefile.am: renamed from gdk/gdk_dnd.c

26 years agoD&D now lets you use shaped windows for drags. As usual, see testgtk.c... Now finish...
Elliot Lee [Thu, 26 Feb 1998 21:28:00 +0000 (21:28 +0000)]
D&D now lets you use shaped windows for drags. As usual, see testgtk.c... Now finish GnomeMC, miguel :)

26 years agoreserv a signal slot for GtkWidget::style_set.
Tim Janik [Thu, 26 Feb 1998 01:48:28 +0000 (01:48 +0000)]
reserv a signal slot for GtkWidget::style_set.
added GTK_STYLE_SET flag.
-timj

26 years agonew widget from Lars Hamann <hamann@braunschweig.netsurf.de> and Stefan
Tim Janik [Wed, 25 Feb 1998 22:03:10 +0000 (22:03 +0000)]
new widget from Lars Hamann <hamann@braunschweig.netsurf.de> and Stefan

Wed Feb 25 22:56:42 1998  Tim Janik  <timj@gimp.org>

        * gtk/gtkspinbutton.h:
        * gtk/gtkspinbutton.c:
        new widget from Lars Hamann <hamann@braunschweig.netsurf.de> and
        Stefan Jeske <jeske@braunschweig.netsurf.de>.

        * gtk/gtknotebook.c: fixups from lars and stefan.

26 years agologged change
Owen Taylor [Wed, 25 Feb 1998 20:41:37 +0000 (20:41 +0000)]
logged change

26 years agoMove layout constants into an enumeration, split GTK_BUTTONBOX_DEFAULT
Owen Taylor [Wed, 25 Feb 1998 18:36:39 +0000 (18:36 +0000)]
Move layout constants into an enumeration, split GTK_BUTTONBOX_DEFAULT

Wed Feb 25 13:18:53 1998  Owen Taylor  <owt1@cornell.edu>

* gtk/gtkbbox.[ch] gtk/gtkhbox.[ch] gtk/gtkvbox.[ch] :

Move layout constants into an enumeration, split
GTK_BUTTONBOX_DEFAULT into GTK_BUTTONBOX_DEFAULT
and GTK_BUTTONBOX_DEFAULT_STYLE (enumeration member).

* gtk/gtkclist.c:

Renamed gtk_clist_row_isvisable to .._is_visible

From: Maciej Stachowiak <mstachow@mit.edu>

26 years agoadded questions on: - Why don't the contents of a button move when the
Tony Gale [Wed, 25 Feb 1998 13:58:52 +0000 (13:58 +0000)]
added questions on: - Why don't the contents of a button move when the

        * docs/gtkfaq.sgml: added questions on:
                - Why don't the contents of a button move when
                  the button is pressed?
                - How do I catch a double click event in
                  a list widget?
                - When compiling GTK+ I get an error like:
                  make: file `Makefile' line 456: Syntax error
          Removed questions on menus which are covered in the
          tutorial.

          Added link to HTML versions of FAQ and Tutorial on my
          web site.

  -Tony

26 years agoOne more...
Owen Taylor [Wed, 25 Feb 1998 04:40:31 +0000 (04:40 +0000)]
One more...

26 years agoAdded some support for i18n. The support for input methods, including
Owen Taylor [Wed, 25 Feb 1998 03:51:04 +0000 (03:51 +0000)]
Added some support for i18n. The support for input methods, including

Tue Feb 24 22:47:01 1998  Owen Taylor  <owt1@cornell.edu>

* gtk/gtktext.c: Added some support for i18n. The support
for input methods, including preedit, is there, but input
is ignored unless it comes one byte at a time, so the
CJK locales won't really work. Fixing that would require
variable-width character support in the Text widget, which
is probably the wrong approach. Eventually we'll probably
want to go to UCS-4 internally.

Also, revised key press handling, which should improve
the forwarding of non-handled keypresses to the toplevel,
and make adding selection handling easier.

* gtk/gtkentry.c: Minor changes so that C-d, etc delete
the selection if there is one.

26 years agoCheck the result of XGetICValues - it is failing for some reason, and
Owen Taylor [Wed, 25 Feb 1998 03:43:10 +0000 (03:43 +0000)]
Check the result of XGetICValues - it is failing for some reason, and

Tue Feb 24 22:44:01 1998  Owen Taylor  <owt1@cornell.edu>

* gdk/gdk.c (gdk_ic_get_events): Check the result of
XGetICValues - it is failing for some reason, and
causing some warnings to be printed.

26 years agonothing special ;) -timj
Tim Janik [Wed, 25 Feb 1998 01:51:18 +0000 (01:51 +0000)]
nothing special ;) -timj

nothing special ;)
-timj

26 years agofixed some bugs in the resizing code (it was leaking
Tim Janik [Tue, 24 Feb 1998 13:57:03 +0000 (13:57 +0000)]
fixed some bugs in the resizing code (it was leaking
GTK_RESIZE_NEEDED flags).
-timj

26 years agoDon't process configure events that just move the window, and don't resize
Owen Taylor [Mon, 23 Feb 1998 20:54:07 +0000 (20:54 +0000)]
Don't process configure events that just move the window, and don't resize

Mon Feb 23 15:41:13 1998  Owen Taylor  <owt1@cornell.edu>

* gtk/gtkwidget.c gtk/gtkmenu.c: Don't process configure events
that just move the window, and don't resize it. Because we need
to make sure that a widget gets redrawn after a size_allocate -
and that only happens when the configure event changes the size
of the window. Plus, it's inefficient.

26 years agoAdded gtk_toolbar_*_element() functions. Rewrote others
rhlabs [Mon, 23 Feb 1998 20:48:46 +0000 (20:48 +0000)]
Added gtk_toolbar_*_element() functions.  Rewrote others
to simply call gtk_toolbar_insert_element() to do the work.

Added two new GtkToolbarChildType options: TOGGLEBUTTON and
RADIOBUTTON, available through the gtk_toolbar_*_element() functions.

-Marc

26 years agoFixes to GtkTree, courtesy of Erik Troan <ewt@redhat.com>
Elliot Lee [Mon, 23 Feb 1998 18:14:47 +0000 (18:14 +0000)]
Fixes to GtkTree, courtesy of Erik Troan <ewt@redhat.com>

26 years agoimplemented the statusbar widget. my first intend was to fix the code, but
Tim Janik [Mon, 23 Feb 1998 15:13:03 +0000 (15:13 +0000)]
implemented the statusbar widget. my first intend was to fix the code, but

Mon Feb 23 13:44:10 1998  Tim Janik  <timj@gimp.org>

        * gtk/gtkstatusbar.h:
        * gtk/gtkstatusbar.c:
        (re-)implemented the statusbar widget. my first intend was to fix the
        code, but then there was nothing to fix - the whole thing was just a
        big JOKE!
        people who don't even know the semantics of the g_list_* functions
        shouldn't put their hands on widget code and inheritance!

this is the first step to get bug "BUG: statusbar/hbox (redraw?) problem"
worked out, i have to leave now, but will continue work on the resizing code
this evening.

26 years agoTODO updates (major ones ;).
Tim Janik [Mon, 23 Feb 1998 11:14:27 +0000 (11:14 +0000)]
TODO updates (major ones ;).
have the send_event field in all GdkEvents.
gtkmenu.c, gtkacceleratortable.c, gtkwindow.c: unreference accelerator_table.
gtk_object_query_args: removed seq_ids again, must have been quite tired
when i commited that change ;)
gtkoptionmenu.c: assure GTK_BIN()->child is empty when reparenting
a menu_items child.
gtkwindow.c: fixed some memory leaks.

-timj

26 years agoAllow gtk_clist_insert() to work on empty lists.
rhlabs [Mon, 23 Feb 1998 01:50:22 +0000 (01:50 +0000)]
Allow gtk_clist_insert() to work on empty lists.

-Marc

26 years agoCount idle handlers at internal priority as pending events.
Owen Taylor [Sun, 22 Feb 1998 19:26:46 +0000 (19:26 +0000)]
Count idle handlers at internal priority as pending events.

Sun Feb 22 14:28:43 1998  Owen Taylor  <owt1@cornell.edu>

* gtk/gtkmain.c (gtk_events_pending): Count idle handlers
at internal priority as pending events.

26 years agodon't perform gdk operations on size allocation
Tim Janik [Sun, 22 Feb 1998 12:16:01 +0000 (12:16 +0000)]
don't perform gdk operations on size allocation
if the notebook isn't realized.
yosh: this fixes the iwarp problem.
-timj

26 years agoFixed URL and improved description for gsumi.
Owen Taylor [Sun, 22 Feb 1998 03:12:05 +0000 (03:12 +0000)]
Fixed URL and improved description for gsumi.

26 years agorenamed signal GtkWidget::set_parent to GtkWidget::parent_set. since it's
Tim Janik [Sun, 22 Feb 1998 02:18:29 +0000 (02:18 +0000)]
renamed signal GtkWidget::set_parent to GtkWidget::parent_set. since it's

Sat Feb 21 15:33:20 1998  Tim Janik  <timj@gimp.org>

        * gtk/gtkwidget.h:
        * gtk/gtkwidget.c: renamed signal GtkWidget::set_parent to
        GtkWidget::parent_set. since it's purpose is pure notification,
        it should have been named this way in the first place.

26 years agofixed a bug for mode GDK_CC_MODE_TRUE, when on a 24-bit visual on a 32-bit
MET 1998 Eckehard Berns [Sat, 21 Feb 1998 23:25:34 +0000 (23:25 +0000)]
fixed a bug for mode GDK_CC_MODE_TRUE, when on a 24-bit visual on a 32-bit

Sun Feb 22 00:20:12 MET 1998  Eckehard Berns  <eb@berns.prima.de>

* gdk/gdkcc.c (gdk_color_context_query_colors): fixed a bug for mode
GDK_CC_MODE_TRUE, when on a 24-bit visual on a 32-bit mashine.

26 years agoAdded a NULL test in gtk_entry_set_text. (Fielded a report on #gimp
scott [Sat, 21 Feb 1998 17:12:15 +0000 (17:12 +0000)]
Added a NULL test in gtk_entry_set_text.  (Fielded a report on #gimp
that a NULL argument caused a core dump.)
--sg

26 years agogtk_object_query_args takes an additional pointer now which if supplied
Tim Janik [Sat, 21 Feb 1998 14:11:40 +0000 (14:11 +0000)]
gtk_object_query_args takes an additional pointer now which if supplied

Sat Feb 21 14:49:17 1998  Tim Janik  <timj@gimp.org>

        * gtk/gtkobject.h:
        * gtk/gtkobject.c: gtk_object_query_args takes an additional pointer
        now which if supplied will point to an array holding the sequential
        argument ids.

        * gtk/gtktree.c: fix emission of selection_changed signal, supplied
        by Bolliet Jerome.

        * gtk/gtktreeitem.c: inline the plus and minus pixmaps, supplied by
        Bolliet Jerome.

        * gtk/gtknotebook.c: do a resize when a page is removed and don't
        refer to the removed page on the switch signal, supplied by Lars Hamann
        and Stefan Jeske.

        * gtk/gtktoolbar.h:
        * gtk/gtktoolbar.c:
        gtk_toolbar_append_item, gtk_toolbar_prepend_item,
        gtk_toolbar_insert_item, gtk_toolbar_append_widget,
        gtk_toolbar_prepend_widget, gtk_toolbar_insert_widget: take an additional
        gchar *tooltip_private_text as argument to fully support the underlying
        call to gtk_tooltip_set_tip.

(made the ChangeLog catch up with my last commits).

26 years agoadded the sequential argument number to gtk_object_query_args.
Tim Janik [Sat, 21 Feb 1998 13:33:20 +0000 (13:33 +0000)]
added the sequential argument number to gtk_object_query_args.
-timj

26 years agoremoved #define gtk_tooltips_set_tips
Tim Janik [Sat, 21 Feb 1998 04:47:35 +0000 (04:47 +0000)]
removed #define gtk_tooltips_set_tips
-timj

26 years agoapi changes to GtkToolBar to support the private tooltips text also.
Tim Janik [Sat, 21 Feb 1998 04:46:21 +0000 (04:46 +0000)]
api changes to GtkToolBar to support the private tooltips text also.
-guess who ;)

26 years agoVarious FAQ updates, including:
Tony Gale [Fri, 20 Feb 1998 16:46:50 +0000 (16:46 +0000)]
Various FAQ updates, including:
        * added to list of GTK apps
        * added 'do-what-ya-like' permissions notice
        * new GDK section - needs some Q&A's added

  -Tony

26 years agoVarious FAQ updates, including:
Tony Gale [Fri, 20 Feb 1998 10:01:04 +0000 (10:01 +0000)]
Various FAQ updates, including:
* added to list of GTK apps
* added 'do-what-ya-like' permissions notice
* new GDK section - needs some Q&A's added

  -Tony

26 years agoNew widget GtkTipsQuery for letting the user query tooltips of widgets.
Tim Janik [Fri, 20 Feb 1998 05:46:48 +0000 (05:46 +0000)]
New widget GtkTipsQuery for letting the user query tooltips of widgets.

Fri Feb 20 06:40:00 1998  Tim Janik  <timj@gimp.org>

        * gtk/gtktipsquery.h:
        * gtk/gtktipsquery.c:
        New widget GtkTipsQuery for letting the user query tooltips of widgets.

        * gtk/testgtk.c: add example for GtkTipsQuery.

        * gtk/gtk.h: include gtk/gtktipsquery.h.

        * gtk/gtklabel.c: enable default constructing.

26 years agomoved widget creation to gtk_clist_construct for the gtk-- folks.
Jay Painter [Fri, 20 Feb 1998 05:29:03 +0000 (05:29 +0000)]
moved widget creation to gtk_clist_construct for the gtk-- folks.

26 years agoremoved g_warnings from the common XShm failure cases in gdkimage.c
Larry Ewing [Fri, 20 Feb 1998 00:59:45 +0000 (00:59 +0000)]
removed g_warnings from the common XShm failure cases in gdkimage.c

Thu Feb 19 18:53:51 1998  Larry Ewing  <lewing@discord.isc.tamu.edu>

* removed g_warnings from the common XShm failure cases in gdkimage.c

26 years agoAdded M-p and M-n key equivalents for up and down keys. Just for us Emacs
Federico Mena Quintero [Thu, 19 Feb 1998 20:22:51 +0000 (20:22 +0000)]
Added M-p and M-n key equivalents for up and down keys. Just for us Emacs

1998-02-19  Federico Mena Quintero  <federico@nuclecu.unam.mx>

* gtk/gtkcombo.c (gtk_combo_entry_key_press): Added M-p and M-n
key equivalents for up and down keys.  Just for us Emacs weenies :-)

26 years agoMinor cleanups.
Owen Taylor [Thu, 19 Feb 1998 18:14:11 +0000 (18:14 +0000)]
Minor cleanups.

26 years agoUse POINTER_MOTION_HINT when dragging shapes around. (gtk-wille-980203-0
Owen Taylor [Thu, 19 Feb 1998 18:06:29 +0000 (18:06 +0000)]
Use POINTER_MOTION_HINT when dragging shapes around. (gtk-wille-980203-0

Thu Feb 19 12:18:24 1998  Owen Taylor  <owt1@cornell.edu>

* gtk/testgtk.c : Use POINTER_MOTION_HINT when dragging
shapes around.
(gtk-wille-980203-0
 Stefan Wille  <1wille@vsys1.informatik.uni-hamburg.de>)

* gtk/gtktext.c : Fixes to inserting and deleting characters
on line breaks.
(gtk-magnus-980210-0 Magnus Hulthen <magnus@axiom.se>)

26 years agothe value of ---enable_debug is written into glibconfig.h so everything is
Owen Taylor [Thu, 19 Feb 1998 18:02:03 +0000 (18:02 +0000)]
the value of ---enable_debug is written into glibconfig.h so everything is

Thu Feb 19 12:18:24 1998  Owen Taylor  <owt1@cornell.edu>

* glib/configure.in glib/glibconfig.h.in: the value of
---enable_debug is written into glibconfig.h so everything
is recompiled when it changes. (HACK)

* gtk/gtkmain.c gdk/gdk.c docs/debugging.txt:
Added --gdk-no-debug and --gtk-no-debug switches. Effect
of switches is no cumulative.

26 years agoAdded Josh Macdonald's description of the Text widget's internals.
Owen Taylor [Thu, 19 Feb 1998 17:34:50 +0000 (17:34 +0000)]
Added Josh Macdonald's description of the Text widget's internals.

26 years agogdk_get_debug_level doesn't exist anymore
Manish Singh [Thu, 19 Feb 1998 09:14:21 +0000 (09:14 +0000)]
gdk_get_debug_level doesn't exist anymore

-Yosh

26 years agomore debugging fixes.
Tim Janik [Thu, 19 Feb 1998 08:14:03 +0000 (08:14 +0000)]
more debugging fixes.
hey yosh, you beated me at gdk.c ;)
-timj

26 years agoShould compile with debugging off now...
Manish Singh [Thu, 19 Feb 1998 08:07:55 +0000 (08:07 +0000)]
Should compile with debugging off now...

-Yosh

26 years agopresent the argument access masks on their announcement.
Tim Janik [Thu, 19 Feb 1998 07:18:42 +0000 (07:18 +0000)]
present the argument access masks on their announcement.

Thu Feb 19 06:56:52 1998  Tim Janik  <timj@gimp.org>

        * gtkbox.c:
        * gtkbutton.c:
        * gtkcontainer.c:
        * gtkframe.c:
        * gtklabel.c:
        * gtkobject.c:
        * gtkwidget.c:
        * gtkwindow.c:
        present the argument access masks on their announcement.

        * gtk/gtkobject.h:
        * gtk/gtkobject.c:
        (gtk_object_add_arg_type): take an additional argument describing
        the access mask of the new arg. this can be of GTK_ARG_READABLE,
        GTK_ARG_WRITABLE or GTK_ARG_READWRITE (the latter is an alias for
        the two previous ones).
        (gtk_object_query_args): provide an access_mask array if desired.

        * gtk/gtkwidget.c (gtk_widget_real_realize):
        realized the assumtion that widget is a NO_WINDOW widget
        in actuall code.

        * gtkwindow.c:
        slight changes to gtk_window_configure_event that will make
        the resizing behaviour a little less odd.
        sigh, for some (buggy) reason, there are still container resizes
        triggered by manual resizing to very small window sizes.
        the cointainer resizes will cause gtk_real_window_move_resize to
        be invoked, which makes the app look like it wants to fight the users
        resizing action. ;(

26 years agomissed one.
Owen Taylor [Thu, 19 Feb 1998 06:21:49 +0000 (06:21 +0000)]
missed one.

26 years agoconfigure.in gdk/gdk.[ch] gdk/gdkcc.c gdk/gdkglobals.c
Owen Taylor [Thu, 19 Feb 1998 06:21:27 +0000 (06:21 +0000)]
configure.in gdk/gdk.[ch] gdk/gdkcc.c gdk/gdkglobals.c

Thu Feb 19 01:11:48 1998  Owen Taylor  <owt1@cornell.edu>

* configure.in         gdk/gdk.[ch]         gdk/gdkcc.c
  gdk/gdkglobals.c     gdk/gdkinputcommon.h gdk/gdkprivate.h
  gdk/gdkvisual.c      glib/configure.in    glib/glib.h
  glib/gutils.c        gtk/Makefile.am      gtk/gtkmain.c
  gtk/gtkobject.[ch]   gtk/gtkdebug.h       docs/debugging.txt

New system for controlling debugging:

* --enable-debug=[no/yes/minimum]
* G_DISABLE_ASSERT and G_DISABLE_CHECKS for glib
* G_NO_CHECK_CASTS to control cast checking
* G_ENABLE_DEBUG enables run time checking which controls:
    Object tracing
    Showing events
    Miscellaneous g_print's in GDK
  And is controlled by --gdk-debug/GDK_DEBUG, --gtk-debug/GTK_DEBUG
        * debug_level and show_events are gone from GTK

See docs/debugging.txt for details.

And some fixups to the configure.in's so '-g' can be
overriden on the command line for --enable-debug

26 years agoapplied gtk-hamann_jeske-980218-0.patch.gz, a patch from Lars Hamann and
Tim Janik [Thu, 19 Feb 1998 05:13:46 +0000 (05:13 +0000)]
applied gtk-hamann_jeske-980218-0.patch.gz, a patch from Lars Hamann and

Thu Feb 19 05:40:51 1998  Tim Janik  <timj@gimp.org>

        * gtk/gtknotebook.h:
        * gtk/gtknotebook.c:
        applied gtk-hamann_jeske-980218-0.patch.gz, a patch from
        Lars Hamann and Stefan Jeske which introduces major
        usability improvements.
        fixed bugs are:
        - container border_width>0 does now work correctly for show_tabs==TRUE
          and for tab_pos=GTK_POS_BOTTOM/GTK_POS_RIGHT.
        - toggleing visibility of the tab labels works now.
        - emission of GtkNotebook:switch_page and all page changes
        also the signature for the GtkNotebook:switch_page signal changed,
        callbacks should now look like:
        gint notebook_switch_page (GtkWidget *widget,   GtkNotebookPage *page,
                                   gint       page_num, gpointer         data);

26 years agoCList signal revert (right back at you! *ouch*)
Jay Painter [Thu, 19 Feb 1998 02:59:55 +0000 (02:59 +0000)]
CList signal revert (right back at you! *ouch*)

26 years agoA couple of compiler warning fixes, GtkCList signal changes, changed
Jay Painter [Wed, 18 Feb 1998 10:03:54 +0000 (10:03 +0000)]
A couple of compiler warning fixes, GtkCList signal changes, changed
fileselect to work with new CList signals, and enhanced testgtk's clist
example to show pixmaps and signal results. -Jay Painter

26 years agonew signal GtkWidget::set_parent. this signal will be emitted once a
Tim Janik [Wed, 18 Feb 1998 04:09:13 +0000 (04:09 +0000)]
new signal GtkWidget::set_parent. this signal will be emitted once a

Wed Feb 18 04:38:24 1998  Tim Janik  <timj@gimp.org>

        * gtk/gtkwidget.h:
        * gtk/gtkwidget.c:
          new signal GtkWidget::set_parent. this signal will be emitted once a
          widget gets a new/no parent assigned (i.e. from gtk_widget_unparent
          and gtk_widget_set_parent).

26 years agonew functions gtk_tooltips_data_get and gtk_tooltips_set_tip,
Tim Janik [Wed, 18 Feb 1998 02:40:08 +0000 (02:40 +0000)]
new functions gtk_tooltips_data_get and gtk_tooltips_set_tip,

Wed Feb 18 02:58:50 1998  Tim Janik  <timj@gimp.org>

        * gtk/gtktooltips.h:
          new functions gtk_tooltips_data_get and
          gtk_tooltips_set_tip, gtk_tooltips_set_tips is discouraged now.
        (_GtkTooltips): removed some fields that were never used.
          changed boolean fields to one bit size, to pack together with
          the delay field.
        (_GtkTooltipsData): added tip_private, renamed tips_text to
          tip_text.
        * gtk/gtktooltips.c:
          (gtk_tooltips_data_get): new function to retrive the
          _GtkTooltipsData structure of a widget.
        (gtk_tooltips_set_tip): new function for more extensible tooltips
          settings than gtk_tooltips_set_tips which is discuraged now.
          removed a bug that caused a stale object_data key to a
          _GtkTooltipsData structure.
          removed a bug that caused tips falsly to come up for a grab widget
          on widgets where events were grabbed from.

26 years agoAdded some missing newlines on debug messages.
Federico Mena Quintero [Tue, 17 Feb 1998 20:13:43 +0000 (20:13 +0000)]
Added some missing newlines on debug messages.

1998-02-17  Federico Mena Quintero  <federico@nuclecu.unam.mx>

* gdk/gdkcc.c: Added some missing newlines on debug messages.

26 years agoMake g_slist_insert_sorted() always insert.
rhlabs [Tue, 17 Feb 1998 18:52:52 +0000 (18:52 +0000)]
Make g_slist_insert_sorted() always insert.

-Marc

26 years agoinvoke gtk_entry_grow_text already in this place, so the application will
Tim Janik [Tue, 17 Feb 1998 08:32:55 +0000 (08:32 +0000)]
invoke gtk_entry_grow_text already in this place, so the application will

Tue Feb 17 05:41:31 1998  Tim Janik  <timj@gimp.org>

        * gtk/gtkentry.c (gtk_entry_init): invoke gtk_entry_grow_text already
          in this place, so the application will never see entry->text==NULL.
          (see also ChangeLog entry from Tue Feb 11 1997 on this).

also i added some blurb about recent changes to the NEWS file,
and updated the TODO.

26 years agoapplied patch to fix draw_indicator behaviour from Lars Hamann and Stefan
Tim Janik [Tue, 17 Feb 1998 06:03:40 +0000 (06:03 +0000)]
applied patch to fix draw_indicator behaviour from Lars Hamann and Stefan

Tue Feb 17 05:41:31 1998  Tim Janik  <timj@gimp.org>

        * gtk/gtkcheckbutton.c:
        * gtk/gtkradiobutton.c:
        * gtk/gtktogglebutton.c:
          applied patch to fix draw_indicator behaviour from Lars Hamann
          and Stefan Jeske.

        * gtk/gtkmain.h:
        * gtk/gtkmain.c (gtk_grab_get_current): new function
          that returns the current grab widget or NULL.

        * gdk/gdkwindow.c (gdk_window_shape_combine_mask): remove
          shape mask if mask==NULL (provided by Stefan Wille).

26 years agoFrom Patrice Fortier <Patrice.Fortier@aquarel.fr>
Owen Taylor [Tue, 17 Feb 1998 05:07:51 +0000 (05:07 +0000)]
From Patrice Fortier <Patrice.Fortier@aquarel.fr>

Tue Feb 17 00:06:26 1998  Owen Taylor  <owt1@cornell.edu>

* gtk/gtkpaned.c, gtk/gtk[hv]paned.c: (gtk-fortier-980215-0)
  From Patrice Fortier <Patrice.Fortier@aquarel.fr>

  Add a widget->window for paned windows, so they
  can be reparented properly.

26 years agoFrom Patrice Fortier <Patrice.Fortier@aquarel.fr>
Owen Taylor [Tue, 17 Feb 1998 04:48:50 +0000 (04:48 +0000)]
From Patrice Fortier <Patrice.Fortier@aquarel.fr>

Mon Feb 16 23:47:09 1998  Owen Taylor  <owt1@cornell.edu>

* gtk/gtkviewport.c: (gtk-fortier-980130-0)
  From Patrice Fortier <Patrice.Fortier@aquarel.fr>

  Eliminate some extra expose events for viewports.
  (To be conservative, I set the user's event mask for
   both widget->window, and viewport->bin_window  -owt)

26 years agoMake timeout and idle insertion code use g_list_insert_sorted().
Owen Taylor [Tue, 17 Feb 1998 04:39:47 +0000 (04:39 +0000)]
Make timeout and idle insertion code use g_list_insert_sorted().

Mon Feb 16 23:12:14 1998  Owen Taylor  <owt1@cornell.edu>

* gtk/gtkmain.c: Make timeout and idle insertion code
  use g_list_insert_sorted().

26 years agoChanged function so elements are always inserted, even if they compare
Owen Taylor [Tue, 17 Feb 1998 04:03:56 +0000 (04:03 +0000)]
Changed function so elements are always inserted, even if they compare

Mon Feb 16 23:05:06 1998  Owen Taylor  <owt1@cornell.edu>

* glist.c (g_list_insert_sorted): Changed function
  so elements are always inserted, even if they compare
  equal with another.

26 years ago\n
Tim Janik [Tue, 17 Feb 1998 02:19:30 +0000 (02:19 +0000)]
\n

26 years agoUse gtk_signal_default_marshaller, for expand/collapse signals.
Owen Taylor [Mon, 16 Feb 1998 22:34:30 +0000 (22:34 +0000)]
Use gtk_signal_default_marshaller, for expand/collapse signals.

Mon Feb 16 17:35:17 1998  Owen Taylor  <owt1@cornell.edu>

* gtk/gtktreeitem.c: Use gtk_signal_default_marshaller,
  for expand/collapse signals.

26 years agoD&D fixes
Elliot Lee [Mon, 16 Feb 1998 22:04:52 +0000 (22:04 +0000)]
D&D fixes

26 years agogtkmain forgot a return value.
Tim Janik [Sat, 14 Feb 1998 05:37:53 +0000 (05:37 +0000)]
gtkmain forgot a return value.
few fixes with resizing behaviour and non opaque moves
where configure events would exceed te number of calls
to gdk_window_resize.
-timj

26 years agoFixed some incorrect information.
Owen Taylor [Fri, 13 Feb 1998 23:00:54 +0000 (23:00 +0000)]
Fixed some incorrect information.

26 years agocheck for clist !REALIZED. (draw_rows): bail out if the widget isn't
Tim Janik [Fri, 13 Feb 1998 18:41:18 +0000 (18:41 +0000)]
check for clist !REALIZED. (draw_rows): bail out if the widget isn't

Fri Feb 13 19:08:51 1998  Tim Janik  <timj@gimp.org>

        * gtk/gtkclist.c (check_exposures): check for clist !REALIZED.
        (draw_rows): bail out if the widget isn't drawable.
        (hadjustment_value_changed):
        (vadjustment_value_changed): bail out if clist isn't drawable.

        * gdk/gdk.c (graphics_expose_predicate): check for private != NULL.
        (gdk_event_get_graphics_expose): check for window != NULL.

26 years agoRealize window before creating xpm so it gets the right colormap/visual,
Owen Taylor [Fri, 13 Feb 1998 05:33:17 +0000 (05:33 +0000)]
Realize window before creating xpm so it gets the right colormap/visual,

Fri Feb 13 00:33:26 1998  Owen Taylor  <owt1@cornell.edu>

* gtk/testgtk.c (shape_create_icon): Realize window before
  creating xpm so it gets the right colormap/visual,
  instead of the default one.

26 years agoChange style->white to style->base[] where appropriate. Change the default
Owen Taylor [Fri, 13 Feb 1998 05:26:33 +0000 (05:26 +0000)]
Change style->white to style->base[] where appropriate. Change the default

* gtk/gtkentry.c gtk/gtkinputdialog.c gtk/gtklist.c
  gtk/gtklistitem.c gtktree.c gtk/gtktreeitem.c testgtkrc:

  Change style->white to style->base[] where appropriate.
  Change the default style to make this apparent. (Yes, it's
  ugly... it can be removed later)

26 years agogtk/gtksignal.[ch] gtk/gtkmain.[ch] gtk/gtkcontainer.[ch]
Owen Taylor [Fri, 13 Feb 1998 05:19:06 +0000 (05:19 +0000)]
gtk/gtksignal.[ch] gtk/gtkmain.[ch] gtk/gtkcontainer.[ch]

Thu Feb 12 23:59:49 1998  Owen Taylor  <owt1@cornell.edu>

* gtk/gtksignal.[ch] gtk/gtkmain.[ch] gtk/gtkcontainer.[ch]
  gtk/gtkselection.[ch] gdk/gdk.[ch] gtktypeutils.h

    Replaced all _interp functions with _full functions.
  (_interp functions left in for compatibility until 0.99.5).
  Difference: _full functions take _both_ a C-language callback and a
  marshaller, and simply ignore the C-language callback
  if the marshaller is present. This allows the destroy notification
  to be used without marshalling.

  gtk_selection_add_handler[_full]() regularized to agree
  with other callbacks.

  Also, added gtk_input_add_full() to the header file.
  (gtk_input_add_interp() was never there)

* gtk/gtkmain.[ch] gtk/gtkwidget.c: Idle functions are now prioritized.
  Added new function gtk_idle_add_priority to create
  an idle with a specified priority (default is zero)
  constants #defined - GTK_PRIORITY_[HIGH/INTERNAL/DEFAULT/LOW]
  (redraws, resizes run at GTK_PRIORITY_INTERNAL)

* gtk/gtkentry.c gtk/testselection.c: changes to keep up with change
     to gtkselection.c.

26 years agoAdd a DestroyNotify field, and gtk_object_set_data_full() to match.
Owen Taylor [Fri, 13 Feb 1998 05:11:16 +0000 (05:11 +0000)]
Add a DestroyNotify field, and gtk_object_set_data_full() to match.

Tue Feb 10 15:01:44 1998  Owen Taylor  <owt1@cornell.edu>

* gtk/gtkobject.c gtk/gtkobject.h: Add a DestroyNotify
field, and gtk_object_set_data_full() to match.

* gtk/gtkobject.c (gtk_object_finalize): ObjectData structures
were being added to a free list, then forgotten about. Just
rely on GMemChunk instead.

26 years agochange logged.
Owen Taylor [Fri, 13 Feb 1998 03:47:43 +0000 (03:47 +0000)]
change logged.

26 years agoremoved deprecated g_string_equal and g_string_hash.
Owen Taylor [Fri, 13 Feb 1998 03:47:25 +0000 (03:47 +0000)]
removed deprecated g_string_equal and g_string_hash.

Thu Feb 12 22:48:11 1998  Owen Taylor  <owt1@cornell.edu>

* gstring.c glib.h: removed deprecated g_string_equal
  and g_string_hash.

26 years agoFixed unrealize handler to comply with the documentation (which mentions
Federico Mena Quintero [Thu, 12 Feb 1998 03:02:14 +0000 (03:02 +0000)]
Fixed unrealize handler to comply with the documentation (which mentions

2018-02-11  Federico Mena Quintero  <federico@nuclecu.unam.mx>

* gtk/gtkclist.c:
* gtk/gtkentry.c:
* gtk/gtkfixed.c:
* gtk/gtkhandlebox.c:
* gtk/gtknotebook.c:
* gtk/gtkpaned.c:
* gtk/gtkpreview.c:
* gtk/gtkrange.c:
* gtk/gtkruler.c:
* gtk/gtktext.c:
* gtk/gtkviewport.c:
Fixed unrealize handler to comply with the
documentation (which mentions the right thing to do).

26 years agoSpelling fixups and minor changes.
Owen Taylor [Thu, 12 Feb 1998 02:40:30 +0000 (02:40 +0000)]
Spelling fixups and minor changes.

26 years agosmall fixup, so that the clist doesn't draw if it is
Tim Janik [Wed, 11 Feb 1998 05:07:36 +0000 (05:07 +0000)]
small fixup, so that the clist doesn't draw if it is
not realized.
-timj

26 years agoReally minor cosmetic fix that just niggled me. :P
Manish Singh [Wed, 11 Feb 1998 01:08:42 +0000 (01:08 +0000)]
Really minor cosmetic fix that just niggled me. :P

-Yosh

26 years agobacked out the section "Gnits to care about". new file, kinda developers
Tim Janik [Wed, 11 Feb 1998 00:40:20 +0000 (00:40 +0000)]
backed out the section "Gnits to care about". new file, kinda developers

Wed Feb 11 00:18:31 1998  Tim Janik  <timj@gimp.org>

        * docs/refcounting.txt: backed out the section "Gnits to care about".
        * docs/developers.txt: new file, kinda developers FAQ.

26 years agonew function gtk_signal_handler_pending() returning the id of the next
Tim Janik [Tue, 10 Feb 1998 23:49:15 +0000 (23:49 +0000)]
new function gtk_signal_handler_pending() returning the id of the next

Wed Feb 11 00:18:31 1998  Tim Janik  <timj@gimp.org>

        * gtk/gtksignal.h:
        * gtk/gtksignal.c: new function gtk_signal_handler_pending() returning
          the id of the next handler pending for that signal or 0.
          put struct GtkHandler back into gtksignal.c along with
          gtk_signal_get_handlers.

26 years agoAdd check to see if the C library's iswalnum can actually be used. (Not
Owen Taylor [Tue, 10 Feb 1998 18:18:19 +0000 (18:18 +0000)]
Add check to see if the C library's iswalnum can actually be used. (Not

Tue Feb 10 13:04:36 1998  Owen Taylor  <owt1@cornell.edu>

* configure.in: Add check to see if the C library's
  iswalnum can actually be used. (Not true for
  Linux libc-5.4.38)

26 years agook, there have been several severe bugs in the signal handler referencing
Tim Janik [Tue, 10 Feb 1998 06:53:08 +0000 (06:53 +0000)]
ok, there have been several severe bugs in the signal handler referencing

Tue Feb 10 07:12:07 1998  Tim Janik  <timj@gimp.org>

        * gtk/gtksignal.h:
        * gtk/gtksignal.c:
        ok, there have been several severe bugs in the signal handler
        referencing and ->next connection stuff. these bugs caused
        invokations of handlers that are disconnected and - worse -
        destroyed already. invokation of *destroyd* handlers mean:
        anything can be executed , because the handler structure can just
        as well be realocated.
        at the cost of an extra ->prev field per handler we should have a
        reasonable stable system now, because of the various places that
        can cause a handler to be disconnected (*any* handler invokation can
        cause *any* or *all* handlers to be disconnected, there is no way
        around a doubly linked list, actually handler disconnection has never
        worked correctly because of this.
        handlers are connected together via a *doubly* linked list now, and it
        is *not* valid to remove a handler out of this list untill all its
        references have been droped, i.e. handler->ref_count==0.
        to prevent emissions of disconnected but still referenced handlers,
        disconnected handlers are simply marked as blocked and get an id of 0
        which is an invalid signal handler id.
        the handler->id has been changed to have 28 significant bits (using
        alignment gaps), since 65536 (old range: guint16) signal connections
        (as a total) can easily be reached by complex applications.
        this whole handler thingy is at least as tedious as writing doubly
        linked list implementations ;)

26 years agoCheck for the RESIZE_NEEDED flag and remove the widget from the list.
Owen Taylor [Tue, 10 Feb 1998 04:17:10 +0000 (04:17 +0000)]
Check for the RESIZE_NEEDED flag and remove the widget from the list.

Mon Feb  9 23:08:16 1998  Owen Taylor  <owt1@cornell.edu>

* gtk/gtkwidget.c (gtk_widget_unparent): Check for
  the RESIZE_NEEDED flag and remove the widget from the list.
  Remove the check from gtk_widget_destroy (no longer needed).

* Unrealize widget _before_ calling "destroy" signal, and
  unset VISIBLE flag.

* Unrealize child widgets _after_ unrealizing parent to improve
  visual appearance.

26 years agono longer a private routine; gtksignal.h: export gtk_signal_get_handlers
Miguel de Icaza [Mon, 9 Feb 1998 22:44:34 +0000 (22:44 +0000)]
no longer a private routine; gtksignal.h: export gtk_signal_get_handlers

Mon Feb  9 16:42:21 1998  Miguel de Icaza  <miguel@nuclecu.unam.mx>

* gtk/gtksignal.c (gtk_signal_get_handlers): no longer a private
routine;
gtksignal.h: export gtk_signal_get_handlers and GtkHandlers type.

26 years agonew fundtion to return the widget that the menu is attached to.
Tim Janik [Sun, 8 Feb 1998 19:00:01 +0000 (19:00 +0000)]
new fundtion to return the widget that the menu is attached to.

Sun Feb  8 07:06:54 1998  Tim Janik  <timj@gimp.org>

        * gtk/gtkmenu.c (gtk_menu_get_attach_widget): new fundtion to return
          the widget that the menu is attached to.

26 years agoNew API functions: gtk_clist_get_cell_type gtk_clist_get_text
Jay Painter [Sun, 8 Feb 1998 07:55:11 +0000 (07:55 +0000)]
New API functions: gtk_clist_get_cell_type gtk_clist_get_text

New API functions:
  gtk_clist_get_cell_type
  gtk_clist_get_text
  gtk_clist_get_pixmap
  gtk_clist_get_pixtext
  gtk_clist_find_row_from_data

26 years agouse a mask of 0xffffffff instead of 0xffff, since there are 22 flags
Owen Taylor [Sat, 7 Feb 1998 17:07:14 +0000 (17:07 +0000)]
use a mask of 0xffffffff instead of 0xffff, since there are 22 flags

Sat Feb  7 11:33:08 1998  Owen Taylor  <owt1@cornell.edu>

* gdk/gdkgc.c (gdk_gc_copy): use a mask of 0xffffffff
  instead of 0xffff, since there are 22 flags currently
  defined. (From: Jon Trowbridge <trow@emccta.com>)

  Changed to something better. ~((~1) << GCLastBit)
   (From: from Daniel Stephens <daniel@cheeseplant.org>)

26 years agoadded some additional consts in appropriate places to remove a warning
Owen Taylor [Sat, 7 Feb 1998 16:48:03 +0000 (16:48 +0000)]
added some additional consts in appropriate places to remove a warning

Sat Feb  7 11:48:09 1998  Owen Taylor  <owt1@cornell.edu>

* gstring.c gutils.c: added some additional consts in
  appropriate places to remove a warning

26 years agouse a mask of 0xffffffff instead of 0xffff, since there are 22 flags
Owen Taylor [Sat, 7 Feb 1998 16:34:40 +0000 (16:34 +0000)]
use a mask of 0xffffffff instead of 0xffff, since there are 22 flags

Sat Feb  7 11:33:08 1998  Owen Taylor  <owt1@cornell.edu>

* gdk/gdkgc.c (gdk_gc_copy): use a mask of 0xffffffff
  instead of 0xffff, since there are 22 flags currently
  defined. (From: Jon Trowbridge <trow@emccta.com>)

26 years agoinclude <ctype.h> for tolower()
Owen Taylor [Sat, 7 Feb 1998 16:14:13 +0000 (16:14 +0000)]
include <ctype.h> for tolower()

Sat Feb  7 11:15:54 1998  Owen Taylor  <owt1@cornell.edu>

* gutils.c: include <ctype.h> for tolower()

26 years agoHere's a small patch that corrects a prototype in gtkvpaned.h.
Tom Tromey [Sat, 7 Feb 1998 16:10:01 +0000 (16:10 +0000)]
Here's a small patch that corrects a prototype in gtkvpaned.h.

From: Tom Tromey <tromey@creche.cygnus.com>
Here's a small patch that corrects a prototype in gtkvpaned.h.

                                        -owt

26 years agoclean ups. -timj
Tim Janik [Sat, 7 Feb 1998 04:59:23 +0000 (04:59 +0000)]
clean ups. -timj

clean ups.
-timj

26 years agodon't wipe out window_private's x and y coordinates if the configure
Tim Janik [Sat, 7 Feb 1998 02:26:09 +0000 (02:26 +0000)]
don't wipe out window_private's x and y coordinates if the configure

Sat Feb  7 02:29:01 1998  Tim Janik  <timj@gimp.org>

        * gdk/gdk.c (gdk_event_translate): don't wipe out window_private's x
          and y coordinates if the configure notify is only about resizing,
          query the correct origin instead.

26 years agoA little cosmetic cleanup
Jay Painter [Thu, 5 Feb 1998 08:40:06 +0000 (08:40 +0000)]
A little cosmetic cleanup

26 years agoMenufactory now refs&sinks its children.
scott [Thu, 5 Feb 1998 04:10:43 +0000 (04:10 +0000)]
Menufactory now refs&sinks its children.
--sg

26 years agonew function to perform the same actions as gtk_list_remove_items, but
Tim Janik [Thu, 5 Feb 1998 03:53:41 +0000 (03:53 +0000)]
new function to perform the same actions as gtk_list_remove_items, but

Thu Feb  5 02:13:08 1998  Tim Janik  <timj@gimp.org>

        * gtk/gtklist.h:
        * gtk/gtklist.c (gtk_list_remove_items_no_unref): new function
          to perform the same actions as gtk_list_remove_items, but
          supply the removed widgets with an additional reference count.

        * gtk/gtkmain.c (gtk_main_iteration_do): ignore events
          with event_widget == NULL, since they are bogus events
          from destroyed GdkWindows, exept for the case where
          event->type==GDK_PROPERTY_NOTIFY. Always handle expired
          timeout functions when returning from this function.

        * gtk/gtkwidget.c (gtk_widget_event): ignore GDK_EXPOSE events
          if event->window == NULL. Also, if this function couldn't handle
          the event for any reason (including failing assumptions), make
          the return value to look as if the event had been handled to
          avoid further processing (and warnings).

        * gtk/gtkwidget.h:
        * gtk/gtkwidget.c: remove gtk_widget_sink, because there is
          no point in providing such a function.

        * gdk/gdk.c (gdk_init): changed options `-name' and `-class'
          to `--name' and `--class', because the old names would
          confuse getopt(). these arguments have been introduced in the
          changes from gtk+970916 to gtk+970925 without a ChangeLog entry,
          changing argument names is painful, it would be nice if people
          would care about compatibility and consistency in the first place!

26 years agosection: Gnits to care about -------------------
Tim Janik [Thu, 5 Feb 1998 00:13:42 +0000 (00:13 +0000)]
section: Gnits to care about -------------------

section:
Gnits to care about
-------------------

-timj

26 years agodocumentation. -timj
Tim Janik [Wed, 4 Feb 1998 03:18:53 +0000 (03:18 +0000)]
documentation. -timj

documentation.
-timj

26 years agoindentations. -timj
Tim Janik [Wed, 4 Feb 1998 00:06:29 +0000 (00:06 +0000)]
indentations. -timj

indentations.
-timj