1. 25 Jun, 1998 2 commits
  2. 24 Jun, 1998 6 commits
    • 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
    • Tim Janik's avatar
      changelog entry · 11f55887
      Tim Janik authored
      11f55887
    • Tim Janik's avatar
      new function gtk_container_child_arg_set, similar to · 9860caa5
      Tim Janik authored
      Wed Jun 24 14:14:32 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkcontainer.c: new function gtk_container_child_arg_set, similar
              to gtk_container_child_arg_setv, but takes a variable argument list.
              new function gtk_container_get_child_arg_type, which is needed by
              gtk_object_collect_args.
      
              * gtk/gtkobject.c: changed prototype for gtk_object_collect_args, to
              take a function pointer to figure the argument type.
              adapted callers to pass gtk_object_get_arg_type.
              * gtk/gtkwidget.c: adapted gtk_object_collect_args callers to pass
              gtk_object_get_arg_type..
      
              * gtk/gtkpacker.h:
              * gtk/gtkpacker.c:
              (gtk_packer_reorder_child): new function to change the packing order
              of a child.
              (gtk_packer_size_request):
              (gtk_packer_size_allocate): take container->border_width into acount.
      
              * gtk/gtkpacker.c: implemented widget arguments:
              "GtkPacker::spacing", "GtkPacker::border_width", "GtkPacker::pad_x",
              "GtkPacker::pad_y", "GtkPacker::ipad_x", "GtkPacker::ipad_y".
              implemented child arguments:
              "GtkPacker::side", "GtkPacker::anchor", "GtkPacker::expand",
              "GtkPacker::fill_x", "GtkPacker::fill_y", "GtkPacker::use_default",
              "GtkPacker::border_width", "GtkPacker::pad_x", "GtkPacker::pad_y",
              "GtkPacker::ipad_x", "GtkPacker::ipad_y", "GtkPacker::position".
      
              * gtk/gtkmisc.c (gtk_misc_set_arg): for padding args, set the padding,
              not the alignment.
      
              * gtk/gtkeventbox.h:
              * gtk/gtkeventbox.c: GtkType and macro fixups.
      
              * gtk/testgtk.c (entry_toggle_sensitive): new function to toggle
              sensitivity of an entry.
      
              * gtk/gtkstyle.c (gtk_style_new): support normal grey as default color
              for insensitive base.
      
              * gtk/gtkentry.c (gtk_entry_realize): set the window backgrounds
              widget state dependent.
              (gtk_entry_style_set): likewise.
              (gtk_entry_state_changed): set background color on state changes.
              (gtk_entry_draw_text): for non selected text, use state dependent
              colors.
      
              * gtk/gtktogglebutton.c: support for widget arguments
              "GtkToggleButton::active" and "GtkToggleButton::draw_indicator".
      9860caa5
    • Stefan Jeske's avatar
      Added compatibility code for 1.0.x-like parameters. Changed internal · 14bd8cf9
      Stefan Jeske authored
      * gtk/gtkspinbutton.c (gtk_spin_button_spin): Added compatibility
      code for 1.0.x-like parameters. Changed internal interface of
      gtk_spin_button_real_spin. Several fixes to avoid emission of
      "value_changed" where possible.
      14bd8cf9
    • Tim Janik's avatar
      added a frame with radio buttons to select the resize_mode for the · dbce6083
      Tim Janik authored
      Wed Jun 24 07:47:29 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/testgtk.c (create_idle_test): added a frame with radio buttons
              to select the resize_mode for the idle-labels container.
      
              * gtk/gtkframe.h:
              * gtk/gtkframe.c: GtkType and macro corrections.
      
              * gtk/gtkradiobutton.c (gtk_radio_button_set_arg): new function to
              support radio grouping.
      
      Tue Jun 23 08:01:09 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkcontainer.c (gtk_container_set_resize_mode): queue a resize
              unconditionally if resize_mode has changed.
      
              * gtk/gtkscrolledwindow.c (gtk_scrolled_window_init): set
              GTK_RESIZE_QUEUE on the scrolled window.
              (gtk_scrolled_window_construct): set GTK_RESIZE_PARENT for the vieport.
      
      Tue Jun 23 04:20:30 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkcontainer.h:
              * gtk/gtkcontainer.c:
              (GTK_IS_RESIZE_CONTAINER): new macro to find out if
              a given gtkobject is a container with resize_mode==GTK_RESIZE_PARENT.
              (gtk_container_queue_resize): new function to queue a container for
              a *size* reallocation (doesn't affect its position, and thus its
              parent is left untouched usually).
              (gtk_container_get_resize_container): new function to retrive the next
              most resize container which is not itself queued for a resize.
              (gtk_container_idle_sizer): new function to carefully process the
              container_resize_queue since it can change during invokation of
              gtk_container_check_resize().
              (gtk_container_resize_children): total rework of this function to
              properly handle resize containers. makes a lot of assumptions whitch
              are stated in the comments.
      
              * gtk/gtkcontainer.c:
              (gtk_container_real_check_resize): only requeue ourselves if we are not
              a resize container.
              (gtk_container_clear_resize_widgets): care for automatic deletion of our
              resize_widgets list on size_allocate through a handler connection.
      
              * gtk/gtkwindow.c (gtk_window_shutdown): new functionm to reset the
              focus and default widget of a window, so to take the burden from
              gtk_widget_unparent.
      
              * gtk/gtkviewport.c: removed gtk_viewport_check_resize, which tried
              to be clever, but actually messed up the resize_children logic and
              caused unneccessary allocations on its whole branch. besides this,
              it messed up the display by not invoking a redraw after the allocation.
      
              * gtk/gtktable.c (gtk_table_set_child_arg): reverted recent change, so
              that it is the child again that is queued for a resize.
              (gtk_table_attach): likewise.
              (gtk_table_remove): likewise.
      dbce6083
    • Manish Singh's avatar
      s/GkWidget/GtkWidget/ · 00362c03
      Manish Singh authored
      -Yosh
      00362c03
  3. 23 Jun, 1998 2 commits
  4. 22 Jun, 1998 2 commits
  5. 21 Jun, 1998 1 commit
    • Raja R Harinath's avatar
      Remove $(srcdir) from, and clean up, the dependencies. Generate to · e14c6c1d
      Raja R Harinath authored
      1998-06-21  Raja R Harinath  <harinath@cs.umn.edu>
      
      	* gtk/Makefile.am (gtk.defs,gtktypebuiltins*): Remove $(srcdir)
      	from, and clean up, the dependencies.  Generate to intermediate
      	files to prevent problems with Ctrl-C.
      
      	* gtk/genmarshal.pl: Generate `gtkmarshal.[ch]' in $srcdir.
      
      Also commit readable/indented gtkmarshal.[ch].
      e14c6c1d
  6. 20 Jun, 1998 1 commit
  7. 19 Jun, 1998 5 commits
    • Stefan Jeske's avatar
      - Bug fix for precision problem causing occasional double emission of · 1ae617e3
      Stefan Jeske authored
      	* gtk/gtkspinbutton.h gtk/gtkspinbutton.c gtk/testgtk.c:
              - Bug fix for precision problem causing occasional double emission
      	  of "value_changed" signal (hopefully works now).
              - API change (should be binary compatible) :
      	  new enum GtkSpinType; modified gtk_spin_button_spin to use it.
      	  Modified cursor example appropriately.
      	  To spin by something other than step_/page_increment, use
      	  gtk_spin_button_spin (spin, GTK_SPIN_USER_DEFINED, increment).
      	- Made GTK_SHADOW_NONE the default. ;)
      	- Fixed casting of GtkAdjustment* to GtkWidget* in
      	  gtk_spin_button_value_changed.
      1ae617e3
    • Tim Janik's avatar
      fail silently for toplevels. if resize_mode changes to GTK_RESIZE_PARENT, · 5c68ecbc
      Tim Janik authored
      Fri Jun 19 06:18:19 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkcontainer.c (gtk_container_set_resize_mode): fail silently
              for toplevels. if resize_mode changes to GTK_RESIZE_PARENT, clear the
              resize widget list before queuing the container for a new reize.
              (gtk_container_need_resize): changed return value to FALSE, since this
              used to indicate that no further resizes are needed.
              (gtk_container_set_arg):
              (gtk_container_get_arg):
              (gtk_container_class_init): implemented GtkContainer::resize_mode
              argument.
      
              (gtk_container_resize_children): when we walk up the tree of a resize
              widget we need to stop if we are the current parent.
      
              * gtk/gtkwidget.c (gtk_widget_queue_resize): flag the resize child with
              GTK_RESIZE_NEEDED for container->resize_mode==GTK_RESIZE_IMMEDIATE.
              (gtk_widget_hide_all): retrive the toplevel widget from via
              gtk_widget_get_resize_container().
      5c68ecbc
    • Owen Taylor's avatar
      Only respond to selection with button 1. This allows context-sensitive · 5c5a45f9
      Owen Taylor authored
      Thu Jun 18 23:08:36 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtklist.c (gtk_list_button_press): Only respond
      	  to selection with button 1. This allows context-sensitive
      	  menus to work correctly.
      5c5a45f9
    • Tim Janik's avatar
      replaced some gtk_object_data_force_id with g_quark_from_static_string · 3c90c2cd
      Tim Janik authored
      Fri Jun 19 03:29:04 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkaccelgroup.c:
              * gtk/gtkbindings.c:
              * gtk/gtkcontainer.c:
              * gtk/gtkitemfactory.c:
              * gtk/gtkobject.c:
              * gtk/gtksignal.c:
              * gtk/gtkwidget.c: replaced some gtk_object_data_force_id with
              g_quark_from_static_string calls to save memory.
      
              * gtk/gtkobject.c (gtk_object_set_data_by_id_full): invoke the destroy
              function _after_ the new data has been setup.
              minor changes to object data functions to feature the GQuark type.
      3c90c2cd
    • Owen Taylor's avatar
      Remove --g-fatal-warnings flag from argv. · 913831b2
      Owen Taylor authored
      Thu Jun 18 21:13:54 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtkmain.c (gtk_init): Remove --g-fatal-warnings flag
      	  from argv.
      
      Thu Jun 18 20:22:28 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/genmarshal.pl: Modified to be more idiomatic Perl,
      	  to be more readable perl, to spit out stuff that looks
      	  more like readable C, and to pipe output through indent
      	  so output looks a lot like readable C. No functional
      	  changes.
      
      Thu Jun 18 17:43:31 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtkpixmap.[ch] (gtk_pixmap_set): Clear the background if
      	  necessary when switching to a masked pixmap. (Based on a patch
      	  from Ullrich Hafner <hafner@informatik.uni-wuerzburg.de>)
      
      Thu Jun 18 16:18:10 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtkeditable.[ch]: Added action signals for keyboard
         	  bindings. (move_cursor, kill_word, etc, etc, etc).
      
                removed the time argument from
      	  gtk_editable_cut/copy/paste_clipboard (source but not
                binary incompatible...) Instead get time from
      	  gtk_get_current_event ().
      
      	* gtk/gtktext.c gtk/gtkentry.c: Support the new editable
      	  signals.
      
      Thu Jun 18 02:52:09 1998  Owen Taylor  <otaylor@gtk.org>
      
      	Patches from Damon Chaplin <DAChaplin@email.msn.com>:
      
              gtk/gtkfontsel.h: Fixed GtkFontSelectionClass - I forgot to change
      	     parent class to GtkNotebookClass when splitting the widget in
      	     two.  Also updated some comments.
      
              gtk/gtkfontsel.c: Fixed bug when toggling 'Allow scaled bitmaps'
                     button without a font selected.
      
                   Fixed bug in set_font_name - I hadn't updated the code to
                     search for the style in the font_style clist - it was
                     still assuming the style row was equal to its index,
                     but it isn't any more.
      
                   Changed 'Reset' button on filter page to 'Clear Filter'.
                   Deleted old code relating to the old 'Filter Fonts' toggle
                   Updated some comments.
                   Cleared 'Actual Fontname' if no font is set.
      
              gtk/testgtk.c: Fixed problem when 'OK' button is pressed - it was
      	     destroying the GtkFontSelection instead of the
                   GtkFontSelectionDialog.
      
      Thu Jun 18 02:15:31 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtkmain.c (gtk_init): Added --g-fatal-warnings
      	  flag to make all warnings fatal errors.
      
      	* gtk/testthreads.c: moved <pthreads.h> include inside
      	  #ifdef USE_PTHREADS
      
      Thu Jun 18 01:37:31 1998  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtkenums.h gtk/gtkcontainer.[ch] gtk/gtkwidget.c
      	  gtk/gtkmenu.c gtk/gtkviewport.c gtk/gtkwindow.c:
      
      	- Added new function gtk_container_set_resize_mode() for
      	  fine-grained control of where resize-queueing is done.
      
      	- Removed GtkContainer::need_resize and GtkWindow::move_resize
      	- Added GtkContainer::check_resize to replace need_resize.
      
      	- Added function gtk_container_check_resize() to trigger
      	  queued resizes, and gtk_container_resize_children() to
      	  Figure which children need to be size-allocated. (logic
      	  moved from gtkwindow.c)
      
      	- Reorganized code in gtkwindow.c
      
      	- Set the resize-mode for viewports so that resizes within
      	  a viewport don't propagate out of it.
      913831b2
  8. 18 Jun, 1998 2 commits
    • Federico Mena Quintero's avatar
      Use pointer<->int conversion macros to avoid warnings. · 25bd56b9
      Federico Mena Quintero authored
      1998-06-18  Federico Mena Quintero  <federico@nuclecu.unam.mx>
      
      	* gtk/gtkfontsel.c: Use pointer<->int conversion macros to avoid warnings.
      
      	* gtk/gtkaccellabel.c (gtk_accel_label_accelerator_width): Use
      	g_return_val_if_fail, because the function *does* return a value.
      25bd56b9
    • Tim Janik's avatar
      yeppers, accelerator changes to fix the gimp. commit message dedicated to · f83d57e9
      Tim Janik authored
      
      yeppers, accelerator changes to fix the gimp.
      commit message dedicated to sopwith ;)
      
      Thu Jun 18 03:30:06 1998  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkaccellabel.h:
              * gtk/gtkaccellabel.c: new function gtk_accel_label_accelerator_width to
              request the size of the accelerator portion of an accel label.
              (gtk_accel_label_size_request): don't request for the accelerators size.
              (gtk_accel_label_expose_event): only draw the accelerator if we got
              enough extra space.
      
              * gtk/gtkmenuitem.c (gtk_menu_item_size_request): request accelerator
              width from children.
      
              * gtk/gtkmenu.c (gtk_menu_key_press): when adding an accelerator to an
              object (after removal has been requested) check if there is still an
              accelerator remaining to avoid adding two accelerators on an object.
              this can happen for locked accelerators (or accelerator-frozen widgets).
              (gtk_menu_size_request): feature childrens accelerator width in size
              requests.
      
              * gtk/gtknotebook.c (gtk_notebook_menu_item_create): use
              gtk_widget_freeze_accelerators() for dynamically created menu items.
      
              * gtk/gtksignal.h:
              * gtk/gtksignal.c: new function gtk_signal_handler_pending_by_func()
              which will return a handler_id > 0 if the specified function is pending
              for `signal_id'.
      
              * gtk/gtkwidget.h:
              * gtk/gtkwidget.c: remove gtk_widget_stop_accelerator, which was just
              a signal handler function to stop accelerator addition.
              added gtk_widget_freeze_accelerators and gtk_widget_thaw_accelerators
              which will prevent (undo) any accelerators from being added to or
              removed from a widget.
      f83d57e9
  9. 17 Jun, 1998 5 commits
  10. 16 Jun, 1998 6 commits
  11. 15 Jun, 1998 2 commits
    • Owen Taylor's avatar
      Actually add in the files... · 4079c878
      Owen Taylor authored
      4079c878
    • 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
  12. 14 Jun, 1998 5 commits
  13. 13 Jun, 1998 1 commit