1. 25 Aug, 1998 1 commit
    • Owen Taylor's avatar
      Reference count the fonts used in the text widget. · caf8ebc6
      Owen Taylor authored
      Mon Aug 24 18:37:15 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtktext.c: Reference count the fonts used in
      	the text widget.
      
      	* gdk/gdk.h gdk/gdkcolor.c: Rename the color allocation
      	freeing functions to be more consistent, and more
      	convenient; leave the old names in for backwards compatibility.
      
      	* gdk/gdkcolor.c gdk/gdkprivate.h: Reference count the
      	allocations in pseudo-color colormaps to greatly reduce
      	calls to XAllocColor. Keep a per-colormap hashtable to
      	speed up finding if there is an already-allocated matching
      	color.
      
      	* gdk/gdkcolor.c: Don't just match read the system colormap
      	when the colormap is created, but synchronize our copy
      	with the system colormap periodically.
      
      	* gdk/gdk.c gdk/gdktypes.h gtk/gtkentry.c gtk/gtktext.c:
      	Change XIM constants names to match GDK conventions
      
      	* gtk/testinput.c: Allow the drawing area to get the focus.
      
      	* gtk/testgtk.c: Change around the Text test to demonstrates
      	multiple fonts, use more colors.
      
      	* gtk/gtkwidget.c: Improve gtk_widget_get_colormap()/visual()
      	so they work after a widget is unrealized.
      
      	* gtk/gtktext.[ch]: Remove the requirement that the text
      	widget be realized before adding text (!) Allocate colors
      	ourself, instead of requiring the caller allocate them.
      	Allow changing styles to work properly by keeping track
      	of the values for a certain property are default or
      	set explicitely.
      
      	* gtk/gtkmenu.h: Added some comments.
      
      	* gtk/gtkentry.c: Changes to match XIM constants.
      
      	* gtk/gdk.h gdk/gdkwindow.c: Add gdk_drawable_set_data(),
      	for adding keyed data to drawables. (Uses g_dataset
      	internally)
      
      	* gdk/gdkpixmap.c: Keep track of the colors we allocate,
      	when creating an XPM - store them as user data for the GdkPixmap,
      	so we don't leak colors when we create pixmaps from XPM's.
      
      	Allocate memory for color information in large blocks instead of
      	as many little pieces.
      caf8ebc6
  2. 24 Aug, 1998 1 commit
    • Manish Singh's avatar
      removed some unused variables · b93d6892
      Manish Singh authored
      * gdk/gdkrgb.c: removed some unused variables
      
      * gtk/gtkclist.c
      * gtk/gtkmain.c: #if 0'd out some unused code
      
      * gtk/gtkobject.c: check for NULL object hash table in gtk_object_debug
      
      -Yosh
      b93d6892
  3. 22 Aug, 1998 1 commit
  4. 20 Aug, 1998 2 commits
  5. 18 Aug, 1998 3 commits
    • Tim Janik's avatar
      use g_get_current_dir() instead of getcwd(). · 49dfa78e
      Tim Janik authored
      Tue Aug 18 17:54:40 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkrc.c (gtk_rc_parse_file): use g_get_current_dir() instead of
              getcwd().
      
              * gdk/gdkprivate.h:
              * gdk/gdkglobals.c:
              * gdk/gdkwindow.c:
              * gdk/gdk.c:
              * gtk/gtkwindow.c:
              * gtk/gtkitemfactory.c:
              dropped gdk_progname, use g_get_prgname()/g_set_prgname() instead.
      
              * gtk/gtkselection.c:
              * gtk/gtkpreview.c:
              * gtk/gtkobject.c:
              * gtk/gtkmain.c:
              * gtk/gtktypeutils.c: indentation fixes due to g_message() use.
      
              * gdk/gdkrgb.c: exchanged occourances of g_print with g_message.
      49dfa78e
    • Tim Janik's avatar
      restricted the --g*fatal-* arguments to --g-fatal-warnings again. this · 7f2909bb
      Tim Janik authored
      Tue Aug 18 03:54:43 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkmain.c (gtk_init): restricted the --g*fatal-* arguments
              to --g-fatal-warnings again. this option now causes log levels of
              WARNING and CRITICAL to abort().
      
              * gdk/gdk.c:
              * gdk/gdkdnd.c:
              * gdk/gdkcc.c:
              * gdk/gdkfont.c:
              * gdk/gdkwindow.c:
              * gdk/gdkvisual.c:
              * gtk/gtkwidget.c:
              * gtk/gtktypeutils.c:
              * gtk/gtktree.c:
              * gtk/gtkfontsel.c:
              * gtk/gtkmain.c:
              * gtk/gtkobject.c:
              * gtk/gtkpreview.c:
              * gtk/gtkselection.c:
              * gtk/gtktext.c:
              * gtk/gtktree.c:
              * gtk/gtktreeitem.c:
              did a global search&replace to substitute g_print() calls with
              g_message(). libraries shouldn't use printf(), g_print() or
              g_printerr() at all.
              a bunch of the replacements should probably be wrapped into the
              G{D|T}K_NOTE() macros, so they are special cased for debugging
              purposes in a sane way, avoiding all the nasty #ifdef DEBUG_MY_TEDDY
              things.
      
              * gdk/gdkrgb.c: left this out currently.
      
              * gdk/gdkdnd.c: added copyright notice.
      7f2909bb
    • Raph Levien's avatar
      It works better when I actually check the file in :) (I.e. this is the · fdc36ada
      Raph Levien authored
      speedup I was trying to check in a minute ago).
      fdc36ada
  6. 17 Aug, 1998 2 commits
    • Tim Janik's avatar
      removed gtk_input_add_interp. · 47215ba4
      Tim Janik authored
      Mon Aug 17 15:31:38 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkmain.c: removed gtk_input_add_interp.
      
              * gtk/gtkeditable.c (gtk_editable_set_position): fixed bogus "return"
              keyword.
              (gtk_editable_get_event_time): fix default: case.
      
              * gtk/gtkclist.c (gtk_clist_swap_rows): fixes for lvalue casts.
      
              * gdk/gdkpixmap.c: made a bunch of unexported functions static.
      
              * gdk/gdkcolor.c:
              * gdk/gdkvisual.c: include "gdkx.h", since it exports prototypes
              of our functions.
      
              * various minor compilation cleanups, such as bogus commas in
              enums and similar things.
      
      M
      47215ba4
    • Dietmar Maurer's avatar
      gdk.c: fixed bug in gdk_input_remove · 690a18f0
      Dietmar Maurer authored
      690a18f0
  7. 16 Aug, 1998 1 commit
    • Tim Janik's avatar
      fatal warning option is split up now, "--g-fatal-warnings" causes fatal · 31de6ff4
      Tim Janik authored
      Sun Aug 16 20:51:59 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkmain.c (gtk_init): fatal warning option is split up now,
              "--g-fatal-warnings" causes fatal warnings in GLib,
              "--gdk-fatal-warnings" causes fatal warnings in Gdk,
              "--gtk-fatal-warnings" causes fatal warnings in Gtk.
      
              * gtk/Makefile.am: define G_LOG_DOMAIN for gtk.
              * gdk/Makefile.am: define G_LOG_DOMAIN for gdk.
      
              * gtk/testgtk.c:
              * gdk/gxid.c:
              we need ugly #undef G_LOG_DOMAIN at the start of these files currently,
              since automake doesn't support per target _CFLAGS yet.
      
              * configure.in: require GLib 1.1.3.
      31de6ff4
  8. 14 Aug, 1998 1 commit
  9. 12 Aug, 1998 1 commit
    • Owen Taylor's avatar
      Added gdk_text/string_extents() - too calculate all the metrics at once of · 4af7480f
      Owen Taylor authored
      Tue Jul 21 12:42:01 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdk.h gdk/gdkfont.c: Added gdk_text/string_extents() -
      	  too calculate all the metrics at once of a string, including
      	  things which weren't calculated before.
      
      	* gtk/Makefile.am gtk/gtk.h gtk/gtktearoffmenu.[ch]: New
      	  MenuItem type, that when put as the first thing in a
      	  menu, makes the menu tearoff. Currently drawn as a
      	  dashed line.
      
      	* gtk/gtkmenuitem.h gtk/gtkcheckmenuitem.c: Added a flag
      	  "hide_on_activate" to the MenuItem class structure to allow
      	  check and radio buttons to be changed with <Space> without
      	  hiding the menu.
      
      	* gtk/gtkaccellabel.[ch]: Added new capabilities to set
      	  a underline_group and underline_mods for the label -
      	  accelerators added in the underline group matching
      	  underline_mods will be displayed as an underline character.
      
      	  This doesn't work - Save As needs to be underlined
      	  as Save _As.
      
      	* gtk/gtkitemfactory.c:
      	  - Create a AccelGroup for each MenuShell we create.
      	  - If an '&' appears before a  character 'c' in the path,
      	    then make 'c' an accelerator in the menu's accel group,
      	    and if the menuitem is menubar <alt>C an accelerator
      	    in the itemfactory's accel group.
      
      	* gtk/gtklabel.[ch]: Add support for a pattern arg -
                which is a string. If an '_' appears in this string,
      	  the corresponding position in the label is underlined.
      
                Add gtk_label_parse_uline() convenience function which
      	  takes a string with embedded underlines, sets the
      	  pattern and label, and returns the accelerator keyval.
      
      	* gtk/gtkmenu.[ch]: Make menus no longer a toplevel widget.
      	  Instead, they create a GtkWindow and add themselves
      	  to that. (When torn off, another new feature, they
      	  create another GtkWindow to hold the torn off menu)
      
      	  New function gtk_menu_set_tearoff_state()
      
      	* gtk/gtkenums.h gtk/gtkmenushell.[ch] gtk/gtkenums.h:
      	  Added action signals  for keyboard navigation of menus.
      
      	* gtk/gtkmenushell.c: Key press handler which activates
                bindings for navigation, and accelerators, for handling
      	  underline accelerators. Exported functions to select
      	  and activate menu items in a menushell.
      
      	* gtk/testgtk.c: Added a new "Item Factory" test which
      	  tests GtkItemFactory and the new keyboard navigation
      	  of menus.
      4af7480f
  10. 11 Aug, 1998 1 commit
  11. 02 Aug, 1998 2 commits
  12. 22 Jul, 1998 1 commit
    • Manish Singh's avatar
      actually builds and runs properly on big endian machines now, because we · 3ea4f70f
      Manish Singh authored
      * gdk/gdkrgb.c: actually builds and runs properly on big endian machines
      now, because we #include config.h. Also fixed up a compile error in the
      WORDS_BIGENDIAN case in gdk_rgb_convert_565_gray. I made the fix by looking
      at patterns in the other code; Raph can you verify this?
      
      * gdk/gdkthreads.c: #include <unistd.h> to quell compiler warnings
      
      -Yosh
      3ea4f70f
  13. 21 Jul, 1998 2 commits
  14. 17 Jul, 1998 1 commit
  15. 16 Jul, 1998 1 commit
  16. 15 Jul, 1998 2 commits
  17. 13 Jul, 1998 1 commit
  18. 10 Jul, 1998 1 commit
  19. 04 Jul, 1998 1 commit
  20. 30 Jun, 1998 1 commit
    • Tim Janik's avatar
      implemented default handler for key-release events, which checks for · bf44f089
      Tim Janik authored
      Tue Jun 30 09:24:40 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkwidget.c (gtk_widget_real_key_release_event): implemented
              default handler for key-release events, which checks for activation
              of GDK_RELEASE_MASK key bindings.
      
              * gdk/gdktypes.h (enum): added GDK_RELEASE_MASK to GdkModifierType.
      bf44f089
  21. 28 Jun, 1998 1 commit
  22. 27 Jun, 1998 1 commit
  23. 25 Jun, 1998 1 commit
  24. 24 Jun, 1998 1 commit
    • Tim Janik's avatar
      do not avoid to queue for a resize if the container is not visible, we · faa14347
      Tim Janik authored
      Wed Jun 24 16:38:02 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkbin.c (gtk_bin_remove): do not avoid to queue for a resize
              if the container is not visible, we might be a toplevel! this holds
              for all other base container implementations as well, that are
              candidates to derive toplevels from. in general the resizing code will
              care about visibility itself.
              * gtk/gtkmenushell.c (gtk_menu_shell_remove): likewise.
              * gtk/gtkbox.c (gtk_box_remove): likewise.
      
              * gtk/gtkwindow.c (gtk_window_move_resize): save ->use_uposition around
              gtk_window_set_hints(), since we haven't calculated the new position
              yet.
      
              * gdk/gdkwindow.c (gdk_window_get_pointer): take care that *x, *y and
              *mask are alway initialized in a sane way, regardless of the return
              value.
      faa14347
  25. 17 Jun, 1998 1 commit
    • Tim Janik's avatar
      new function gdk_window_at_pointer() to retrive the current GdkWindow the · 7d0331a6
      Tim Janik authored
      Wed Jun 17 03:47:40 1998  Tim Janik  <timj@gtk.org>
      
              * gdk/gdk.h:
              * gdk/gdkwindow.c: new function gdk_window_at_pointer() to retrive
              the current GdkWindow the pointer is on if there is any.
      
              * gtk/gtktable.c (gtk_table_init): preallocate a table with one row
              and one column, so we don't construction logic at all. changed a few
              (x < y - 1) to (x + 1 < y), to avoid failing evaluations due to
              unsigned int wraps.
      
              * gtk/gtkwidget.c (gtk_widget_set_parent): removed left over code
              portion, added an additional check for parent != widget.
      
              * more GtkType and macro fixups.
      7d0331a6
  26. 15 Jun, 1998 1 commit
    • Owen Taylor's avatar
      gdk/gdktypes.h gdk/gdkprivate.h gtk/gtk*.h gtk/Makefile.am gtk/makenums.pl · 48a9f44f
      Owen Taylor authored
      Mon Jun 15 16:29:45 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gdk/gdktypes.h gdk/gdkprivate.h gtk/gtk*.h
      	  gtk/Makefile.am gtk/makenums.pl
      
      	Removed out the G_ENUM/FLAGS mechanism in favor
      	of a perl script that parses the standard headers
      	(with occasional /*< nick=foo >*/ style overrides)
      	and extracts the enumerations.
      
      	  gtk/maketypes.awk: Small improvments to the
      	  translation of names. (Avoid splitting gc into
      	  g_c_.)
      
      Mon Jun 15 16:25:44 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/Makefile.am gtk/gtk.h gtk/gtkfontsel.[ch] gtk/testgtk.c:
      	Damon Chaplin's <DAChaplin@email.msn.com> Font selection widget,
              and a simple example for testgtk.
      
      Mon Jun 15 15:58:34 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtkentry.c:
      	- Restored gtk_entry_adjust_scroll to static
      	- Changed text positioning code so that we always
      	  display as large a portion of the text as possible.
      
      Mon Jun 15 15:42:12 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtktext.c (gtk_text_finalize): Free internal
      	structures of text widget. Also, unreference pixmaps
      	when unrealizing.
      
      Sat Jun 13 19:14:39 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gdk/gdkinputcommon.h (gdk_input_device_new): Change
      	3.3.1 bug workaround to number keys starting at 1.
      
      Sat Jun 13 11:56:57 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* docs/gtk_tut.sgml: Fixed urls for complete example
      	source for scribble+widget-writing examples.
      48a9f44f
  27. 13 Jun, 1998 2 commits
    • Owen Taylor's avatar
      Patch from Tom Bech <tomb@ii.uib.no>, to handle color specs of the form c · e17f31db
      Owen Taylor authored
      Sat Jun 13 11:48:26 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gdk/gdkpixmap.c (gdk_pixmap_extract_color):
      	Patch from Tom Bech <tomb@ii.uib.no>, to handle color
      	specs of the form c #abcdef [ more keys ] properly.
      e17f31db
    • Owen Taylor's avatar
      Removed code for drawing the child in two places at once. Unfortunately, · 92270f86
      Owen Taylor authored
      Fri Jun 12 21:20:42 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtkoptionmenu.c (gtk_option_menu_expose): Removed
      	code for drawing the child in two places at once. Unfortunately,
      	not only does it not work anymore (because reparenting has
      	been fixed), but it also triggers reparent/expose loops
      	in some cases.
      
      	* gtk/gtkoptionmenu.c (gtk_option_menu_remove_contents): Removed
      	an unecessary unrealize.
      92270f86
  28. 10 Jun, 1998 3 commits
    • Owen Taylor's avatar
      glib/* Moved to glib module · 7086e475
      Owen Taylor authored
      Wed Jun 10 19:36:35 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* glib/* Moved to glib module
      
      	* INSTALL Makefile.am acconfig.h autogen.sh configure.in
      	  gtk-config.in gtk.m4 gdk/Makefile.am gtk/Makefile.am
      
      	  configuration changes for the above:
      
      	  - Use AM_PATH_GLIB by default to find glib; also accept
      	    a --with-glib option for using an uninstalled glib.
      
      	  - Put --enable-debug information into config.h so
      	    that we rebuild when it changes. (was in glibconfig.h)
      7086e475
    • Owen Taylor's avatar
      Renamed g_const_pointer => gconstpointer. · 344572dc
      Owen Taylor authored
      344572dc
    • Tim Janik's avatar
      prevent gdk_init() from segfaulting when invoked with (NULL, NULL); (this · b70abe38
      Tim Janik authored
      Wed Jun 10 06:25:17 1998  Tim Janik  <timj@gtk.org>
      
              * gdk/gdk.c (gdk_init): prevent gdk_init() from segfaulting when
              invoked with (NULL, NULL); (this worked sometime ago).
      
              * gtk/gtktypeutils.h:
              * gtk/gtktypeutils.c: enum and flags type creation can now be done
              through gtk_type_register_enum() and gtk_type_register_flags(),
              which allow to specify the enum value arrays directly.
              the NULL terminated value arrays can be retrived through
              gtk_type_enum_get_values() and gtk_type_flags_get_values();
              (gtk_type_children_types): new function to query derived types.
      b70abe38
  29. 09 Jun, 1998 2 commits
    • Owen Taylor's avatar
      Removed g_object_pointer_hash, which was just g_direct_hash. · 2cabeeb1
      Owen Taylor authored
      Tue Jun  9 18:44:57 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtkobject.c: Removed g_object_pointer_hash, which
      	was just g_direct_hash.
      
      Mon May 25 19:54:20 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* configure.in: x_libs=, not $x_libs=. Enough said.
                (Case only hit for --disable-xshm)
      
      Mon May 25 12:08:14 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* configure.in (LDFLAGS): Add to $CFLAGS and $LDFLAGS
      	  when testing for X libraries, don't replace them. Because
      	  the user might have specified the path to the X libraries
      	  themself before running configure.
      
      	* examples/**.c: Changed all gpointer * to gpointer
      
      Sat May 23 21:54:05 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* configure.in (LDFLAGS): Bomb out with a moderately
      	  helpful message if detection of X libraries fails.
      
      Sat May 23 18:57:06 1998  Owen Taylor  <otaylor@gtk.org>
      
        [ Combination of:
           gtk-rrh-980412-0.patch (Raja R Harinath <harinath@cs.umn.edu>)
           gtk-jbuhler-980516-0 (Jeremy Buhler <jbuhler@cs.washington.edu>) ]
      
      	* gdk/gdk.h gdk/gdkcc.c gdk/gdkfont.c gtk/gtkmain.c
      	  gtk/gtksignal.c gtk/gtktext.c:
      
      	  Fixups for warnings from adding const to type of GHashFunc,
      	  GCompareFunc
      
      	* gtk/gtkcombo.c (gtk_combo_entry_key_press): Minor style/
      	  ansi-warnings fixups.
      
      Tue Jun  9 17:47:33 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* glib.h: Remove #error - HP/UX.
      
      Sat May 23 19:00:01 1998  Owen Taylor  <otaylor@gtk.org>
        [ Combination of:
           gtk-rrh-980412-0.patch (Raja R Harinath <harinath@cs.umn.edu>)
           gtk-jbuhler-980516-0 (Jeremy Buhler <jbuhler@cs.washington.edu>) ]
      
      	* glib.h ghash.c gstring.c gdataset.c gutils.c:
      	- Added new typedef g_const_pointer; expunged all incorrect
      	  uses of 'const gpointer'.
      	- Fixed up warnings that that created,
      	- Changed GHashFunc and GCompareFunc to take g_const_pointer
      	  arguments. (Necessary, but will cause warnings in existing
      	  code until fixed)
      	- Added other new const in harmless positions.
      2cabeeb1
    • Tim Janik's avatar
      new functions gtk_selection_data_copy and gtk_selection_data_free. · a21d063e
      Tim Janik authored
      Tue Jun  9 01:57:23 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkselection.h:
              * gtk/gtkselection.c: new functions gtk_selection_data_copy and
              gtk_selection_data_free.
      
              * gtk/gtkwidget.c (gtk_widget_class_init): fixed gtk_signal_new() call
              for "selection_received", which was completely bogus.
              * other fixups to gtk_signal_new() calls all over the place.
      
              * gtk/gtktypebuiltins.h: types as variables (formerly macros).
              * gtk/gtktypebuiltins_vars.c: type variable implementations.
              * gtk/gtktypebuiltins_ids.c: array entries for builtin type
              declarations.
              * gtk/gtktypebuiltins_evals.c: enum value arrays.
              * gtk/gtk-boxed.defs: gtk and gdk structure definitions, used to build
              gtk.defs.
              * gtk/gtk.defs: generated file with scheme syntax for type definitions
              of gtk and gdk structures and enums.
              * gtk/gtktypeutils.h:
              * gtk/gtktypeutils.c: reworked type ids, so they are variables not
              macros anymore (this fixes binary incompatibility with new enum
              definitions).
      
              * gtk/gtkwidget.c (gtk_widget_real_key_press_event): proccess possible
              key bindings for this widget.
              * gtk/gtkwindow.c (gtk_window_key_press_event): chain parent class'
              handler.
      
              * gtk/gtkobject.h:
              * gtk/gtkobject.c: removed gtk_object_class_new_user_signal_no_recurse()
              again. new functions gtk_object_class_user_signal_new () and
              gtk_object_class_user_signal_newv (), to feature the GtkSignalRunType
              flag on the signal creation.
      Mon Jun  8 20:52:21 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkcontainer.h: new signal GtkContainer::set_focus_child.
      a21d063e