1. 19 Oct, 1998 2 commits
  2. 18 Oct, 1998 4 commits
    • Owen Taylor's avatar
      New test program for new DND. (Old DND tests in testgtk still need to be · d5129fbb
      Owen Taylor authored
      	* gtk/testdnd.c: New test program for new DND. (Old
      	DND tests in testgtk still need to be converted.)
      d5129fbb
    • Owen Taylor's avatar
      Missed two files. · 58d21d03
      Owen Taylor authored
      58d21d03
    • Owen Taylor's avatar
      Added a modular client-message-filter mechanism, that is used for the DND · f7bcb456
      Owen Taylor authored
      Sun Oct 18 18:16:39 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gdk/gdk.c gdkprivate.h: Added a modular client-message-filter
      	mechanism, that is used for the DND messages.
      
      	  Removed all the old DND code.
      
      	* gdk/gdkcolormap.c gdk/gdkcolormap.h: Add a function to
      	get the visual of a given colormap.
      
      	* gtk/gtkcolorsel.c: Conversion to new DND, drag
      	a color-swatch.
      
      	* gdk/gdk.h gdk/gdkdnd.c: The low-level
      	X oriented portions of drag and drop protocols.
      	Sending and receiving client messages, and navigating
      	window trees.
      
      	* gdk/gdkimage.c: added a gdk_flush() when destroying
      	SHM images to hopefully make it more likely that
              X will gracefully handle the segment being destroyed.
      
      	* gdk/gdkprivate.h gtk/gtkdebug.h: Add new
      	DND debugging flags.
      
      	* gtk/gtkeditable.[ch]: Updates for the selection handling
      	changes.
      
      	* gtk/gtkselection.[ch]: Added GtkTargetList, a
      	refcounted data structure for keeping track of lists
      	of GdkAtom + information. Removed selection_handler_add
      	in favor of a "drag_data_get" signal.
      
      	* gtk/gtkdnd.[ch] gtk/gtk.h: New files - highlevel (event loop
      	dependent) parts of the DND protocols, display of drag icons,
      	drag-under highlighting, and the "default handlers".
      
      	* gtk/gtkinvisible.[ch]: New widget - InputOnly offscreen
      	windows that are used for reliable pointer grabs and
      	selection handling in the DND code.
      
      	* gtk/testdnd.c: New test program for new DND. (Old
      	DND tests in testgtk still need to be converted.)
      
      	* gtk/testselection.c: Use the new selection API.
      
      	* docs/dnd_internals: Start at describing how
      	all the new code works inside.
      
      	* docs/Changes-1.2.txt: New file describing source-incompatible
      	changes in GTK+-1.2.
      
      Sat Oct 17 22:50:34 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gdk/gdkwindow.c (gdk_window_remove_filter): Free
      	the right list node.
      
      	* gdk/gdkwindow.c (gdk_window_init): Add gdk_root_parent
      	to the XID table so we can receive events on it.
      
      Wed Oct 14 12:57:40 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdk.c gdk/gdk.h (gdk_event_get_time): New function
      	to get the timestamp from a generic event.
      
      Fri Oct  9 13:16:04 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkwidget.c (gtk_widget_add_events): Added function
      	that safely adds additional events to a widget's event
      	mask, even if the widget has previously been realized.
      	(We can do this, but not remove events from the event
      	 mask).
      
      Fri Oct  2 17:35:35 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkproperty.c (gdk_property_get): Allow type == 0,
      	for AnyPropertyType.
      
      Fri Oct  2 10:32:21 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkproperty.c (gdk_atom_intern): Add client-local
      	hashing.
      
      Thu Sep 24 20:33:54 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdk.c (gdk_event_send_clientmessage_toall): serial
      	isn't a timestamp.
      
      Thu Sep 17 14:23:03 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdk.c (gdk_event_translate): Removed printing
      	of unknown window lookup warnings. (Made it
      	a GDK_NOTE) - they happen in many circumstances.
      f7bcb456
    • Martin Baulig's avatar
      new function to toggle line wrapping like gtk_text_set_word_wrap () · 7dbb5755
      Martin Baulig authored
      1998-10-18  Martin Baulig  <martin@home-of-linux.org>
      
      	* gtk/gtktext.c (gtk_text_set_line_wrap): new function to toggle
      	line wrapping like gtk_text_set_word_wrap () toggles word wrapping.
      7dbb5755
  3. 16 Oct, 1998 1 commit
    • Lars Hamann's avatar
      change a few cell styles of inserted row (change_style): change style of · eff33964
      Lars Hamann authored
      Fri Oct 16 15:59:02 1998  Lars Hamann  <lars@gtk.org>
      
      	* gtk/testgtk.c (insert_row_clist) (create_clist): change a few cell
      	styles of inserted row
      	(change_style): change style of focus_row
      
      	* gtk/gtkclist.c (gtk_clist_get_row_style) (gtk_clist_set_row_style)
      	(gtk_clist_get_cell_style) (gtk_clist_set_cell_style): new functions
      	to set/get row/cell styles.
      	(gtk_clist_realize): attach row and cell style, allocate row colors.
      	(gtk_clist_unrealize): detach row and cell styles.
      	(get_cell_style): new function. get correct cell style.
      	(draw_cell_pixmap): new function.
      	(draw_row): draw cells with row or cell styles.
      	(row_new): set cell and row styles to NULL.
      	(row_delete): detach & unref cell and row styles.
      
      	* gtk/gtkctree.c (ctree_detach_styles) (ctree_attach_styles):
      	new functions to attach/detach styles and allocate colors.
      	(gtk_ctree_realize) (gtk_ctree_unrealize): attach/detach cell and row
      	styles of invisible nodes.
      	(draw_cell_pixmap): new function.
      	(get_cell_style):  new function. get correct cell style.
      	(gtk_ctree_draw_expander): new function. draw tree expander.
      	(gtk_ctree_draw_lines): new function.draw tree lines.
      	(draw_row): draw cells with row or cell styles.
      	(row_new): set cell and row styles to NULL.
      	(row_delete): detach & unref cell and row styles.
      	(gtk_ctree_node_get_row_style) (gtk_ctree_node_set_row_style)
      	(gtk_ctree_node_get_cell_style) (gtk_ctree_node_set_cell_style):
      	Analogons of GtkCList functions
      	(gtk_ctree_set_spacing): new function. set spacing between
      	tree expander and cell contents
      	(gtk_ctree_set_expander_style): new function. set expander style
      	of ctree.
      	(ctree_is_hot_spot): few changes due to draw_row modifications.
      eff33964
  4. 14 Oct, 1998 1 commit
  5. 12 Oct, 1998 2 commits
    • Tim Janik's avatar
      fixed a comment · b6b7941b
      Tim Janik authored
      b6b7941b
    • Tim Janik's avatar
      only unref those handlers that have not yet been disconnected (finally · 128cb63d
      Tim Janik authored
      Mon Oct 12 07:51:34 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtksignal.c (gtk_signal_handlers_destroy): only unref those
              handlers that have not yet been disconnected (finally managed to
              trigger the gtk_signal_handler_unref() paranoid warning).
      
      Sat Oct 10 03:37:50 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkwidget.c (gtk_widget_get_arg): fixed default value for x, y,
              width and height which is -1 and not -2.
      128cb63d
  6. 10 Oct, 1998 2 commits
  7. 08 Oct, 1998 2 commits
    • Owen Taylor's avatar
      Fixed warning message to print out parent class name correctly. · 922d7fd0
      Owen Taylor authored
      Thu Oct  8 15:53:59 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtktypeutils.c (gtk_type_class_init): Fixed warning
      	message to print out parent class name correctly.
      922d7fd0
    • Tim Janik's avatar
      removed functions gtk_object_set_data_destroy and · 3f7c96b3
      Tim Janik authored
      Thu Oct  8 07:07:10 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkobject.h:
              * gtk/gtkobject.c:
              removed functions gtk_object_set_data_destroy and
              gtk_object_set_data_destroy_by_id.
              added functions gtk_object_remove_no_notify and
              gtk_object_remove_no_notify_by_id which will remove a certain data
              portion without invokation of its destroy notifier, this should only
              be used in very controled circumstances.
      3f7c96b3
  8. 07 Oct, 1998 4 commits
    • Lars Hamann's avatar
      added size_allocate_title_buttons call (gtk_clist_realize): changed · 3a544757
      Lars Hamann authored
      Wed Oct  7 23:59:37 1998  Lars Hamann  <lars@gtk.org>
      
      	* gtk/gtkclist.c (gtk_clist_set_column_resizeable): added
      	size_allocate_title_buttons call
      	(gtk_clist_realize): changed initial column.window position
      3a544757
    • Lars Hamann's avatar
      removed xor_gc, use clists xor_gc instead removed · 28cd4d61
      Lars Hamann authored
      Wed Oct  7 20:27:28 1998  Lars Hamann  <lars@gtk.org>
      
              * gtk/gtkctree.h (struct _GtkCTree): removed xor_gc, use clists
              xor_gc instead
              * gtk/gtkctree.c (create_xor_gc): removed
              (gtk_ctree_button_press): set correct line_attributes for
              clist->xor_gc on drag start
              (gtk_ctree_button_release): reset clist->xor_gc
      28cd4d61
    • Tim Janik's avatar
      removed all occourances of #pragma } and #pragma { which were in place to · 3322a264
      Tim Janik authored
      Wed Oct  7 05:15:36 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtk*.h:
              * gdk/gdk.h: removed all occourances of #pragma } and #pragma {
              which were in place to fixup emacs' cc-mode indentation.
              putting (c-set-offset 'inextern-lang 0) into ~/.emacs is the
              proper way to achive this and doesn't produce problems for
              stupid pragma-related compiler bugs. ;)
      3322a264
    • Lars Hamann's avatar
      new signal GtkCList::resize_column. don't draw invisible columns · a2951281
      Lars Hamann authored
      Wed Oct  7 00:59:46 1998  Lars Hamann  <lars@gtk.org>
      
              * gtk/gtkclist.h: new signal GtkCList::resize_column.
              * gtk/gtkclist.c (draw_row): don't draw invisible columns
              (size_allocate_title_buttons) (size_allocate_columns):
              skip invisible columns
              (new_column_width): take min/max_width into account
              (gtk_clist_button_release) (gtk_clist_motion):
              changes due to changed new_column_width function
              (LIST_WIDTH): changed define to inline function.
              (real_resize_column): class function for resize_column signal
              (gtk_clist_motion): fixed autoscrolling for column resizes
              (gtk_clist_set_column_visibility): don't hide last visible column,
              changed visible arg to gboolean
              (gtk_clist_set_column_min_width)(gtk_clist_set_column_max_width):
              new functions : set min/max width of a column
              (gtk_clist_set_column_resizeable): new function : enable/disable
              column resize operations by mouse
      
              * gtk/gtkctree.c (draw_row): don't draw invisible columns
              (ctree_is_hot_spot): return FALSE if tree_column is invisible
              (draw_xor_line)  (draw_xor_rect): draw full rectangle/line if
              tree_column is invisible
              (gtk_ctree_find_all_by_row_data)
              (gtk_ctree_find_all_by_row_data_custom):  new function from
              Ronan Bourlier <ronan@radioss.com>. Returns a GList of all
              GtkCTreeNodes with row->data == data.
      a2951281
  9. 06 Oct, 1998 1 commit
  10. 05 Oct, 1998 3 commits
  11. 04 Oct, 1998 3 commits
    • CDT 1998 Shawn T. Amundson's avatar
      gtk/gtkcalendar.c: Some significant changes, including: - No longer draw · 16786ffb
      CDT 1998 Shawn T. Amundson authored
      Sun Oct  4 17:55:52 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
      
              * gtk/gtkcalendar.h:
                gtk/gtkcalendar.c: Some significant changes, including:
                - No longer draw focus around entire widget, only around
                  the day which has focus
                - Draw relief around entire widget like originally planned
                - Show header and day names by default
                - Move data private to the widget out of GtkCalendar struct
                  and only point to it with a gpointer
                - Remove some old unused variables from GtkCalendar struct
      16786ffb
    • BST 1998  Tony Gale's avatar
      update I've had sat around: - Grammar patch from James R. Van Zandt · 89a9da8a
      BST 1998 Tony Gale authored
      Sun Oct  4 17:45:43 BST 1998  Tony Gale  <gale@gtk.org>
      
              * docs/gtk_tut.sgml: update I've had sat around:
                - Grammar patch from James R. Van Zandt <jrv@vanzandt.mv.com>
                - Range Widget update from David Huggins-Daines <bn711@freenet.carleton.ca>
                - New Toolbar section from Jacek Wojdel <J.C.Wojdel@cs.tudelft.nl>
      89a9da8a
    • Martin Baulig's avatar
      Added `visible'. · a9c05acd
      Martin Baulig authored
      1998-10-01  Martin Baulig  <martin@home-of-linux.org>
      
      	* gtk/gtkclist.h (GtkCListColumn): Added `visible'.
      
      	* gtk/gtkclist.c (gtk_clist_set_column_visibility): New function.
      	Makes it possible to individually show and hide columns.
      	(size_allocate_columns): Adapted to keep track of hidden columns.
      	(size_allocate_title_buttons): Likewise.
      a9c05acd
  12. 03 Oct, 1998 1 commit
    • Tim Janik's avatar
      for unknown foreign fundamental types, collect an argument of the type · c62ab96b
      Tim Janik authored
      Sat Oct  3 17:54:48 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkargcollector.c (GTK_ARG_COLLECT_VALUE): for unknown foreign
              fundamental types, collect an argument of the type returned from
              gtk_type_get_varargs_type(). removed the first macro argument which
              was just the same as the fundamental type of the *arg passed to
              the macro.
              * gtk/gtkarg.c (gtk_args_collect):
              * gtk/gtksignal.c (gtk_signal_collect_params): changed callers.
      
              * gtk/gtktypeutils.h:
              * gtk/gtktypeutils.c: new functions gtk_type_set_varargs_type() and
              gtk_type_get_varargs_type() to set and query the varargs collect
              type used for a fundamental type, registered outside of Gtk.
      
              * gtk/gtkmisc.c (gtk_misc_class_init): changed object arguments
              GtkMisc::xalign and GtkMisc::yalign from GTK_TYPE_DOUBLE to
              GTK_TYPE_FLOAT.
      
              * gtk/gtkframe.c (gtk_frame_class_init): changed object arguments
              GtkFrame::label_xalign and GtkFrame::label_yalign from GTK_TYPE_DOUBLE
              to GTK_TYPE_FLOAT.
      c62ab96b
  13. 02 Oct, 1998 2 commits
    • Lars Hamann's avatar
      fixes for assignment errors with GTK_CTREE_NODE_NEXT/PREV · 879683b6
      Lars Hamann authored
      Sat Oct  3 01:25:24 1998  Lars Hamann  <lars@gtk.org>
      
          * gtk/gtkctree.c (gtk_ctree_insert_gnode) (real_tree_collapse)
          (gtk_ctree_link) (gtk_ctree_unlink) (real_tree_expand):
          fixes for assignment errors with GTK_CTREE_NODE_NEXT/PREV
      
          (real_tree_expand) (real_tree_collapse):
          don't expand/collapse a leaf
      879683b6
    • Tim Janik's avatar
      make sure we don't segfault when looking up a non-existant value name · bbe7d97e
      Tim Janik authored
      Fri Oct  2 16:10:36 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtktypeutils.c (gtk_type_enum_find_value): make sure we don't
              segfault when looking up a non-existant value name (reported by
              Pablo <pcj+gtk@primenet.com>).
      bbe7d97e
  14. 01 Oct, 1998 1 commit
    • Tim Janik's avatar
      new function. (gtk_clist_insert): added g_return_val_if_fail() statements. · b89ed0c3
      Tim Janik authored
      Thu Oct  1 10:40:20 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkclist.h (gtk_clist_prepend):
              * gtk/gtkclist.c (gtk_clist_prepend): new function.
              (gtk_clist_insert): added g_return_val_if_fail()
              statements. accept a row parameter < 0 or > clist->rows to indicate
              append mode.
              (real_clear): first clean up all internal pointers and lists (e.g.
              clist->row_list or clist->rows), then delete the distinct rows. this
              is required because of destroy notifiers, we need to have all internal
              structures updated and be reentrant.
      
              * gtk/gtkcalendar.h:
              * gtk/gtkcalendar.c: removed the `gtk_calendar_' prefix from the
              GtkCalendarClass signal methods.
              GtkType and macro fixups, put `void' into () prototypes, avoid C++
              style comments, indentation fixes, fixed some g_return_if_fail()
              statements.
              (gtk_calendar_paint_header):
              (gtk_calendar_paint_day_names):
              (gtk_calendar_paint_week_numbers):
              (gtk_calendar_paint_main): made these static functions.
              (gtk_calendar_select_month):
              (gtk_calendar_select_day):
              (gtk_calendar_mark_day):
              (gtk_calendar_unmark_day):
              (gtk_calendar_get_date): signedness corrections, use guints
              rather than gints.
              (gtk_calendar_size_request): removed unused variables.
      b89ed0c3
  15. 30 Sep, 1998 1 commit
  16. 28 Sep, 1998 1 commit
  17. 27 Sep, 1998 1 commit
  18. 26 Sep, 1998 2 commits
    • Tim Janik's avatar
      adde g_return_if_fail() statements. · fbe8f918
      Tim Janik authored
      Sat Sep 26 06:15:34 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkclist.c (gtk_clist_sort):
              (gtk_clist_clear):
              (gtk_clist_unselect_all):
              (gtk_clist_select_all): adde g_return_if_fail() statements.
      fbe8f918
    • Tim Janik's avatar
      set binary age and interface age to 0. · d0b7b3f5
      Tim Janik authored
      Sat Sep 26 04:46:22 1998  Tim Janik  <timj@gtk.org>
      
              * configure.in: set binary age and interface age to 0.
      
              * gtk/gtkspinbutton.h:
              * gtk/gtkspinbutton.c: changed gtk_spin_button_construct to
              gtk_spin_button_configure. gtk_spin_button_construct is still defined
              as an alias for gtk_spin_button_configure for source compatibility,
              but actuall use is deprecated.
              typeness corrections, i.e. gint->gboolean and gint->guint.
              added object arguments: GtkSpinButton::value, GtkSpinButton::wrap,
              GtkSpinButton::shadow_type, GtkSpinButton::update_policy,
              GtkSpinButton::numeric, GtkSpinButton::snap_to_ticks,
              GtkSpinButton::adjustment, GtkSpinButton::digits and
              GtkSpinButton::climb_rate.
              GtkType and macro fixups.
      d0b7b3f5
  19. 25 Sep, 1998 1 commit
    • Tim Janik's avatar
      new function to get the *real* geometry position of a window, taken · c961dd18
      Tim Janik authored
      Sat Sep 25 23:33:55 1998  Tim Janik  <timj@gtk.org>
      
              * gdk/gdkwindow.c (gdk_window_get_root_origin): new function to get
              the *real* geometry position of a window, taken possible window
              manager offsets into account.
              this has been succesfully tested with fvwm, fvwm-2, bowman, olwm,
              olvwm, twm, ctwm, mlvwm, windowmaker and enlightenment.
              it does fail though for amiwm which adds windows to a pseudo root
              window, and for icewm by a small offset because it defines the
              geometry position whithin its border.
      
              * gtk/testgtk.c: added "saved position" test to figure how
              gdk_window_get_root_origin() interacts with window managers (repopup
              this window to figure ;).
      c961dd18
  20. 23 Sep, 1998 1 commit
    • Tim Janik's avatar
      update to Gtk+ version 1.1.3, binary age 1, interface age 1. · 416b69a2
      Tim Janik authored
      Wed Sep 23 06:09:19 1998  Tim Janik  <timj@gtk.org>
      
              * configure.in: update to Gtk+ version 1.1.3, binary age 1,
              interface age 1.
      
              * gtk/gtkobject.c
              (gtk_object_ref):
              (gtk_object_unref): check for ->ref_count to be greater than 0 (the
              existing code was buggy in letting ->ref_count==0 pass through and
              then failing the living_objs_ht assertion).
      
              * gtk/gtkclist.c (draw_row): fix chopping bug for right justified
              pixtext fields (Roman Pozlevich <roma@botik.ru>).
      416b69a2
  21. 22 Sep, 1998 1 commit
  22. 21 Sep, 1998 3 commits