1. 21 Jul, 1998 1 commit
    • Elliot Lee's avatar
      Use common marshalling routines instead of having widget-private ones. It · 7c30f2a1
      Elliot Lee authored
      
      
      Use common marshalling routines instead of having widget-private ones.
      It compiles & links.
      
      testgtk segfaults. I'm convinced that is Somebody Else's Problem
      (marshalling routine gets func_data=0x0 and blithely passes it on) but the
      fact that it happens now & not before makes me wrong :-)
      7c30f2a1
  2. 20 Jul, 1998 1 commit
    • Lars Hamann's avatar
      new functions, recursive process tree to specified depth · cebb7bfc
      Lars Hamann authored
      * gtk/gtkctree.c (gtk_ctree_post_recursive_to_depth)
        (gtk_ctree_pre_recursive_to_depth): new functions, recursive process
        tree to specified depth
        (gtk_ctree_expand_to_depth): expand tree to specified depth
        (gtk_ctree_collapse_to_depth): collapse all nodes with level >= depth
      cebb7bfc
  3. 19 Jul, 1998 3 commits
    • Lars Hamann's avatar
      fix for vertical scrolling in case of GTK_CLIST_ADD_MOD changed pixmap · bfa2ec27
      Lars Hamann authored
      * gtk/gtkclist.c (scroll_vertical): fix for vertical scrolling in case
        of GTK_CLIST_ADD_MOD
      * gtk/testgtk.c (add1000_clist): changed pixmap
      bfa2ec27
    • Tim Janik's avatar
      export gtk_binary_age and gtk_interface_age. · c1c8caa2
      Tim Janik authored
      Sat Jul 18 22:59:04 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkmain.h:
              * gtk/gtkmain.c: export gtk_binary_age and gtk_interface_age.
      
              * gtk/gtktypeutils.h:
              * gtk/gtkitemfactory.h: remove "void" from prototypes again.
      
      Sat Jul 18 00:54:01 1998  Lars Hamann  <lars@gtk.org>
      
              * gtk/gtknotebook.c (gtk_notebook_set_child_arg): added support for
              CHILD_ARG_MENU_LABEL, CHILD_ARG_TAB_LABEL
              (gtk_notebook_get_child_arg): added support for CHILD_ARG_MENU_LABEL,
              CHILD_ARG_POSITION
              (gtk_notebook_reorder_child): new funktion to change position of a
              notebook page
              (gtk_notebook_draw_arrow): draw left/right arrow with
              GTK_SHADOW_ETCHED_IN if focus_tab is first/last tab.
      
              * gtk/gtkstyle.c (gtk_default_draw_arrow):
              added GTK_SHADOW_ETCHED_IN/OUT
      c1c8caa2
    • Stefan Jeske's avatar
      Introduced generic GtkProgress widget. Derived GtkProgressBar from · b43c4557
      Stefan Jeske authored
      Sun Jul 19 12:19:16 1998  Stefan Jeske  <stefan@gtk.org>
      
      	* gtk/gtkprogress.c gtk/gtkprogress.h gtk/gtkprogressbar.c
      	  gtk/gtkprogressbar.h gtk/Makefile.am gtk/gtk.h gtk/testgtk.c:
      	Introduced generic GtkProgress widget. Derived GtkProgressBar from
      	GtkProgress. Made GtkProgressBar much more flexible (see testgtk).
      b43c4557
  4. 18 Jul, 1998 1 commit
  5. 17 Jul, 1998 6 commits
    • Lars Hamann's avatar
      Changelog fix · 15201b48
      Lars Hamann authored
      15201b48
    • Lars Hamann's avatar
      fix to avoid flicker at begin/end of list · c0ce3a61
      Lars Hamann authored
      * gtk/gtkclist.c (scroll_vertical): fix to avoid flicker at begin/end
        of list
      c0ce3a61
    • Owen Taylor's avatar
      If xid_ht hasn't been created yet, don't do the lookup. · 656eaa93
      Owen Taylor authored
      Thu Jul 16 20:11:36 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkxid.c (gdk_xid_table_lookup): If xid_ht
      	hasn't been created yet, don't do the lookup.
      656eaa93
    • Tim Janik's avatar
      sropped the approach of copying all signal specific data into a · 2bc6d454
      Tim Janik authored
      Fri Jul 17 05:30:47 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtksignal.c (gtk_handlers_run) (gtk_signal_real_emit):
              sropped the approach of copying all signal specific data into a
              GtkHandlerInfo structure. we rather keep the signal data on the stack
              in gtk_signal_real_emit and pass that over to gtk_handlers_run. this
              avoids multiple lookups of the signal pointer and works savely together
              with destroy notifiers of handlers.
      
              * gtk/gtkentry.c (gtk_entry_key_press): care for the posssibility that
              someone destroys the entry on the ::activate signal.
      2bc6d454
    • Tim Janik's avatar
      care for the posssibility that someone destroys the entry on the · ca7b223b
      Tim Janik authored
      Fri Jul 17 05:30:47 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkentry.c (gtk_entry_key_press): care for the posssibility that
              someone destroys the entry on the ::activate signal.
      ca7b223b
    • Tim Janik's avatar
      use misc->xpad for x calculation instead of ypad (typo). (gtk_arrow_set): · ca17982e
      Tim Janik authored
      Fri Jul 17 01:21:32 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkarrow.c (gtk_arrow_expose): use misc->xpad for x calculation
              instead of ypad (typo).
              (gtk_arrow_set): clear all of the arrow's allocation (left a 1 pixel
              border around the allocation).
              (gtk_arrow_init): the static requisition needs to be setup in this
              function rather than gtk_widget_new(), so arrow creation works without
              the gtk_arrow_new() constructing.
              (gtk_arrow_expose): return TRUE, since we actually handled the expose.
      
              * gtk/gtkwidget.c (gtk_widget_real_size_request): provide a default
              implementation for GtkWidget::size_request, so size requisition for
              simple statically sized widgets like GtkArrow works.
      ca17982e
  6. 16 Jul, 1998 6 commits
    • Manish Singh's avatar
      Fix slight screwup · 699dcbab
      Manish Singh authored
      -Yosh
      699dcbab
    • Manish Singh's avatar
      minor changes to gtk-config: --cflags doesn't prepend -I@libdir@/glib/include · 5886cc2c
      Manish Singh authored
      anymore, since glib-config handles it; --libs strips out redundant -L<path>'s
      properly (there was code in there to do it before, but it didn't work)
      
      -Yosh
      5886cc2c
    • Tim Janik's avatar
      signdness corrections all ove the place. implementation of object · 81517a6d
      Tim Janik authored
      Thu Jul 16 18:24:41 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtknotebook.h:
              * gtk/gtknotebook.c: signdness corrections all ove the place.
              implementation of object arguments: GtkNotebook::enable_popup,
              GtkNotebook::tab_pos, GtkNotebook::tab_border, GtkNotebook::show_tabs,
              GtkNotebook::show_border, GtkNotebook::scrollable and GtkNotebook::page.
              begun implementation of child args, we have GtkNotebook::tab_label, but
              GtkNotebook::menu_label and GtkNotebook::position still lack the
              implementation.
              (gtk_notebook_remove_page):
              (gtk_notebook_current_page): allow negative indices (-1) as alias for
              the last page.
      
              * gtk/gtkentry.h:
              * gtk/gtkentry.c: GtkType and macro fixups. implementation of object
              arguments GtkEntry::max_length and GtkEntry::visibility.
              (gtk_entry_adjust_scroll): queue a redraw.
      
              * gtk/gtkeditable.h:
              * gtk/gtkeditable.c: GtkType und macro fixups. implementation of
              object arguments GtkEditable::text_position and GtkEditable::editable.
              new (action) signal GtkEditable::set_editable.
              provide a default handler for GtkEditable::changed that queues a redraw.
      
              * gtk/gtktext.h:
              * gtk/gtktext.c: GtkType und macro fixups. override GtkEditable::
              set_editable.
      81517a6d
    • Elliot Lee's avatar
      Make gdk_window_foreign_new fail gracefully · 5e3acecc
      Elliot Lee authored
      5e3acecc
    • Lars Hamann's avatar
      fix for sigsegv in case of drag_target == NULL fix for · 8f733319
      Lars Hamann authored
      * gtk/gtkctree.c (gtk_ctree_button_release): fix for sigsegv in
        case of drag_target == NULL
      * gtk/gtkclist.c (gtk_clist_button_press): fix for GTK_2/3BUTTON_PRESS.
        Clist did not emit an select_row signal in case of GTK_2/3BUTTON_PRESS.
      * gtk/gtkfilesel.c (gtk_file_selection_file_button,
        gtk_dir_selection_file_button): fix due to changes in clist's
        select_row signal.
      8f733319
    • Tim Janik's avatar
      handle negative values similar to gtk_widget_set_uposition(). that is: · af24aef7
      Tim Janik authored
      Thu Jul 16 01:27:15 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkwidget.h:
              * gtk/gtkwidget.c (gtk_widget_set_usize): handle negative values
              similar to gtk_widget_set_uposition(). that is: -1=unspecified,
              -2=leave untouched. changed the width/height field of GtkWidgetAuxInfo
              to be gint16s rather than guint16s, since that's what the code expected
              (for a long time actually).
      
              * gtk/gtkviewport.c:
              added support for object arguments: GtkViewport::shadow_type,
              GtkViewport::vadjustment and GtkViewport::hadjustment.
              (gtk_viewport_add): chain gtk_bin_add.
      
              * gtk/gtkscrolledwindow.c:
              added support for object argument: GtkScrolledWindow::hscrollbar_policy,
              GtkScrolledWindow::vscrollbar_policy and GtkScrolledWindow::viewport.
      
              * gtk/gtkadjustment.h:
              * gtk/gtkadjustment.c:
              * gtk/gtkctree.h:
              * gtk/gtkclist.h:
              * gtk/gtkctree.c:
              * gtk/gtkclist.c:
              * gtk/gtkscrolledwindow.h:
              * gtk/gtkscrolledwindow.c:
              * gtk/gtkviewport.h:
              * gtk/gtkviewport.c:
              GtkType and macro fixups.
      af24aef7
  7. 15 Jul, 1998 4 commits
  8. 14 Jul, 1998 3 commits
    • Tim Janik's avatar
      don't destroy a buttons child if it isn't a label. · 7702d2f8
      Tim Janik authored
      Tue Jul 14 19:12:12 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkbutton.c (gtk_button_set_arg): don't destroy a buttons
              child if it isn't a label.
      7702d2f8
    • Tim Janik's avatar
      macro and GtkType fixups. · a91be935
      Tim Janik authored
      Tue Jul 14 11:41:38 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkdialog.h:
              * gtk/gtkseparator.h:
              * gtk/gtkhseparator.h:
              * gtk/gtkvseparator.h: macro and GtkType fixups.
      a91be935
    • Tim Janik's avatar
      display the current cursor name. · da355fee
      Tim Janik authored
      Tue Jul 14 06:25:46 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/testgtk.c (create_cursors): display the current cursor name.
      
              * gtk/gtktypeutils.h:
              * gtk/gtktypeutils.c (gtk_type_init_builtin_types): cleanups to
              the fundamental type definition. the GtkArg union now only covers
              the required storage types for argument values. adapted the GTK_VALUE_*
              macro set. handle GTK_TYPE_UCHAR. definiton of type set bounds macros.
      
              * gtk/gtkargcollector.c (gtk_arg_collect_value): clean ups of the
              code, fixed int/float collection. fixed a bug in the sanity checking
              code for GtkObjects.
      
              * gtk/gtkbindings.c (gtk_binding_entry_add_signal): fixups of the
              argument collection code.
      
              * gtk/gtksignal.c (gtk_signal_collect_params): use the type set bounds
              macros when distinguishing the return type.
      da355fee
  9. 13 Jul, 1998 1 commit
  10. 12 Jul, 1998 3 commits
    • Tim Janik's avatar
      fix float argument collection (always casted to doubles upon argument · 8792bbbd
      Tim Janik authored
      Sun Jul 12 16:40:06 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkargcollector.c (gtk_arg_collect_value): fix float argument
              collection (always casted to doubles upon argument passing).
      8792bbbd
    • Tim Janik's avatar
      call the base classes' object_init_func for derived objects with the · 34b7b5d7
      Tim Janik authored
      Sun Jul 12 05:59:26 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtktypeutils.c (gtk_type_new): call the base classes'
              object_init_func for derived objects with the object's ->klass field
              still pointing to the corresponding base class, otherwise overridden
              class functions could get called with partly-initialized objects.
              (change from Tero Pulkkinen <terop@modeemi.cs.tut.fi>).
      34b7b5d7
    • Tim Janik's avatar
      new functions which wraps gtk_arg_get_info(). · ab7cb501
      Tim Janik authored
      Sun Jul 12 02:47:35 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkobject.h:
              * gtk/gtkobject.c:
              (gtk_object_arg_get_info): new functions which wraps gtk_arg_get_info().
      
              * gtk/gtkcontainer.h:
              * gtk/gtkcontainer.c:
              (gtk_container_child_arg_get_info): new function which wraps
              gtk_arg_get_info().
      ab7cb501
  11. 10 Jul, 1998 6 commits
  12. 09 Jul, 1998 1 commit
    • Tim Janik's avatar
      deleted most of the argument handling code, since that is now implemented · 347efc33
      Tim Janik authored
      Fri Jul 10 00:02:04 1998  Tim Janik  <timj@gtk.org>
      
      	* gtk/gtkcontainer.h:
      	* gtk/gtkcontainer.c: deleted most of the argument handling code, since
      	that is now implemented in gtkarg.c. similar to gtk_object_args_collect,
      	we now export a new function gtk_container_child_args_collect().
      	for consistency with the object arguments, a few functions got renamed:
      	gtk_container_child_arg_get -> gtk_container_child_get,
      	gtk_container_child_arg_set -> gtk_container_child_set,
      	gtk_container_child_arg_getv -> gtk_container_child_getv,
      	gtk_container_child_arg_setv -> gtk_container_child_setv,
      	gtk_container_add_with_argv -> gtk_container_addv.
      	note, gtk_container_add_with_args() remained, because its equivalent
      	would be gtk_container_add(,, ...) which would break all existing code.
      	(gtk_container_add_child_arg_type): similar to gtk_object_add_arg_type,
      	we expect the `arg_name' argument to be a const static string now.
      	(gtk_container_get_child_arg_type): function removed.
      
      Thu Jul  9 07:03:04 1998  Tim Janik  <timj@gtk.org>
      
      	* gtk/gtkargcollector.c: new file which holds gtk_arg_collect_value().
      	this is a static inline function that collects command line arguments
      	from a va_list. this file can just be included in all places that
      	need this functionality.
      
      	* gtk/gtkarg.h:
      	* gtk/gtkarg.c: new files which implement most of the argument
      	handling stuff from gtkobject.c. also collected a few more
      	gtk_arg_* utility functions from else places.
      
      	* gtk/gtkobject.h:
      	* gtk/gtkobject.c: moved most of the argument handling code into
       	gtkarg.c. we now export gtk_object_args_collect() as a non-public
      	method with a blind va_list pointer.
      	(gtk_object_add_arg_type): the `arg_name' argument is required to be a
      	const static string now.
      	(gtk_object_get_arg_type): function got removed.
      
      	* gtk/gtkwidget.c:
      	(gtk_widget_set):
      	(gtk_widget_new): adaptions for gtk_object_args_collect().
      
      	* gtk/gtktypeutils.c (gtk_type_init_builtin_types): changed the internal
       	fundamental type name so as to have a valid prefix, e.g. "bool"->
      	"gboolean", "string"->"GtkString" and somesuch, left "void" as is,
      	though that should probably be something like GtkNone since the
      	type itself is called GTK_TYPE_NONE.
      	even the internal type names need to avoid name clashes and must live
      	in their own namespace, several code portions rely on that.
      	we should relly have typedefs such as typedef gchar* GtkString; so the
      	fundamental type names can be used for code dumpers just like with all
      	the Gtk/Gdk types.
      347efc33
  13. 08 Jul, 1998 1 commit
    • Tim Janik's avatar
      handle GTK_RELIEF_HALF, which was introduced to keep either · 9b4d9046
      Tim Janik authored
      Wed Jul  8 15:31:28 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkbutton.c: handle GTK_RELIEF_HALF, which was introduced to
              keep either GTK_STATE_NORMAL for relief buttons (GTK_RELIEF_NONE) or
              to still honour GTK_WIDGET_STATE(), e.g. for coloured buttons
              (GTK_RELIEF_HALF).
              (gtk_button_paint): set the background for prelighted buttons with
              GTK_STATE_NORMAL only if GTK_RELIEF_NONE.
              (gtk_button_draw_focus): if GTK_RELIEF_NONE, use GTK_STATE_NORMAL for
              the shadow type (otherwise we get strange shadows for coloured buttons).
              (gtk_button_set_relief): queue a redraw after changing
              the relief.
              (gtk_button_class_init):
              (gtk_button_set_arg):
              (gtk_button_get_arg): added object argument "GtkButton::relief".
      
              * gtk/gtkenums.h (enum): added GTK_RELIEF_HALF.
      9b4d9046
  14. 07 Jul, 1998 1 commit
    • Tim Janik's avatar
      totaly binary incomnpatible change: · 88fba9f8
      Tim Janik authored
      
      Mon Jul  6 18:30:48 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkbutton.h:
              * gtk/gtkbutton.c: GtkButtons are now derived from GtkBin. we mirror
              GTK_BIN (button)->child to button->child to keep source compatibility.
      
              * gtk/gtkoptionmenu.c:
              * gtk/gtkclist.c:
              * gtkcheckbutton.c: don't refer to button->child, but
              GTK_BIN (button)->child instead.
      88fba9f8
  15. 06 Jul, 1998 1 commit
  16. 04 Jul, 1998 1 commit