1. 13 Jan, 1999 7 commits
  2. 12 Jan, 1999 5 commits
    • Owen Taylor's avatar
      Add a drag_data_received handler for the label. · 24f6d8b8
      Owen Taylor authored
      Tue Jan 12 18:30:51 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/testdnd.c (label_drag_data_received): Add
      	a drag_data_received handler for the label.
      
      Tue Jan 12 15:01:50 1999  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdkevents.c: Removed the putback_events queue,
      	since it was causing problems with event ordering -
      	just keep a single queue. If we need it, we can
      	add priorities to events.
      
      	* gdk/gdkevents.c: Annotate events with flags - we allocate
      	a GdkEventPrivate structure in gdk_event_new() and use these
      	flags to mark an event being translated as "pending" -
      	I.e., not yet ready to be dequeued. So we can put
      	the event on the queue and get the order of the
      	events right. (This solves the double-click problems)
      
      	* gdk/gdk.h gdk/gdkevents.h: Add gdk_event_peek() to get a copy
      	of the next event on the event queue.
      
      	* gtk/gtkmain.c (gtk_main_do_event): Use gdk_event_peek()
      	to check the next event without causing event queue
      	reordering.
      24f6d8b8
    • Owen Taylor's avatar
      Minor fix to handling of misc->[x/y]pad · 5a86cbd1
      Owen Taylor authored
      Tue Jan 12 15:41:20 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtklabel.c (gtk_label_expose): Minor fix
      	to handling of misc->[x/y]pad
      5a86cbd1
    • Owen Taylor's avatar
      Add back as wrapper function to restore source/binary compatibility. · bef538cc
      Owen Taylor authored
      Tue Jan 12 14:31:43 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkstyle.[ch] (gtk_style_apply_default_pixmap):
      	Add back as wrapper function to restore source/binary
      	compatibility. grrrr.
      bef538cc
    • Tim Janik's avatar
      updates · 9619e45a
      Tim Janik authored
      9619e45a
    • Tim Janik's avatar
      reworked the redrawing heuristics somewhat, this fixed a bunch of existing · d7bd87f2
      Tim Janik authored
      Tue Jan 12 13:47:07 1999  Tim Janik  <timj@gtk.org>
      
              * reworked the redrawing heuristics somewhat, this fixed a bunch of
              existing redrawing problems and majorly reduces overall redrawing needs
              during normal operation. basically we now only queue redraws when
              neccessary and much rely on the draw_area coalescing code in gtkwidget.c
              to optimize the queued portions. widgets will now upon reallocation only
              get redrawed if their allocation has changed. upon hide/show only the
              area allocated by the child will be queued for the parent, this has the
              side effect that parents which change their appearance in dependance on
              the numer of visible children have to keep track of their children's
              visiblity and eventually fully redraw themselves. this is a minor
              constrain with great benefits in terms of redraw reduction, and only got
              triggered by the notebook widget.
      
              * gtk/gtkwidget.c:
              (gtk_widget_queue_clear): don't bother if width and height == 0.
              (gtk_widget_queue_clear_child): new static function to queue a redraw of
              the area obscured by a child on a parent.
              (gtk_widget_queue_resize): queue_clear the widget if it is drawable.
              (gtk_widget_show): queue resize on the widget before showing.
              (gtk_widget_hide): queue resize on the widget after hiding.
              (gtk_widget_map): queue_draw the widget after mapping.
              (gtk_widget_unmap): queue_clear_child the widget.
              (gtk_widget_size_allocate): queue_clear_child and queue_draw if the
              widget's allocation changed.
              (gtk_widget_unparent): queue_clear_child so the parent redraws obscured
              portions.
              (gtk_widget_real_show):
              (gtk_widget_real_hide):
              (gtk_widget_real_map):
              (gtk_widget_real_unmap):
              (gtk_widget_real_size_allocate): don't bother with redraw queueing,
              descendants that override these functions don't do either and we handle
              all redrawing/resizing related stuff before or after the signal emission
              now.
      
              * gtk/gtkcontainer.c:
              (gtk_container_resize_children): don't bother about redrawing anymore
              since gtk_widget_size_allocate handles that for us now.
      
              * gtk/gtknotebook.h:
              * gtk/gtknotebook.c:
              added a flag have_visible_child to indicate whether we need to draw
              non child related portions at all, e.g. shadows etc.
              (gtk_notebook_draw): if have_visible_child changed, do a full paint
              instead of updating a small area only.
      
      Mon Jan 11 20:44:35 1999  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkstyle.c: changed gtk_style_apply_default_pixmap to
              gtk_style_apply_default_background which takes an extra argument
              copy_area to determine NO_WINDOW widget pixmap copying.
              changed callers accordingly.
      
              * gtk/gtktogglebutton.c:
              (gtk_toggle_size_allocate):
              (gtk_toggle_button_expose):
              (gtk_toggle_button_paint): avoid messing with our parent's window if
              toggle_button->draw_indicator == TRUE and we are a NO_WINDOW widget.
      
              * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator): draw
              the draw_indicator with GTK_STATE_ACTIVE if the toggle button is active.
      
              * gtk/check-n.xpm:
              * gtk/check-y.xpm:
              * gtk/testgtkrc: set pixmaps for ACTIVE and NORMAL check button
              bg_pixmaps.
      d7bd87f2
  3. 11 Jan, 1999 7 commits
    • Lars Hamann's avatar
      end drag selections if necessary. · 8b095595
      Lars Hamann authored
      Mon Jan 11 23:52:58 1999  Lars Hamann  <lars@gtk.org>
      
      	* gtk/gtklist.c (gtk_list_signal_drag_begin)
      	(gtk_list_drag_begin): end drag selections if necessary.
      
      	* gtk/gtkspinbutton.c/h (gtk_spin_button_update): made function
      	public. Manually force synchronization of spin button text and
       	adjustment value.
      8b095595
    • Tim Janik's avatar
      eliminated some queue_draws when invoking gtk_widget_set_state, since that · d2e69a89
      Tim Janik authored
      Mon Jan 11 15:23:32 1999  Tim Janik  <timj@gtk.org>
      
              * gtk/gtktogglebutton.c: eliminated some queue_draws when invoking
              gtk_widget_set_state, since that cares about redrawing already.
              some code cleanups.
      
              * gtk/gtktogglebutton.[hc]:
              * gtk/gtkfontsel.c:
              * gtkgamma.c:
              s/gtk_toggle_button_set_state/gtk_toggle_button_set_active/ since
              set_state is already taken by gtkwidget.h.
      
              * gtk/gtkcompat.h: #define gtk_toggle_button_set_state
              gtk_toggle_button_set_active.
      
              * gtk/gtkstyle.c: some indentation cleanups.
      d2e69a89
    • Owen Taylor's avatar
      Only remove handlers for motion/button_release at drop, remove · 0b84fc27
      Owen Taylor authored
      Mon Jan 11 10:45:28 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkdnd.c: Only remove handlers for motion/button_release
      	at drop, remove "selection_get" handler later.
      0b84fc27
    • Tim Janik's avatar
      removed Paolo Molaro's type creation hooks again, since they 1) don't care · 98333524
      Tim Janik authored
      Mon Jan 11 13:31:49 1999  Tim Janik  <timj@gtk.org>
      
              * gtk/gtktypeutils.[hc]: removed Paolo Molaro's type creation hooks
              again, since they 1) don't care about infinite recursion (likely
              to achive), 2) we are in feature freeze for 1.2. this definitely
              deserves a sane implementation in 1.3 though (but without a hook
              return value, without seq_id hackery and with recursion checks).
      98333524
    • Tim Janik's avatar
      only pass key events to the focus widget if it is sensitive. · e3ee9e9d
      Tim Janik authored
      Mon Jan 11 13:18:37 1999  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkwindow.c:
              (gtk_window_key_release_event):
              (gtk_window_key_press_event): only pass key events to the focus widget
              if it is sensitive.
      
              * gtk/gtkmenuitem.c (gtk_menu_item_select_timeout): don't popup the
              submenu if it isn't sensitive.
              (gtk_menu_item_paint): state_type doesn't need to be reset to
              GTK_STATE_INSENSITIVE if the widget is insensitive anyways.
      
              * gtk/gtkcontainer.c (gtk_container_real_focus):
              * gtk/gtklist.c (gtk_list_focus):
              * gtk/gtkmenushell.c (gtk_menu_shell_move_selected):
              * gtk/gtknotebook.c (gtk_notebook_focus):
              s/GTK_WIDGET_SENSITIVE/GTK_WIDGET_IS_SENSITIVE/ since a widgets
              sensitivity is determined through the parent as well,
              GTK_WIDGET_SENSITIVE is only of interest inside gtkwidget.c, everywhere
              else GTK_WIDGET_IS_SENSITIVE (widget) needs to be used to check for
              sensitivity.
      
              * gtk/gtkaccelgroup.c (gtk_accel_group_activate): don't activate
              object if it is an insensitive widget.
      e3ee9e9d
    • Paolo Molaro's avatar
      Mon, 11 Jan 1999 08:09:08 +0100 Paolo Molaro <lupus@debian.org> · f3af00f4
      Paolo Molaro authored
              * gtk/gtktypeutils.[ch]: add gtk_type_{add,remove}_creation_hook().
              You can have a notification when a type is created.
      f3af00f4
    • Tim Janik's avatar
      added an assertement. · b6714d9a
      Tim Janik authored
      1999-01-11  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkmain.c (gtk_propagate_event): added an assertement.
      b6714d9a
  4. 10 Jan, 1999 3 commits
  5. 09 Jan, 1999 5 commits
    • Owen Taylor's avatar
      Added cs to ALL_LINGUAS. · 3bd19e15
      Owen Taylor authored
      Sat Jan  9 17:36:20 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* configure.in (ALL_LINGUAS): Added cs to ALL_LINGUAS.
      
      Sat Jan  9 17:27:49 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkfilesel.c (gtk_file_selection_populate):
      	Mark another string for internationalization.
      	[ Stanislav Brabec <utx@k332.feld.cvut.cz> ]
      3bd19e15
    • Owen Taylor's avatar
      Added Czech translation by Stanislav Brabec <utx@k332.feld.cvut.cz> · 71adaddf
      Owen Taylor authored
      Sat Jan  9 17:35:19 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* cs.po: Added Czech translation by
      	  Stanislav Brabec <utx@k332.feld.cvut.cz>
      71adaddf
    • Owen Taylor's avatar
      Set name "gtk-tooltips" on tip window so that a style can be set for · a40fd787
      Owen Taylor authored
      Sat Jan  9 14:02:08 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtktooltips.c (gtk_tooltips_force_window): Set
      	name "gtk-tooltips" on tip window so that a style
      	can be set for tooltips.
      a40fd787
    • Nuno Ferreira's avatar
      More strings translated. Not finished yet. · a646c4b4
      Nuno Ferreira authored
      1999-01-09  Nuno Ferreira  <nmrf@rnl.ist.utl.pt>
      
      	* pt.po: More strings translated. Not finished yet.
      a646c4b4
    • Owen Taylor's avatar
      Fixed some list-manipulation breakage. · 95843529
      Owen Taylor authored
      Fri Jan  8 19:00:17 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkdnd.c (gdk_window_cache_filter): Fixed
      	some list-manipulation breakage.
      
      	* gdk/gdkdnd.c (gdk_window_cache_destroy): Free
      	window cache structure.
      
      	* gtk/gtkdnd.c (gtk_drag_set_icon_pixmap): Set an
      	event mask on the drag window so clicking on it
      	doesn't pop up root menus, etc.
      
      	* gtk/gtkdnd.c (gtk_drag_button_release_cb): Remove
      	signal handlers at button release.
      95843529
  6. 08 Jan, 1999 2 commits
    • Lars Hamann's avatar
      call gtk_spin_button_update before returning a value · b56693d1
      Lars Hamann authored
      Fri Jan  8 00:42:00 1999  Lars Hamann  <lars@gtk.org>
      
      	* gtk/gtkspinbutton.c (gtk_spin_button_get_value_as_int)
      	(gtk_spin_button_get_value_as_float): call gtk_spin_button_update
      	before returning a value
      
      	* gtk/gtkclist.c (gtk_clist_motion): don't allow 'drag selections'
      	if clist is a drag source.
      	(gtk_clist_drag_begin): remove pointer grabs, end ongoing selections.
      
      	* gtk/gtkctree.c (remove_grab): copy of clist function.
      	(gtk_ctree_drag_begin): let clists drag_begin method set the
      	source info struct.
      b56693d1
    • Owen Taylor's avatar
      Fixes to drawing the background of the bin window so that clearing and · 41604dd8
      Owen Taylor authored
      Thu Jan  7 19:10:21 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkviewport.c (gtk_viewport_style_set): Fixes
      	to drawing the background of the bin window
      	so that clearing and redrawing of child
      	widgets work properly.
      
      	* gtk/gtkwidget.c (gtk_widget_idle_draw): Juggle around
      	data so that if somebody triggers more redraw queuing
      	from a expose_event handler, it doesn't confuse the
      	heck out of GTK+. (But is highly liable to cause
      	an infinite loop...)
      41604dd8
  7. 07 Jan, 1999 1 commit
    • Owen Taylor's avatar
      Fix some more memory leaks. · bedab705
      Owen Taylor authored
      Thu Jan  7 12:31:41 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkselection.c (gtk_target_list_unref): Fix some
      	more memory leaks.
      bedab705
  8. 06 Jan, 1999 5 commits
  9. 05 Jan, 1999 4 commits
    • Owen Taylor's avatar
      When redrawing the under-cursor character, don't redraw the terminating · 5126b13c
      Owen Taylor authored
      Tue Jan  5 11:51:32 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable):
      	When redrawing the under-cursor character, don't
      	redraw the terminating NULL.
      	[ From: dov@imagic.weizmann.ac.il (Dov Grobgeld) ]
      5126b13c
    • Owen Taylor's avatar
      Make gtk_propagate_event() non-static, we need it in gtkdnd.c so that the · 1fd7a6e4
      Owen Taylor authored
      Tue Jan  5 15:03:47 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkmain.c (gtk_propagate_event): Make
      	gtk_propagate_event() non-static, we need it in gtkdnd.c
      	so that the button-release we synthesize gets propagated
      	correctly.
      
      	* gtk/gtkdnd.c: Use gtk_propagate_event() so
      	release gets to a GtkList. But we can't really
      	get this right without access to the windows
      	event masks and doing X-style propagation ourselves.
      
      Tue Jan  5 11:31:55 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkselection.c (gtk_target_list_unref): Free
      	memory allocated for target lists.
      
      	* gtk/gtkdnd.c (gtk_drag_drop_finished): Release
      	selections before destroying info structure.
      
      	* gdk/gdkdnd.c gdktypes.h (gdk_drag_get_protocol): Add
      	new value GDK_DRAG_PROTO_NONE, use it for non-drag
      	targets, to quiet Purify.
      
      	* gdk/gdkdnd.c (gdk_window_register_dnd): Set size
      	of property properly.
      1fd7a6e4
    • Arturo Espinosa's avatar
      Stuff I did last night while watching TV · ce87813a
      Arturo Espinosa authored
      ce87813a
    • Arturo Espinosa's avatar
      f876ca26
  10. 04 Jan, 1999 1 commit