1. 07 Dec, 1998 7 commits
    • Federico Mena Quintero's avatar
      Removed the unused cursor field in the structure. · 139e3cd4
      Federico Mena Quintero authored
      1998-12-07  Federico Mena Quintero  <federico@nuclecu.unam.mx>
      
      	* gtk/gtkpaned.h (struct _GtkPaned): Removed the unused cursor
      	field in the structure.
      139e3cd4
    • GMT 1998  Tony Gale's avatar
      Start mass update for GTK 1.1 Look for the best version of awk Fix FD leak · 337bdee2
      GMT 1998 Tony Gale authored
      Mon Dec  7 15:15:06 GMT 1998  Tony Gale <gale@gtk.org>
      
              * docs/gtk_tut.sgml: Start mass update for GTK 1.1
              * examples/extract.sh: Look for the best version of awk
              * examples/extract.awk: Fix FD leak
              * example/base: minimal example from Tutorial
      337bdee2
    • Owen Taylor's avatar
      New functions gtk_window_set_transient_for() - set up a "transient for" · 621beb8a
      Owen Taylor authored
      Mon Dec  7 01:29:27 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtkwindow.c: New functions
              gtk_window_set_transient_for() - set up a "transient for" relationship.
      	gtk_window_set_default_size() - set the initial size of a window
      	   distinct from its minimum size.
      	gtk_window_set_geometry_hints() - Allow the user to set
      	   minimum, maximum sizes, aspect rations, and gridded geometry,
      	   possibly all with respect to a subwidget of the window.
      	These interfaces are still a wee bit experimental.
      
      	* gdk/gdk.c: Added gdk_window_set_transient_for(),
      	gdk_window_set_geometry_hints(), and gdk_window_set_role().
      
      	* gdk/gdktypes.h: Added new types for find-grained specification
      	of WM hints.
      
      	* gtk/testgtk.c: Various changes to tests to test the
      	above new functions.
      
      	* gtk/gtkfontsel.c: Squash a few 'const' warnings.
      
      	* gtk/gtktogglebutton.c (gtk_toggle_button_realize): Restored
      	call to gtk_style_set_background() to prevent egregious
      	flashing to black.
      621beb8a
    • Tim Janik's avatar
      updates · fd7bdf03
      Tim Janik authored
      fd7bdf03
    • Tim Janik's avatar
      fixups · d2a3858b
      Tim Janik authored
      d2a3858b
    • Tim Janik's avatar
      when marshalling connect_object signals, don't pass the data pointer · f3143228
      Tim Janik authored
      Mon Dec  7 03:52:01 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtksignal.c (gtk_handlers_run): when marshalling connect_object
              signals, don't pass the data pointer twice, but swap it with the
              object pointer (proposed on Nov 30 1998 on gtk-devel-list).
      f3143228
    • Tim Janik's avatar
      reverted marius change to expose the type systems internal type info data · 33447a38
      Tim Janik authored
      Mon Dec  7 03:08:39 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtktypeutils.h:
              * gtk/gtktypeutils.c: reverted marius change to expose the type systems
              internal type info data to the user. if such functionality is required
              we should provide wrapped accessors, ala gtk_signal_query().
      
              * gtk/gtksignal.c (gtk_signal_connect_by_type): reverted marius change,
              since it destroys the possibility to implement automatic marshaller
              lookups some day, and it also disables third party code's ability to
              connect to any signal. also the GtkTypeInfo structures are dynamically
              allocated memory portions, so only the type system is really allowed
              to access that stuff.
      
      Mon Dec  7 01:32:18 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkfilesel.c (gtk_file_selection_key_press): always intercept the
              Tab key on the entry. the focus shouldn't get lost even if completion
              is attempted from an empty entry, since an empty entry string does
              indeed have a valid completion meaning (complete all).
              (gtk_file_selection_init): cast the gchar array parameter in calls to
              gtk_clist_new_with_titles() to quit compiler warnings.
              (check_dir): the no_stat_dirs struct must not be const, since we do
              indeed modify its contents.
      
              * gtk/testgtk.c (event_watcher): adapted prototype to fit new emission
              hook semantics.
      
              * gtk/gtksignal.h:
              * gtk/gtksignal.c:
              changed emission allocation, so we don't use a doubly linked list
              but link ourselfs (singly linked).
              changed emission hooks, they get the emision parameters passed as
              well now and are emitted during the actuall signal emission (after
              the RUN_FIRST class method, but prior to RUN_FIRST handlers).
              the existing restrictions do still apply to signal emission hooks,
              i.e. an emission may not be stopped or restarted from an emission hook.
              due to possibly huge perfomance impacts, frequent use of emision hooks
              is also not recommended.
              (gtk_signal_next_and_invalidate): added an
              assertments which explicits what the code assumes anyways: a
              maximum amount of 65535 signals.
      
              * gtk/gtkcontainer.h: deprecated gtk_container_foreach_interp(),
              gtk_container_foreach_full() should be used instead.
      
              * gtk/gtkmain.h:
              deprecated gtk_timeout_add_interp and gtk_idle_add_interp, since
              we provide _full variants.
      
              * gtk/gtksignal.h: deprecated gtk_signal_connect_interp(), we provide
              gtk_signal_connect_full() for long enough now.
      33447a38
  2. 06 Dec, 1998 4 commits
  3. 04 Dec, 1998 2 commits
    • Lars Hamann's avatar
      call toggle_row with valid row numbers only (toggle_row): check if · f5c4b374
      Lars Hamann authored
      Fri Dec  4 01:20:06 1998  Lars Hamann  <lars@gtk.org>
      
              * gtk/gtkclist.c (gtk_clist_button_release): call toggle_row with
              valid row numbers only
              (toggle_row): check if clist_row != NULL
      f5c4b374
    • Lars Hamann's avatar
      fixed for-loop. · f76880f2
      Lars Hamann authored
      Fri Dec  4 00:50:12 1998  Lars Hamann  <lars@gtk.org>
      
      	* gtk/gtkctree.c (gtk_ctree_export_to_gnode): fixed for-loop.
      
      	* gtk/gtkclist.c
      	(gtk_clist_set_column_visibility)
      	(gtk_clist_column_titles_active)
       	(gtk_clist_column_titles_active)
      	(gtk_clist_column_title_passive)
       	(gtk_clist_column_title_active): few additional tests whether
       	column->button != NULL
      f76880f2
  4. 03 Dec, 1998 4 commits
    • Owen Taylor's avatar
      Changed to 5 min from 10 seconds, so it doesn't abort while users have an · 646d68e4
      Owen Taylor authored
      Thu Dec  3 16:49:18 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkdnd.c (DROP_ABORT_TIME): Changed to 5 min
      	from 10 seconds, so it doesn't abort while users
      	have an ACTION_ASK menu up.
      
      	* gtk/gtkdnd.c: Hide the icon window between sending a a
      	drop event to the destination and displaying the
      	snapback animation, so that it doesn't hang around
      	during ACTION_ASK.
      646d68e4
    • Owen Taylor's avatar
      Use GTK_STATE_INSENSITIVE for the foreground of cells for CLists in the · 46afb008
      Owen Taylor authored
      Thu Dec  3 16:37:42 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkclist.c (get_cell_style): Use GTK_STATE_INSENSITIVE
      	for the foreground of cells for CLists in the insensitive
      	state, instead of GTK_STATE_PRELIGHT.
      46afb008
    • Tim Janik's avatar
      moved checks upon focus setting from gtk_window_real_set_focus to · 1ec67335
      Tim Janik authored
      Thu Dec  3 06:20:59 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkwindow.c: moved checks upon focus setting from
              gtk_window_real_set_focus to gtk_window_set_focus, so we don't
              emit the signal if unneccessary.
      
              * gtk/gtkwidget.c (gtk_widget_grab_focus): clear up the old focus
              containers when grabbing focus on a new widget. this is based on
              a patch from Alexis Mikhailov, submitted to gtk-list on 4 Nov 1998.
      
              * gtk/gtkclist.c (gtk_clist_focus_out): set CLIST_CHILD_HAS_FOCUS
              flag, so we take the buttons into consideration upon the next focus
              request.
      
              * gtk/gtkcontainer.c (gtk_container_set_focus_child): fixed an
              assertment.
      1ec67335
    • CST 1998 Shawn T. Amundson's avatar
      Fixes for low-color displays and a slight enhancement for true-color · 7cc30404
      CST 1998 Shawn T. Amundson authored
      Wed Dec  2 17:45:21 CST 1998 Shawn T. Amundson <amundson@gtk.org>
      
              * gtk/gtkpixmap.c: Fixes for low-color displays and a slight
                enhancement for true-color displays.
      
              * INSTALL:
                README:
                configure.in:
                gtk+.spec:
                docs/gtk-config.1: up to version 1.1.6
      7cc30404
  5. 02 Dec, 1998 3 commits
    • Manish Singh's avatar
    • Tim Janik's avatar
      s/gtk_notebook_nth_page/gtk_notebook_get_nth_page/. · 0d15bc66
      Tim Janik authored
      Wed Dec  2 01:39:02 1998  Tim Janik  <timj@gtk.org>
      
      	* gtk/gtknotebook.h:
      	* gtk/gtknotebook.c: s/gtk_notebook_nth_page/gtk_notebook_get_nth_page/.
      
      	* incremented version number to 1.1.6 and made Gtk
       	dependant on GLib 1.1.6.
      
      	* gtk/gtkwidget.h (struct _GtkRequisition): changed width and height
       	from guint16 to gint16, since sizes bigger than 32767 are not supported
       	anyways, and aritmethics with intermediate negative values are possible
       	now.
      
      Tue Dec  1 00:00:04 1998  Tim Janik  <timj@gtk.org>
      
      	* gtk/gtkscrolledwindow.c:
      	implementation of GTK_POLICY_NEVER functionality, added rationales
      	on the policy and size requisition handling at the top.
      	(gtk_scrolled_window_size_request):
      	we assume a default minimum for our child's width and height
      	if [hv]scrollbar_policy != GTK_POLICY_NEVER, except when the user
      	specified the dimension explicitely.
       	(gtk_scrolled_window_size_allocate):
      	do not show scrollbars if [hv]scrollbar_policy == GTK_POLICY_NEVER.
      
      	* gtk/gtkviewport.c (gtk_viewport_size_request): report the real
      	size we require (including the child).
      
              * gtk/gtkclist.c:
      	(gtk_clist_size_request): report the real size required.
      
      	* gtk/gtkenums.h (enum GtkPolicyType): added GTK_POLICY_NEVER.
      
      	* gtk/gtkobject.c (gtk_object_init_type): object_type doesn't
      	need to be a static variable.
      
      Mon Nov 30 22:41:25 1998  Tim Janik  <timj@gtk.org>
      
      	* gtk/gtkclist.h:
      	* gtk/gtkclist.c:
      	* gtk/gtkviewport.h:
      	* gtk/gtkviewport.c:
      	* gtk/gtktext.h:
      	* gtk/gtktext.c:
      	* gtk/gtklayout.h:
      	* gtk/gtklayout.c:
      	* gtk/gtkwidget.h:
      	* gtk/gtkwidget.c:
      	* gtk/gtkscrolledwindow.h:
      	* gtk/gtkscrolledwindow.c:
      	s/scroll_adjustements/scroll_adjustments/
      	s/scroll_adjustments/set_scroll_adjustments/g
      0d15bc66
    • Lars Hamann's avatar
      new class method/signal row_move. new public function. emit a row_move · 4ebc61c0
      Lars Hamann authored
      Tue Dec  1 22:45:58 1998  Lars Hamann  <lars@gtk.org>
      
      	* gtk/gtkclist.h (struct _GtkCListClass): new class method/signal
      	row_move.
      	* gtk/gtkclist.c (gtk_clist_row_move): new public function.
      	emit a row_move signal
      	(real_row_move): move source_row to dest_row
      	(gtk_clist_swap_rows): use gtk_clist_row_move calls.
      	(gtk_clist_columns_autosize): resize all columns to their optimal
      	width
      	* gtk/gtkctree.c (real_row_move): use gtk_ctree_move to move
      	entire sub-tree.
      	* gtk/gtknotebook.c (gtk_notebook_nth_page): get nth page widget.
      4ebc61c0
  6. 01 Dec, 1998 2 commits
  7. 30 Nov, 1998 5 commits
    • Jeff Garzik's avatar
      471afbe6
    • Elliot Lee's avatar
      I submitted this patch twice to gtk-devel-list, and received no comments, · 060978e0
      Elliot Lee authored
      
      
      I submitted this patch twice to gtk-devel-list, and received no comments, so
      am committing it.  Although not exhaustively tested, I have been using this
      gtk+ for a week w/o problems, and I did read the code to ensure that nothing
      ever writes to these data structures. If by chance people encounter SEGV's in
      gtk+ code that is setting values in global data structures, this patch could
      be a possible culprit.
      
      1998-11-30  Elliot Lee  <sopwith@cuc.ml.org>
      
      	* {gdk,gtk}/*.c: Make read-only data structures "static const" to
      	allow them to be shared, mainly including (but not limited to) the
      	GtkTypeInfo structures for each class.
      
      	* gtk/gtkfilesel.c: Add /net to the "leave me alone" directory listing.
      060978e0
    • Jeff Garzik's avatar
      Added initializer to quiet gcc warning. Added assertion to check for null · 58ca2448
      Jeff Garzik authored
      
      Added initializer to quiet gcc warning.
              Added assertion to check for null pointer deref.
      58ca2448
    • Tim Janik's avatar
      merged testgtkrc with the pre-themes one, removed system specific · 0c36e308
      Tim Janik authored
      Mon Nov 30 10:11:29 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/testgtkrc: merged testgtkrc with the pre-themes one, removed
              system specific includes.
      
              * gtk/gtksignal.c: asured that stop and restart emissions are also
              checked and processed for not connected objects. fixed up restart
              emission administration. invoke emission hooks after emission, hooks
              are not supposed to muck around with the current emission, and
              may also not cause emission restarts. fixed up stop emission
              administration.
      0c36e308
    • Tim Janik's avatar
      added an event watcher for enter/leave based on signal emission hooks. · 2c0fc39e
      Tim Janik authored
      Mon Nov 30 06:20:36 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/testgtk.c: added an event watcher for enter/leave based on
              signal emission hooks.
      
              * gtk/gtkobject.c (gtk_object_class_init): made GtkObject::destroy a
              GTK_RUN_NO_HOOKS signal.
      
              * gtk/gtksignal.h:
              * gtk/gtksignal.c: implemented emission hooks, new hooks can be added
              to a signal with gtk_signal_add_emission_hook or
              gtk_signal_add_emission_hook_full, and can be removed again with
              gtk_signal_remove_emission_hook.
      
              * gtk/gtkenums.h: remove GTK_RUN_MASK, since it doesn't represent
              an appropriate mask for signal runtypes for a long time now.
              added GTK_RUN_NO_HOOKS value, which is used to flag signals
              that do not allow the running of signal hooks.
      2c0fc39e
  8. 29 Nov, 1998 4 commits
    • Michael Krause's avatar
      made 'page_num' argument a gint: switch_page signal delivers valid page · 140c26af
      Michael Krause authored
      1998-11-26  Michael Krause  <m.krause@tu-harburg.de>
      
              * gtk/gtknotebook.c (gtk_notebook_switch_page): made 'page_num'
              argument a gint: switch_page signal delivers valid page numbers
              again.
      140c26af
    • Tim Janik's avatar
      set composite names. · c7850ecc
      Tim Janik authored
      Sun Nov 29 06:12:01 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkscrolledwindow.c (gtk_scrolled_window_set_[hv]adjustment):
              set composite names.
      c7850ecc
    • Tim Janik's avatar
      updates · f755abd2
      Tim Janik authored
      f755abd2
    • Tim Janik's avatar
      removed default initialization check, people must use gtk_type_init(); · 60e5a210
      Tim Janik authored
      Sun Nov 29 06:12:01 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtktypeutils.c (gtk_type_unique): removed default initialization
              check, people must use gtk_type_init();
      
              * gtk/gtkwidget.h:
              * gtk/gtkwidget.c: added gtk_widget_set_composite_name() which is meant
              for internal use by containers, that want to assign specific composite
              names to their composite children.
              added gtk_widget_get_composite_name() which will return a newly
              allocated string, containing the composite name of a widget. valid
              composite names can only be retrived from widgets that have a parent
              assigned and are flagged as GTK_COMPOSITE_CHILD.
      
              * gtk/gtkcontainer.h:
              * gtk/gtkcontainer.c: added a new function
              gtk_container_child_default_composite_name() which will return a
              newly allocated string, holding the composite name of a containers
              child. a default implementation is provided which will compose the
              composite name out of the widgets type and its sequential children
              id. this implementation can be overidden through a new class function
              *(composite_name)().
      60e5a210
  9. 28 Nov, 1998 5 commits
    • Owen Taylor's avatar
      Removed bogus expose_event handler - we had two expose_event handlers! · 6edbb34d
      Owen Taylor authored
      Sat Nov 28 10:57:59 1998  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkwindow.c (gtk_window_expose_event): Removed bogus
      	expose_event handler - we had two expose_event
      	handlers!
      6edbb34d
    • Tim Janik's avatar
      changed scrolled window inheritance, it inherits from GtkBin now. · 238ede33
      Tim Janik authored
      Sat Nov 28 03:13:42 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkscrolledwindow.h:
              * gtk/gtkscrolledwindow.c: changed scrolled window inheritance,
              it inherits from GtkBin now.
      
              * gtk/gtkbin.c (gtk_bin_unmap): removed superfluous check for
              visibility of child.
              (gtk_bin_draw): removed superfluous check for GTK_WIDGET_DRAWABLE().
              added check so a child gets only drawn if it's visible.
      
              * gtk/gtkwidget.h:
              * gtk/gtkwidget.c: removed gtk_widget_draw_children().
      
              * gtk/gtkstyle.h:
              * gtk/gtkstyle.c: rmoved gtk_reset_widget_shapes.
      
              * gtk/gtkwidget.h:
              * gtk/gtkwidget.c: removed crufty relict: gtk_widget_is_child().
              added internal function gtk_widget_reset_shapes() from gtkstyle.c.
      
              * gtk/gtkrc.h:
              * gtk/gtkrc.c: (gtk_rc_find_pixmap_in_path): removed bogus gscanner
              argument, changed callers.
      
              * gtk/gtkmenufactory.c: GtkMenuFactory is deprecated for a long time,
              it will issue a warning now.
      
              * gtk/gtkcompat.h: new file to #define aliases for historic
              function names.
      
              * changed 8 function names for consistency and provided aliases to keep
              source compatibility in gtkcompat.h:
              (gtk_accel_label_get_accel_width): renamed from gtk_accel_label_accelerator_width
              (gtk_container_set_border_width): renamed from gtk_container_border_width
              (gtk_notebook_get_current_page): renamed from gtk_notebook_current_page
              (gtk_packer_configure): renamed from gtk_packer_set_child_packing
              (gtk_paned_set_gutter_size): renamed from gtk_paned_gutter_size
              (gtk_paned_set_handle_size): renamed from gtk_paned_handle_size
              (gtk_scale_get_value_width): renamed from gtk_scale_value_width
              (gtk_window_set_position): renamed from gtk_window_position
      
              * renamed a few recently added funtions for consistency:
              (gtk_notebook_get_tab_label): renamed from gtk_notebook_query_tab_label.
              (gtk_notebook_get_menu_label): renamed from gtk_notebook_query_menu_label.
              (gtk_progress_configure): renamed from gtk_progress_reconfigure.
      238ede33
    • Manish Singh's avatar
      check for existing viewport first, and don't add one if there already is · 67d445ee
      Manish Singh authored
      * gtk/gtkscrolledwindow.c (gtk_scrolled_window_add_with_viewport):
      check for existing viewport first, and don't add one if there
      already is one
      
      -Yosh
      67d445ee
    • Tim Janik's avatar
      GTK_BASIC and freeze/thaw explanaition · 33347533
      Tim Janik authored
      33347533
    • Tim Janik's avatar
      deprecated gtk_widget_freeze_accelerators and · 58af2b56
      Tim Janik authored
      Sat Nov 28 00:06:49 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkwidget.h:
              * gtk/gtkwidget.c: deprecated gtk_widget_freeze_accelerators and
              gtk_widget_thaw_accelerators, we provide gtk_widget_lock_accelerators
              and gtk_widget_unlock_accelerators.
      
              * gtk/gtklayout.h:
              * gtk/gtklayout.c: implemented incremental freezing facility.
      
              * gtk/gtktext.h:
              * gtk/gtktext.c: implemented incremental freezing facility.
      
              * gtk/gtkenums.h:
              * gtk/gtkaccelgroup.h: moved enum GtkAccelFlags into this place.
      
              * gtk/gtkentry.h:
              * gtk/gtkentry.c:
              deprecated gtk_entry_adjust_scroll().
      
              * random GtkType, macro and indentation fixes.
      
      Fri Nov 27 22:50:15 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkclist.h:
              * gtk/gtkclist.c: implemented incremental freezing facility, added
              a new class member (*refresh)() which takes over the thaw
              functionality. the clist FROZEN flag got removed on the way.
              * gtk/gtkctree.c: adaptions to feature the clist refresh functionality
              and incremental freezing.
      
              * gtk/gtkcalendar.c: implemented incremental freezing facility.
      58af2b56
  10. 27 Nov, 1998 2 commits
  11. 26 Nov, 1998 2 commits
    • Lars Hamann's avatar
      define GtkCTreeNode as boxed type use GTK_CTREE_NODE_TYPE instead of · 4ab10dc8
      Lars Hamann authored
      Thu Nov 26 19:11:46 1998  Lars Hamann  <lars@gtk.org>
      
      	* gtk/gtk-boxed.defs (GtkCTreeNode): define GtkCTreeNode as boxed type
      	* gtk/gtkctree.c (gtk_ctree_class_init): use GTK_CTREE_NODE_TYPE
      	instead of GTK_TYPE_POINTER in signal definitions.
      	(patch from James Henstridge <james@daa.com.au>)
      
      Thu Nov 26 18:48:44 1998  Lars Hamann  <lars@gtk.org>
      
      	* gtk/gtkclist.c (set_cell_contents)
      	* gtk/gtkctree.c (set_cell_contents): call column_auto_resize only
       	if auto.resize == TRUE
      
      	* gtk/gtknotebook.c (gtk_notebook_set_shape) (gtk_notebook_expose):
       	don't draw tab, if show_tabs == FALSE
       	(bug reports from Alexis Mikhailov / Dave Cole)
       	(gtk_notebook_focus_changed) (gtk_notebook_draw_focus): draw only
       	the focus rectangle, not the hole tab.
      4ab10dc8
    • Tim Janik's avatar
      reverted bogus and undocumented!!! changes from Jay Cox (98/11/23 · c7ac3835
      Tim Janik authored
      Thu Nov 26 03:18:08 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkclist.h:
              * gtk/gtkctree.h:
              * gtk/gtkclist.c:
              * gtk/gtkctree.c: reverted bogus and undocumented!!! changes from
              Jay Cox (98/11/23 13:53:26) which `const' qualified char* arrays.
      
              * gtk/maketypes.awk: changed underline substitution, so we get
              GTK_TYPE_CTREE_POS instead of the broken GTK_TYPE_C_TREE_POS.
              * gtk/makeenums.pl: likewise.
              * gtk/gtkctree.c: adapted type names accordingly.
      c7ac3835