]> Pileus Git - ~andy/gtk/log
~andy/gtk
26 years agoMiguel, try this - I think it should do what you need. Hurry hurry :)
Elliot Lee [Tue, 10 Mar 1998 02:48:02 +0000 (02:48 +0000)]
Miguel, try this - I think it should do what you need. Hurry hurry :)

26 years agoWe now accept the color parameter to be NULL. If it is NULL, it will mark
Federico Mena Quintero [Tue, 10 Mar 1998 02:21:15 +0000 (02:21 +0000)]
We now accept the color parameter to be NULL. If it is NULL, it will mark

1998-03-09  Federico Mena Quintero  <federico@nuclecu.unam.mx>

* gtk/gtkclist.c (gtk_clist_set_foreground): We now accept the
color parameter to be NULL.  If it is NULL, it will mark the row
with "color not set", so it will be repainted with the default color.
(gtk_clist_set_background): Likewise.

26 years agoapplied gtk-gronlund-980309-0.patch.gz.
Tim Janik [Tue, 10 Mar 1998 01:07:16 +0000 (01:07 +0000)]
applied gtk-gronlund-980309-0.patch.gz.
-timj

26 years agomade the <widget>_signals[] arrays of type guint rather than gint. made
Tim Janik [Mon, 9 Mar 1998 15:16:28 +0000 (15:16 +0000)]
made the <widget>_signals[] arrays of type guint rather than gint. made

Mon Mar  9 15:48:10 1998  Tim Janik  <timj@gimp.org>

        * Signal signedness and naming corrections, plus GtkType fixes:

        * gtk/gtkadjustment.c:
        * gtk/gtkbutton.c:
        * gtk/gtkcheckmenuitem.c:
        * gtk/gtkclist.c:
        * gtk/gtkcolorsel.c:
        * gtk/gtkcontainer.c:
        * gtk/gtkcurve.c:
        * gtk/gtkdata.c:
        * gtk/gtkeditable.c:
        * gtk/gtkentry.c:
        * gtk/gtkhandlebox.c:
        * gtk/gtkinputdialog.c:
        * gtk/gtkitem.c:
        * gtk/gtklist.c:
        * gtk/gtkmenuitem.c:
        * gtk/gtkmenushell.c:
        * gtk/gtknotebook.c:
        * gtk/gtkstatusbar.c:
        * gtk/gtktoolbar.c:
        * gtk/gtktree.c:
        * gtk/gtktreeitem.c:
        * gtk/gtkwidget.c:
        * gtk/gtktogglebutton.c:
        * gtk/gtkwindow.c:
        made the <widget>_signals[] arrays of type guint rather than gint.
        * gtk/gtkwidget.c (gtk_widget_get_ancestor): made widget_type a GtkType.

        * gtk/gtkcombo.h:
        handler ids need to be of type guint (entry_change_id, list_change_id).

        * gtk/gtkaccelerator.c:
        changed signal_num to signal_id and typed it guint.

        * gtk/gtkmain.c: made gtk_ndebug_keys a guint.

        * gtk/gtkmenu.h:
        * gtk/gtkmenu.c:
        (gtk_menu_popup): made button a guint.
        (gtk_menu_set_active): made index a guint.

        * gtk/gtkmenuitem.h:
        * gtk/gtkmenuitem.c:
        made accelerator_signal a guint.

        * gtk/gtkoptionmenu.h:
        * gtk/gtkoptionmenu.c:
        (gtk_option_menu_set_history): made index a guint.

        * gtk/gtksignal.h:
        * gtk/gtksignal.c:
        * gtk/gtkobject.h:
        * gtk/gtkobject.c: changed a bunch of prototypes to take guints rather
        than gints. also made some conversions from guint to GtkType, left over
        from when the fundamental-types system was introduced.

        * gtk/gtkobject.h:
        * gtk/gtkobject.c: made object_data_id_index and obj_count guints.
        made *signals and nsignals guints in GtkObjectClass.

26 years ago- Use 'diff -ru' for patches - Explained patch application/rejection -
GMT 1998 Tony Gale [Mon, 9 Mar 1998 13:49:02 +0000 (13:49 +0000)]
- Use 'diff -ru' for patches - Explained patch application/rejection -

Mon Mar  9 13:36:53 GMT 1998 Tony Gale  <gale@gimp.org>

        * docs/gtkfaq.sgml:

        - Use 'diff -ru' for patches
        - Explained patch application/rejection
        - Added information on CVS
        - New question on right justified menus with menufactory

        From Nathan:

        - Information on Objective-C bindings
        - Add missing variable in colour example.

26 years agoreverted the changes ian introduced in r1.16 on Mar 06, since they broke
Tim Janik [Mon, 9 Mar 1998 10:54:13 +0000 (10:54 +0000)]
reverted the changes ian introduced in r1.16 on Mar 06, since they broke

Mon Mar  9 11:44:33 1998  Tim Janik  <timj@gimp.org>

        * gtk/gtkfilesel.c (gtk_file_selection_update_history_menu): reverted
        the changes ian introduced in r1.16 on Mar 06, since they broke the
        history menu.

26 years agohehe stupid me, wanted to fix a warning, and borke
Tim Janik [Mon, 9 Mar 1998 07:36:55 +0000 (07:36 +0000)]
hehe stupid me, wanted to fix a warning, and borke
the menus instead...
-timj

26 years agopatch from lars for construct behaviour.
Tim Janik [Mon, 9 Mar 1998 07:18:33 +0000 (07:18 +0000)]
patch from lars for construct behaviour.
-timj

26 years agoNo, you can't add a GtkStyle * to a list of GtkRcNode *. (Fixes huge
Owen Taylor [Mon, 9 Mar 1998 06:07:34 +0000 (06:07 +0000)]
No, you can't add a GtkStyle * to a list of GtkRcNode *. (Fixes huge

Mon Mar  9 01:01:41 1998  Owen Taylor  <owt1@cornell.edu>

* gtk/gtkrc.c: No, you can't add a GtkStyle * to a
  list of GtkRcNode *. (Fixes huge performance problem)
  Plus, don't bother creating a new style unless style
  actually has bg pixmaps.

26 years agoChange has_selection to always be set in claim_selection()
Owen Taylor [Sun, 8 Mar 1998 21:53:56 +0000 (21:53 +0000)]
Change has_selection to always be set in claim_selection()

26 years ago- Show selection correctly when starting selection with arrows
Owen Taylor [Sun, 8 Mar 1998 21:47:14 +0000 (21:47 +0000)]
- Show selection correctly when starting selection with arrows

Sun Mar  8 15:53:33 1998  Owen Taylor  <owt1@cornell.edu>

* gtk/gtktext.c:

- Show selection correctly when starting selection with arrows

- Display pixmap background only when not editable

- Redraw focus area more carefully to prevent flashing (and
  make style of drawing consistent with Entry)

* gtk/gtktreeitem.c: ref colormaps for pixmap by colormap
  storage.

* gtk/gtkrc.c: Store a separate style for each RcStyle for
  each colormap, so we can handle background pixmaps
  correctly, which need to be per-colormap. (Leaks
  colormaps...)

  Parse text color style entries correctly.

* gtk/testgtk.c: insert text without fg color
  gtk/testgtkrc: move "*" after rest, so the other class styles
                 take effect

        * gdk/gdkwindow.c gdk/gdk.c gdk/gdkprivate.h: Send DND events
  safely, in case drop window disappears. (Performance hit
  because XSync()'s are necessary)

* gdk/gdk.h gdk/gdkpixmap.c: Added
  gdk_pixmap_colormap_create_from_xpm[_d] to allow creating
  pixmaps from xpm's before you have a GdkWindow.

26 years agochanged clist->selection GList so its data elements are casted row indexes instead
Jay Painter [Sun, 8 Mar 1998 20:44:01 +0000 (20:44 +0000)]
changed clist->selection GList so its data elements are casted row indexes instead
of pointers.  I also cleaned up a few bugs with GTK_SELECTION_MULTIPLE mode, and some
signal synronization problems with removing selected rows.

26 years ago<raster@redhat.com>
rhlabs [Sun, 8 Mar 1998 12:20:52 +0000 (12:20 +0000)]
<raster@redhat.com>

<raster@redhat.com>

Forgot to add changelog entries... added.

26 years agoremoved gtk_range_calc_value().
Tim Janik [Sun, 8 Mar 1998 12:04:43 +0000 (12:04 +0000)]
removed gtk_range_calc_value().

Sun Mar  8 13:03:22 1998  Tim Janik  <timj@gimp.org>

        * gtk/gtkrange.h: removed gtk_range_calc_value().

26 years agofix a NULL warning. -timj
Tim Janik [Sun, 8 Mar 1998 11:22:26 +0000 (11:22 +0000)]
fix a NULL warning. -timj

fix a NULL warning.
-timj

26 years agotypos and warning fixes.
Tim Janik [Sun, 8 Mar 1998 10:41:48 +0000 (10:41 +0000)]
typos and warning fixes.
-timj

26 years agoapplied a bunch of patches and removed all the printfs that
Tim Janik [Sun, 8 Mar 1998 03:32:05 +0000 (03:32 +0000)]
applied a bunch of patches and removed all the printfs that
raster left over.
-timj

26 years agodefine the version variables in config.h.
Tim Janik [Sun, 8 Mar 1998 02:04:26 +0000 (02:04 +0000)]
define the version variables in config.h.

Sun Mar  8 03:00:17 1998  Tim Janik  <timj@gimp.org>

        * configure.in: define the version variables in config.h.

        * gtk/gtkmain.h:
        * gtk/gtkmain.c: added static version variables.

        * gdk/gdkpixmap.c: fixed memory leaks (gtk-gronlund-980307-1.patch.gz)

26 years agoAdded a new function, gtk_preview_reset(), that can be used (under highly
Owen Taylor [Sun, 8 Mar 1998 00:59:38 +0000 (00:59 +0000)]
Added a new function, gtk_preview_reset(), that can be used (under highly

Sat Mar  7 18:46:57 1998  Owen Taylor  <owt1@cornell.edu>

* gtk/gtkpreview.[ch]: Added a new function, gtk_preview_reset(),
  that can be used (under highly controlled circumstances),
  to change the properties of the preview colormap after
  a preview has already been created and destroyed.

26 years agoregister living objects in a hashtable.
Tim Janik [Sat, 7 Mar 1998 23:20:56 +0000 (23:20 +0000)]
register living objects in a hashtable.

Sun Mar  8 00:18:04 1998  Tim Janik  <timj@gimp.org>

        * gtk/gtkobject.c: register living objects in a hashtable.

26 years agomade the object/class cast checks much more descriptive, based on
Tim Janik [Sat, 7 Mar 1998 20:32:59 +0000 (20:32 +0000)]
made the object/class cast checks much more descriptive, based on

Sat Mar  7 20:20:53 1998  Tim Janik  <timj@gimp.org>

        * gtk/gtkobject.c:
        (gtk_object_check_cast):
        (gtk_object_check_class_cast):
        made the object/class cast checks much more descriptive, based on
        gtk-draco-980305-2.patch.gz and gtk-draco-980306-1.patch.gz but
        optimized for common code path.

        * gtk/gtkpreview.c: added a few extra checks for the visual
        (gtk-draco-980305-0.patch.gz).

        * gdk/gdk.c (gdk_signal): abort() on a signal if G_ENABLE_DEBUG
          is defined, so we dump core (gtk-draco-980305-0.patch.gz).

26 years ago<raster@redhat.com>
rhlabs [Sat, 7 Mar 1998 18:38:18 +0000 (18:38 +0000)]
<raster@redhat.com>

<raster@redhat.com>

added:
Window
gdk_window_xid_at(Window base, gint bx, gint by, gint x, gint y)

for helpful DND support...

26 years agoFixed the vscrollbar flickering problem, by checking the area on expose
Owen Taylor [Sat, 7 Mar 1998 06:14:37 +0000 (06:14 +0000)]
Fixed the vscrollbar flickering problem, by checking the area on expose

Sat Mar  7 01:07:24 1998  Owen Taylor  <owt1@cornell.edu>

* gtk/gtkrange.c (gtk_range_expose): Fixed the vscrollbar
  flickering problem, by checking the area on expose events.
  (There was a hscrollbar flickering problem as well, it
   just wasn't very noticeable)

26 years agoDisallow pasting into non-editable widgets.
Owen Taylor [Sat, 7 Mar 1998 03:05:36 +0000 (03:05 +0000)]
Disallow pasting into non-editable widgets.

Fri Mar  6 21:30:05 1998  Owen Taylor  <owt1@cornell.edu>

* gtk/gtkeditable.c: Disallow pasting into non-editable
  widgets.

* gtk/gtktext.[ch]:

  -Added scrolling when dragging the selection
   paste the top/bottom.

  -Fix some of the problems with displaying the selection
   state before mouse release.

  -Disallow pasting into non-editable widgets

  -Fixed segfault when changing window size

  -Update the cursor correctly when switching between
   editable and non-editable

* testgtk.c: Added a toggle button for editability for
  the text widget.

26 years agoOops,
Shawn Amundson [Fri, 6 Mar 1998 23:19:26 +0000 (23:19 +0000)]
Oops,

I said:
          gtk/gtkwindow.h: check for GDK_ISO_Left_Tab
Should be:
          gtk/gtkwindow.c: check for GDK_ISO_Left_Tab

-Shawn

26 years agoreturn NULL if device is not ready gtk/gtkwindow.h: check for
PST 1998 Shawn T. Amundson [Fri, 6 Mar 1998 23:17:12 +0000 (23:17 +0000)]
return NULL if device is not ready gtk/gtkwindow.h: check for

Fri Mar  6 14:47:33 PST 1998 Shawn T. Amundson <amundson@gimp.org>

        * Applied gtk-matsu-980205-0 (oops, should be 980305)
          gdk/gdkinputcommon.h: return NULL if device is not ready
          gtk/gtkwindow.h: check for GDK_ISO_Left_Tab

26 years agoFix selection bugs (selection was not being modified).
rhlabs [Fri, 6 Mar 1998 18:19:06 +0000 (18:19 +0000)]
Fix selection bugs (selection was not being modified).

-Marc

26 years agoThis commit moves dnd variables around a bit, and has a try at using hints for the...
Elliot Lee [Fri, 6 Mar 1998 05:14:09 +0000 (05:14 +0000)]
This commit moves dnd variables around a bit, and has a try at using hints for the shape dragging (this is for quartic)

26 years agoAdded gtk_file_selection_show_fileop_buttons(GtkFileSelection *fs), and
Ian Main [Fri, 6 Mar 1998 05:03:15 +0000 (05:03 +0000)]
Added gtk_file_selection_show_fileop_buttons(GtkFileSelection *fs), and

Thu Mar  5 20:41:27 1998  Ian Main  <imain@gnu.org>

* gtk/gtkfilesel.c: Added
  gtk_file_selection_show_fileop_buttons(GtkFileSelection *fs), and
  gtk_file_selection_hide_fileop_buttons(GtkFileSelection *fs).
  Changed pulldown to only contain current directory name instead of
  the full path.  Removed Help button (it can now be packed into the
  button_area if desired.

* gtk/gtkfilesel.h: Added GtkWidget *button_area (the fileop
  buttons at the top are packed into this hbox), and GtkWidget
  action_area (hbox below clists) to GtkFileSelection structure.

* gtk/testgtk.c: Changed the filesel example to show off the hiding/
  showing of fileop buttons, and the packing area.

26 years agominor todo updates that i'll hopefully get around at the weekend ;)
Tim Janik [Fri, 6 Mar 1998 01:56:02 +0000 (01:56 +0000)]
minor todo updates that i'll hopefully get around at the weekend ;)
-timj

26 years ago[Ummm, maybe we should do the same change to the selection_owner variable?]
Federico Mena Quintero [Fri, 6 Mar 1998 00:39:11 +0000 (00:39 +0000)]
[Ummm, maybe we should do the same change to the selection_owner variable?]

1998-03-05  Federico Mena Quintero  <federico@nuclecu.unam.mx>

* gdk/gdkprivate.h: Changed the name of default_filters to
gdk_default_filters to avoid namespace pollution.  Yes, it just
happened to me.
* gdk/gdk.c (gdk_event_translate):
* gdk/gdkglobals.c:
* gdk/gdkwindow.c (gdk_window_add_filter gdk_window_remove_filter): Likewise.

26 years ago(select row) Emit UNselect of rows that aren't selected.
rhlabs [Thu, 5 Mar 1998 17:33:34 +0000 (17:33 +0000)]
(select row) Emit UNselect of rows that aren't selected.

-Marc

26 years agoSingnals -> GTK_RUN_FIRST; api select/unselect function now always do what they say...
Jay Painter [Thu, 5 Mar 1998 09:34:36 +0000 (09:34 +0000)]
Singnals -> GTK_RUN_FIRST; api select/unselect function now always do what they say. -Jay

26 years agoOld stuff that didn't get commited. (owt)
Owen Taylor [Thu, 5 Mar 1998 06:46:41 +0000 (06:46 +0000)]
Old stuff that didn't get commited. (owt)

* gtk/gtkinputdialog.h (struct _GtkInputDialogClass):
  removed 'gpointer data' arguments from default handler
  structures.

* gtk/gtktreeitem.[ch]: Keep track of separate +/- pixmaps
  for each colormap, removed the idle hack.

* testglib.c: Remove trailing ; after functions

 ----------------------------------------------------------------------

26 years agoUnset allocation on unparent, to force reallocation if we get adding back
Owen Taylor [Thu, 5 Mar 1998 06:32:42 +0000 (06:32 +0000)]
Unset allocation on unparent, to force reallocation if we get adding back

Thu Mar  5 01:22:06 1998  Owen Taylor  <owt1@cornell.edu>

* gtk/gtkwidget.c (gtk_widget_unparent): Unset allocation
  on unparent, to force reallocation if we get adding back
  to a new parent which is already size-allocated.

* gtk/gtktreeitem.c: Keep track of separate +/- pixmaps
  for each colormap, removed the idle hack.

* gdk/gdk.c: Don't warn when unable to open XIM method,
  since X11R5 apparently has no default method.

* gtk/gtkwidget.c (gtk_widget_set_style_internal): Don't
  call size_request on initial emission - since the
  widget size isn't set yet, it can't change.

* gtk/Makefile.am: New rules 'test' and 'test-debug' to run
  testgtk with the correct working directory.

* gtk/gtkentry.c (gtk_move_forward_word):
  Check for position at end of line.

* gtk/gtkinputdialog.h (struct _GtkInputDialogClass):
  removed 'gpointer data' arguments from default handler
  structures.

26 years agoDrags can only be started with the left button.
Miguel de Icaza [Thu, 5 Mar 1998 02:01:47 +0000 (02:01 +0000)]
Drags can only be started with the left button.

Wed Mar  4 20:06:47 1998  Miguel de Icaza  <miguel@nuclecu.unam.mx>

* gdk/gdk.c (gdk_event_translate): Drags can only be started with
the left button.

26 years agowidget hierarchy update from Tim Janik
GMT 1998 Tony Gale [Wed, 4 Mar 1998 16:06:00 +0000 (16:06 +0000)]
widget hierarchy update from Tim Janik

Wed Mar  4 16:02:44 GMT 1998 Tony Gale  <gale@gimp.org>

        * docs/gtkfaq.sgml: widget hierarchy update from Tim Janik

26 years agoInitialize gdk_error_code to zero before calling the X routine.
Miguel de Icaza [Tue, 3 Mar 1998 01:54:44 +0000 (01:54 +0000)]
Initialize gdk_error_code to zero before calling the X routine.

Mon Mar  2 19:57:27 1998  Miguel de Icaza  <miguel@nuclecu.unam.mx>

* gdk/gdkproperty.c (gdk_atom_name): Initialize gdk_error_code to
zero before calling the X routine.

26 years agoreflect the last commit in the changelog.
Tim Janik [Tue, 3 Mar 1998 00:34:43 +0000 (00:34 +0000)]
reflect the last commit in the changelog.
-timj

26 years agorealization fixes by lars.
Tim Janik [Tue, 3 Mar 1998 00:20:49 +0000 (00:20 +0000)]
realization fixes by lars.
-timj

26 years agofixed ifndef..define typo
Shawn Amundson [Mon, 2 Mar 1998 23:42:25 +0000 (23:42 +0000)]
fixed ifndef..define typo

-Shawn

26 years ago// comment. -owt
Owen Taylor [Mon, 2 Mar 1998 23:21:55 +0000 (23:21 +0000)]
// comment. -owt

26 years agoMiscellaneous minor fixes to remove ANSI C incompatibilities
Owen Taylor [Mon, 2 Mar 1998 23:16:39 +0000 (23:16 +0000)]
Miscellaneous minor fixes to remove ANSI C incompatibilities

Mon Mar  2 17:48:38 1998  Owen Taylor  <owt1@cornell.edu>

Miscellaneous minor fixes to remove ANSI C incompatibilities

* gdk/gdkregion.c gtk/gtkclist.c: fix // comments

* gdk/gdkdnd.c gdk/gdkinputcommon.h: change types of
some arguments to ANSI functions

* gtk/gtkcombo.c gtk/gtktree.c: fix casts of function pointers
  to void *

* gtk/gtkmain.c: An actual bug! (in deprecated gtk_input_add_interp)

* gtk/gtknotebook.h: Bitfields must be gint or guint. (and should
  be guint)

* gtk/gtkstatusbar.c: trailing ';'

* gtk/testgtk.c: GList where there should have been GSList

* glib.h gutils.c : changed g_strcasecmp
  to take gchar* not guchar*

* testglib.c: Remove trailing ; after functions

26 years agoChanged 'entry != NULL' to 'editable != NULL' in three spots.
Owen Taylor [Mon, 2 Mar 1998 17:27:17 +0000 (17:27 +0000)]
Changed 'entry != NULL' to 'editable != NULL' in three spots.

Mon Mar  2 12:26:59 1998  Owen Taylor  <owt1@cornell.edu>

* gtk/gtkentry.c: Changed 'entry != NULL' to 'editable != NULL'
  in three spots.

26 years agoReleased GTK 0.99.4.
PST 1998 Shawn T. amundson [Mon, 2 Mar 1998 02:31:43 +0000 (02:31 +0000)]
Released GTK 0.99.4.

Sun Mar  1 18:29:58 PST 1998 Shawn T. amundson <amundson@gimp.org>

        * Released GTK 0.99.4.

26 years agooh, boy, world can be so crude!
Tim Janik [Mon, 2 Mar 1998 02:00:30 +0000 (02:00 +0000)]
oh, boy, world can be so crude!
i'm ading the pixamp after the realize handler to the tree item now,
via an *idle* handler.
this gotta be worked out correctly.
-timj

26 years agocast fix
Tim Janik [Mon, 2 Mar 1998 01:22:36 +0000 (01:22 +0000)]
cast fix

26 years agosmall fixups
Tim Janik [Mon, 2 Mar 1998 00:55:55 +0000 (00:55 +0000)]
small fixups

26 years agosmall fix to notebook portion
PST 1998 Shawn T. Amundson [Mon, 2 Mar 1998 00:48:39 +0000 (00:48 +0000)]
small fix to notebook portion

Sun Mar  1 16:47:29 PST 1998 Shawn T. Amundson <amundson@gimp.org>

        * gtk/testgtk.c: small fix to notebook portion

26 years agoRequired changes for version change to 0.99.4
PST 1998 Shawn T. Amundson [Mon, 2 Mar 1998 00:32:52 +0000 (00:32 +0000)]
Required changes for version change to 0.99.4

Sun Mar  1 15:18:38 PST 1998 Shawn T. Amundson <amundson@gimp.org>

        * Required changes for version change to 0.99.4

        * gtk/gtktree.[ch]: patch from J. Bolliet to correct some bugs
        * gtk/testgtk.c: added test here from J. Bolliet, removed testtree

        * gtk/clist: gtk-abilleira-981602-0, allows gtk_clist_set_pixmap
          and gtk_clist_set_pixtext to not require a mask

        * gdk/gdkdraw.c,gdk.h: gtk-trow-980217-0
          adds gdk_draw_lines and fixes some things about
          gdk_draw_polygon

26 years agoAdded g_string_insert[_c]() and g_string_erase().
Owen Taylor [Mon, 2 Mar 1998 00:07:40 +0000 (00:07 +0000)]
Added g_string_insert[_c]() and g_string_erase().

Sun Mar  1 19:04:40 1998  Owen Taylor  <owt1@cornell.edu>

* glib.h gstring.c: Added g_string_insert[_c]()
  and g_string_erase().

  From: Stefan Wille  <1wille@vsys1.informatik.uni-hamburg.de>

26 years agoforgot to remove a printf
Tim Janik [Sun, 1 Mar 1998 23:58:44 +0000 (23:58 +0000)]
forgot to remove a printf
-timj

26 years agovariable declaration have to have the same type as their
Tim Janik [Sun, 1 Mar 1998 23:51:59 +0000 (23:51 +0000)]
variable declaration have to have the same type as their
export counterparts. sopwith are you reading compiler warnings?
-timj

26 years agoremoved duplicate stuff out of gtkwidget.[ch].
Tim Janik [Sun, 1 Mar 1998 23:47:29 +0000 (23:47 +0000)]
removed duplicate stuff out of gtkwidget.[ch].
sopwith, please update your tree before commiting.
-timj

26 years agoMake sure either the window or the depth is given when creating a pixmap.
Owen Taylor [Sun, 1 Mar 1998 23:38:01 +0000 (23:38 +0000)]
Make sure either the window or the depth is given when creating a pixmap.

Sun Mar  1 17:40:58 1998  Owen Taylor  <owt1@cornell.edu>

* gdk/gdkpixmap.c: Make sure either the window or
the depth is given when creating a pixmap.

26 years agocomplete api change to honour message contexts. unfortunaltely this also
Tim Janik [Sun, 1 Mar 1998 23:29:40 +0000 (23:29 +0000)]
complete api change to honour message contexts. unfortunaltely this also

Sun Mar  1 22:59:09 1998  Tim Janik  <timj@gimp.org>

        * gtk/gtkstatusbar.h:
        * gtk/gtkstatusbar.c: complete api change to honour message contexts.
        unfortunaltely this also involved argument changes on the signal
        emissions which will not be caught by the compiler. your callbacks
        should look like:
        void  message_text_popped (GtkStatusbar   *statusbar,
                                   guint           context_id,
                                   const gchar    *text,
                                   gpointer        func_data);

        * gtk/gtkwidget.c (gtk_widget_set_rc_style): eliminated bug about
        initial signal emission.
        (gtk_widget_set_parent): don't ensure style, just call
        gtk_widget_set_style_recurse.
        (gtk_widget_set_style_recurse): only change a widget's rc styles if
        if there has already been a lookup.

        * gtk/testgtk.c: adaptions for statusbar widget.
        substituted notebook pixmaps with pixmaps from fvwm, since
        we don't know where the originals came from.

        * gtk/gtkobject.c (gtk_object_data_destroy): call the destroy
        notifier with the objects data, not its internal structure.

        * gtk/gtkspinbutton.c (gtk_spin_button_button_press): small
        fix from lars.

26 years agoAdd drag_end_event for future expansion, plus allow passing in NULL to the gdk filter...
Elliot Lee [Sun, 1 Mar 1998 22:37:30 +0000 (22:37 +0000)]
Add drag_end_event for future expansion, plus allow passing in NULL to the gdk filter stuff to get events without a window in our app

26 years agoI forgot to *commit* these before. Note to self: commit after applying
CST 1998 Shawn T. Amundson [Sun, 1 Mar 1998 20:24:39 +0000 (20:24 +0000)]
I forgot to *commit* these before. Note to self: commit after applying

I forgot to *commit* these before.  Note to self: commit after applying
patches.

-Shawn

Sun Mar  1 15:08:13 CST 1998 Shawn T. Amundson <amundson@gimp.org>

        * docs/*.texi changes from Greg Mclean.

26 years ago> - parent_class = gtk_type_class (gtk_widget_get_type ());
Tim Janik [Sun, 1 Mar 1998 17:50:38 +0000 (17:50 +0000)]
> -   parent_class = gtk_type_class (gtk_widget_get_type ());
> +   parent_class = gtk_type_class (gtk_editable_get_type ());

26 years agohm, cvs is just too unsensible ;)
Tim Janik [Sun, 1 Mar 1998 17:45:33 +0000 (17:45 +0000)]
hm, cvs is just too unsensible ;)
-timj

26 years agohm if we save the default style, we should also provide a function to
Tim Janik [Sun, 1 Mar 1998 17:44:24 +0000 (17:44 +0000)]
hm if we save the default style, we should also provide a function to

Sun Mar  1 18:41:07 1998  Tim Janik  <timj@gimp.org>

        * gtk/gtkwidget.c (gtk_widget_restore_default_style): hm if we save the
        default style, we should also provide a function to restore it ;).

        * gtk/main.[hc]: small fixups to idle handlers, added support for quit
        handlers.

26 years ago-timj
Tim Janik [Sun, 1 Mar 1998 17:11:06 +0000 (17:11 +0000)]
-timj

26 years agogtk/gtkentry.c gtk/gtktext.c gtkeditable.[ch]
Owen Taylor [Sun, 1 Mar 1998 10:19:22 +0000 (10:19 +0000)]
gtk/gtkentry.c gtk/gtktext.c gtkeditable.[ch]

Sun Mar  1 05:18:11 1998  Owen Taylor  <owt1@cornell.edu>

* gtk/gtkentry.c gtk/gtktext.c gtkeditable.[ch]

Changed interface to cut/copy/paste so it makes sense
when triggered by say, menu items.

26 years agogtk/gtkentry.[ch] gtk/gtktext.[ch] gtkeditable.[ch]
Owen Taylor [Sun, 1 Mar 1998 08:47:36 +0000 (08:47 +0000)]
gtk/gtkentry.[ch] gtk/gtktext.[ch] gtkeditable.[ch]

Sun Mar  1 03:20:39 1998  Owen Taylor  <owt1@cornell.edu>

* gtk/gtkentry.[ch] gtk/gtktext.[ch] gtkeditable.[ch]

Turned off debugging in gtktext.c

Bug fixes for cutting, pasting, deleting, etc.

Some of the bugs that were there before have definitely
been fixed.

* gtk/testgtk.c gtk/testgtkrc: Removed my ugly orange backgrounds,
to make things look nicer.

26 years agogtk/gtkentry.[ch] gtktext.c gtkeditable.[ch]
Owen Taylor [Sun, 1 Mar 1998 05:11:05 +0000 (05:11 +0000)]
gtk/gtkentry.[ch] gtktext.c gtkeditable.[ch]

Sat Feb 28 23:58:54 1998  Owen Taylor  <owt1@cornell.edu>

* gtk/gtkentry.[ch] gtktext.c gtkeditable.[ch]

Created a new base widget type Editable for the entry and
text widgets, which encapsulates most of the selection and
clipboard handling stuff, plus some common signals.

Changed the Entry widget extensively to support this,
but the interface and appearance should be the same.

Changed the Text widget moderately to support this.

It now supports:

- Selection style cut and paste
- Clipboard style cut and paste
- Emacs style key bindings (~same as Entry)
- Word motion
- "changed" signal

There are definitely still some bugs in the new stuff.

* gtkfilesel.c gtkspinbutton.c testgtk.c: small changes
to fit the new interface more exactly.

26 years agoquit handlers and idle_remove_by_data fixups
Tim Janik [Sun, 1 Mar 1998 04:53:56 +0000 (04:53 +0000)]
quit handlers and idle_remove_by_data fixups
-timj

26 years agoremoved buglet on the initial style_set emission.
Tim Janik [Sun, 1 Mar 1998 01:53:57 +0000 (01:53 +0000)]
removed buglet on the initial style_set emission.

26 years agofew checks added -timj
Tim Janik [Sat, 28 Feb 1998 22:36:06 +0000 (22:36 +0000)]
few checks added -timj

few checks added
-timj

26 years agomore fixups -timj
Tim Janik [Sat, 28 Feb 1998 20:19:20 +0000 (20:19 +0000)]
more fixups -timj

more fixups
-timj

26 years agohandle box signals. fixups for 99.4 -timj
Tim Janik [Sat, 28 Feb 1998 19:09:20 +0000 (19:09 +0000)]
handle box signals. fixups for 99.4 -timj

handle box signals.
fixups for 99.4
-timj

26 years agooops, forgot that, be nice ;)
Tim Janik [Sat, 28 Feb 1998 17:12:41 +0000 (17:12 +0000)]
oops, forgot that, be nice ;)
-timj

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.