1. 01 Sep, 1998 1 commit
  2. 31 Aug, 1998 1 commit
  3. 29 Aug, 1998 1 commit
    • Manish Singh's avatar
      quell some warnings with g_hash_table_new · f2322ebe
      Manish Singh authored
      * gdk/gdkcolor.c:
      (gdk_colormap_new) (gdk_colormap_get_system):
      quell some warnings with g_hash_table_new
      
      * gtk/gtkaccelgroup.c (gtk_accel_group_add): free the GtkSignalQuery when
      we're done with it
      
      * gtk/itemfactory.c:
      (gtk_item_factory_from_path):
      (gtk_item_factory_create_item): free some strings
      
      * gtk/gtklabel.c:
      (gtk_label_finalize): free label->pattern when done
      (gtk_label_parse_uline): null terminate pattern string, delete some duplicated
      code
      
      * gtk/testthreads.c: add #include <unistd.h> for sleep()
      
      -Yosh
      f2322ebe
  4. 25 Aug, 1998 2 commits
    • Owen Taylor's avatar
      Make sure the mark we pass to line start is the beginning of a real line, · 1dafcb2a
      Owen Taylor authored
      Tue Aug 25 16:52:47 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtktext.c (recompute_geometry): Make sure the
      	mark we pass to line start is the beginning of a
      	real line, not a wrapped one.
      1dafcb2a
    • 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 color...
      caf8ebc6
  5. 24 Aug, 1998 2 commits
    • 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
    • Tim Janik's avatar
      begin the parameter elipsis (...) after the first argument name. this · 02a871bc
      Tim Janik authored
      Mon Aug 24 02:36:53 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkarg.h:
              * gtk/gtkarg.c:
              * gtk/gtkwidget.h:
              * gtk/gtkwidget.c:
              * gtk/gtkobject.h:
              * gtk/gtkobject.c:
              * gtk/gtkcontainer.h:
              * gtk/gtkcontainer.c:
              (gtk_object_new):
              (gtk_object_set):
              (gtk_widget_new):
              (gtk_widget_set):
              (gtk_container_add_with_args):
              (gtk_container_child_set):
              begin the parameter elipsis (...) after the first argument name. this
              change is source compatible, since it was always required, even as NULL.
              (gtk_args_collect):
              (gtk_object_args_collect):
              (gtk_container_child_args_collect):
              changed prototypes to pass first_arg_name, also, pass va_list variable
              by value (portability concerns). callers changed.
      
              * gtk/gtkargcollector.c: implemented gtk_arg_collect_value() as
              a huge macro GTK_ARG_COLLECT_VALUE() <shrug>. this is needed because we
              can't pass va_list variables by reference for portability reasons.
      02a871bc
  6. 22 Aug, 1998 1 commit
  7. 21 Aug, 1998 3 commits
  8. 20 Aug, 1998 4 commits
  9. 18 Aug, 1998 5 commits
    • Tim Janik's avatar
      allow argument parsing in gtk without G_ENABLE_DEBUG being defined · 38db8d19
      Tim Janik authored
      Wed Aug 19 00:11:14 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkmain.c (gtk_init): allow argument parsing in gtk without
              G_ENABLE_DEBUG being defined (specifically --gtk-module= and
              --g-fatal-warnings), noticed by miguel.
      38db8d19
    • 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
    • Lars Hamann's avatar
      fix for sigsegv in case of show_tabs == NULL · 1575a19c
      Lars Hamann authored
      Tue Aug 18 17:22:22 1998  Lars Hamann  <lars@gtk.org>
      
      	* gtk/gtknotebook.c (gtk_notebook_switch_focus_tab):
      	* gtk/gtknotebook.c (gtk_notebook_update_labels): fix for sigsegv
      	in case of show_tabs == NULL
      1575a19c
    • 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(...
      7f2909bb
    • Raph Levien's avatar
      More speedups to the 565_d case. · 265a137e
      Raph Levien authored
      265a137e
  10. 17 Aug, 1998 8 commits
    • Lars Hamann's avatar
      new class methods: (sort_list) (insert_row) (remove_row) · 17d141c8
      Lars Hamann authored
      Tue Aug 18 00:29:13 1998  Lars Hamann  <lars@gtk.org>
      
              * gtk/gtkclist.h:
              (struct _GtkCListClass): new class methods:
              (sort_list) (insert_row) (remove_row) (set_cell_contents)
      
              * gtk/gtkclist.c :
              (cell_empty) (cell_set_text) (cell_set_pixmap) (cell_set_pixtext):
              removed and replaced by (set_cell_contents)
              (set_cell_contents): function for class method set_cell_contents
              (real_insert_row): function for class method insert_row
              (real_remoce_row): function for class method remove_row
              (real_sort_list): function for class method sort_list
              (default_compare): fix to avoid problems with cell types != CELL_TEXT
      
              * gtk/gtkctree.h :
              (gtk_ctree_export_to_gnode): new function to export a ctree as gnode
              (gtk_ctree_node_is_visible): new function to return visibility state
              of a node
      		(gtk_ctree_show_stub): new function to set visibility of root stub
      
              renamed functions :
              (gtk_ctree_insert) -> (gtk_ctree_insert_node)
              (gtk_ctree_remove) -> (gtk_ctree_remove_node)
              (gtk_ctree_find_glist_ptr) -> (gtk_ctree_find_node_ptr)
              (gtk_ctree_set_text) -> (gtk_ctree_node_set_text)
              (gtk_ctree_set_pixmap) -> (gtk_ctree_node_set_pixmap)
              (gtk_ctree_set_pixtext) -> (gtk_ctree_node_set_pixtext)
              (gtk_ctree_set_shift) -> (gtk_ctree_node_set_shift)
              (gtk_ctree_get_cell_type) -> (gtk_ctree_node_get_cell_type)
              (gtk_ctree_get_text) -> (gtk_ctree_node_get_text)
              (gtk_ctree_get_pixmap) -> (gtk_ctree_node_get_pixmap)
              (gtk_ctree_get_pixtext) -> (gtk_ctree_node_get_pixtext)
              (gtk_ctree_set_foreground) -> (gtk_ctree_node_set_foreground)
              (gtk_ctree_set_background) -> (gtk_ctree_node_set_background)
              (gtk_ctree_set_row_data) -> (gtk_ctree_node_set_row_data)
              (gtk_ctree_set_row_data_full) -> (gtk_ctree_node_set_row_data_full)
              (gtk_ctree_get_row_data) -> (gtk_ctree_node_get_row_data)
              (gtk_ctree_moveto) -> (gtk_ctree_node_moveto)
              (gtk_ctree_sort) -> (gtk_ctree_sort_node)
      		(gtk_ctree_is_visibe) -> (gtk_ctree_is_viewable)
      
              * gtk/gtkctree.c :
              (cell_empty) (cell_set_text) (cell_set_pixmap) (cell_set_pixtext):
              removed and replaced by (set_cell_contents)
              (set_cell_contents): function for class method set_cell_contents
              (real_insert_row): function for class method insert_row
              (real_remoce_row): function for class method remove_row
              (real_sort_list): function for class method sort_list
              (default_compare): removed. CTree now also compares two GtkCTreeRows
              instead of two GtkCTreeNodes.
              (gtk_ctree_unlink): call gtk_ctree_collapse if parent is empty after
              unlinking the node
              (real_tree_expand) (real_tree_collapse): fix for refcounting of
              node pixmaps
              (set_node_info): call gtk_ctree_node_set_pixtext instead of
              manipulating the row itself
      
              * gtk/testgtk.c: use renamed functions of GtkCTree.
              new sample to show gtk_ctree_export_to_gnode and gtk_ctree_insert_gnode
              at work.
      17d141c8
    • 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
    • Tim Janik's avatar
      NULL terminate the arg list to g_strconcat() (thanx raph). · d2716f8b
      Tim Janik authored
      Mon Aug 17 07:47:43 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkmain.c (gtk_init): NULL terminate the arg list to g_strconcat()
              (thanx raph).
      d2716f8b
    • Shawn Amundson's avatar
      release delayed... · 477f1403
      Shawn Amundson authored
      477f1403
    • CDT 1998 Shawn T. Amundson's avatar
      Released GTK+ 1.1.2 · 42cabcf5
      CDT 1998 Shawn T. Amundson authored
      Sun Aug 16 23:14:20 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
      
              * Released GTK+ 1.1.2
      
              * NEWS: updated for 1.1.2
              * gtk+.spec: version = 1.1.2
      42cabcf5
    • Tim Janik's avatar
      don't call module initializers multiple times. changed --gtk-with-module · fe63fe5d
      Tim Janik authored
      Mon Aug 17 05:10:29 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkmain.c (gtk_init): don't call module initializers multiple
              times. changed --gtk-with-module to --gtk-module at owen's request.
      fe63fe5d
    • Tim Janik's avatar
      feature a new commandline option --gtk-with-module=<module> that allows · 2b7f8016
      Tim Janik authored
      Mon Aug 17 03:47:55 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkmain.c (gtk_init): feature a new commandline option
              --gtk-with-module=<module> that allows additional loading and
              initialization of modules (e.g. GLE).
      2b7f8016
    • Tim Janik's avatar
      version bump to 1.1.1, binary age 0, interface age 0. pass "gmodule" to · 7b9b0ab0
      Tim Janik authored
      Mon Aug 17 01:40:00 1998  Tim Janik  <timj@gtk.org>
      
              * configure.in: version bump to 1.1.1, binary age 0, interface age 0.
              pass "gmodule" to AM_PATH_GLIB, with that we require libgmodule.so now.
      
              * gtk/gtkmain.c (gtk_init): since glib's g_return*_if_fail macros log
              with G_LOG_LEVEL_CRITICAL now, i added "--g-fatal-checks",
              "--gdk-fatal-checks" and "--gtk-fatal-checks". that makes up six
              different *-fatal-* arguments now. this needs to be revised and
              compressed to a reasonable amount of arguments.
      7b9b0ab0
  11. 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
  12. 15 Aug, 1998 1 commit
  13. 14 Aug, 1998 1 commit
  14. 13 Aug, 1998 2 commits
    • Owen Taylor's avatar
      Changed GtkSignalFunc back to () from (void). (again!) · 814bfe13
      Owen Taylor authored
      Thu Aug 13 16:47:44 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* Changed GtkSignalFunc back to () from (void). (again!)
      814bfe13
    • BST 1998  Tony Gale's avatar
      - Tidy up of the menufactory example from Andy Kahn <kahn@zk3.dec.com> - · e8e76925
      BST 1998 Tony Gale authored
      Thu Aug 13 09:11:11 BST 1998  Tony Gale  <gale@gtk.org>
      
              * docs/gtk_tut.sgml:
                - Tidy up of the menufactory example from
                  Andy Kahn <kahn@zk3.dec.com>
                - New section on Range Widgets from
                  David Huggins-Daines <bn711@freenet.carleton.ca>
                - Started a new section on 'Advanced Event and Signal
                  Handling' - used an email from Owen.
                - New appendix on Gdk Event Types
                - Added the tictactoe full example code to the
                  'Code Examples' appendix
      e8e76925
  15. 12 Aug, 1998 3 commits
    • Owen Taylor's avatar
      More ChangeLog fixups. · 7a235648
      Owen Taylor authored
      7a235648
    • Owen Taylor's avatar
      Removed leftover bits from ChangeLog · 0346147a
      Owen Taylor authored
      0346147a
    • 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...
      4af7480f
  16. 11 Aug, 1998 4 commits
    • Tim Janik's avatar
      relookup nodes after external functions have been called. also relookup · 5d270c2f
      Tim Janik authored
      Tue Aug 11 20:52:58 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtktypeutils.c (gtk_type_class_init): relookup nodes after
              external functions have been called. also relookup nodes after
              this function has been invoked.
      5d270c2f
    • Owen Taylor's avatar
      Removed has_cursor, set the cursor beginning of Text when creating the · ca7082a0
      Owen Taylor authored
      Tue Aug 11 15:04:52 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtktext.[ch]: Removed has_cursor, set the cursor
      	  beginning of Text when creating the Text widget.
      
      	* gtk/testgtk.c: Grab the focus on the text widget so
      	  as to test out the above.
      
      Tue Aug 11 14:55:00 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkeditable.c: Reverted part of timj's change of Jul 16.
      	  ::changed is a notification signal and should have no default
      	  handler. A complete redraw of the Text widget does _not_ need to
      	  be done on every text insertion.
      
      Tue Aug 11 13:07:29 1998  Owen Taylor  <otaylor@redhat.com>
      	(gtk-abilleira-072198-patch)
      
      	* gtk/gtkwindow.[ch]:
      	  Add gtk_window_set_modal() which sets a flag; when
      	  set the window does a gtk_grab_add() when the window
      	  is shown, and a gtk_grab_remove() when the window
      	  is hidden.
      
      	* gtk/gtkfilesel.[ch]: Test if it is running in modal form and in
      	  that case will run "Create Dir","Delete File" and "Rename File"
      	  dialogs as modal too.
      
      	* gtk/testgtk.c: Added a button with an example of creating modal
      	  dialog boxes. Including file selection and color selection standard
      	  dialogs.
      
      Tue Aug 11 00:44:47 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkhscrollbar.c gtk/gtkvscrollbar.c gtk/gtktoolbar.c:
      	  Removed CAN_FOCUS by default from scrollbars, button
      	  children of toolbar. (But not GDK_TOOLBAR_CHILD_WIDGET children)
      	  (Scrollbar definitely good change, toolbar bit more questionable)
      ca7082a0
    • Tim Janik's avatar
      #include fixes (reported by Asbjoern Pettersen). · b46f089b
      Tim Janik authored
      Tue Aug 11 17:49:33 1998  Tim Janik  <timj@gtk.org>
      
              * examples/packbox/packbox.c: #include fixes (reported by Asbjoern
              Pettersen).
      b46f089b
    • Owen Taylor's avatar
      Applied gtk-pedersen-980727-0; added all logical operations to · f6abe644
      Owen Taylor authored
      Tue Aug 11 00:35:56 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkgc.c gdk/gdktypes.h: Applied gtk-pedersen-980727-0;
      	  added all logical operations to gc->function.
      f6abe644