1. 20 Jan, 1999 3 commits
    • Timur I. Bakeyev's avatar
      Under some systems (notably, BSDI), there is no LC_MESSAGES category in · 5ce6bea6
      Timur I. Bakeyev authored
      
      Under some systems (notably, BSDI), there is no LC_MESSAGES category in
      locale.h. In this case it is good guess to relay on the value of LC_ALL
      (in fact, LC_CTYPE will be more precise).
      5ce6bea6
    • Owen Taylor's avatar
      Instead of drawing a background pixmap in with gdk_draw_pixmap(), set it · 6205bbbf
      Owen Taylor authored
      Wed Jan 20 13:06:51 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtktext.[ch] (clear_[focus_]area): Instead of drawing
      	a background pixmap in with gdk_draw_pixmap(), set
      	it as a tile pixmap for a GC. This should speed
      	up things considerably and also will hide a bug
      	where text->first_onscreen_ver_pixel is being
      	corrupted, causing the bg pixmap drawing code to generate
      	graphics exposes.
      6205bbbf
    • Lars Hamann's avatar
      only call grab_add if pointer_grab succeeds. (gtk_list_unmap): remove · 0543c806
      Lars Hamann authored
      Tue Jan 19 22:15:10 1999  Lars Hamann  <lars@gtk.org>
      
      	* gtk/gtklist.c
      	(gtk_list_button_press):  only call grab_add if pointer_grab succeeds.
      	(gtk_list_unmap): remove pointer/widget grabs if needed.
      	(gtk_list_signal_focus_lost): removed.
      	(gtk_list_focus) (gtk_list_set_focus_child): set last_focus_child.
      	(gtk_list_remove_items_internal) (gtk_list_clear_items): unset
       	undo_focus_child if necessary. In case of SELECTION_BROWSE/EXTENDED
       	select a new item if selection is empty.
      0543c806
  2. 18 Jan, 1999 9 commits
    • Tim Janik's avatar
      add compatibility define for gtk_ctree_set_reorderable. · 17127d2c
      Tim Janik authored
      Tue Jan 19 00:21:15 1999  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkcompat.h: add compatibility define for
              gtk_ctree_set_reorderable.
      17127d2c
    • Lars Hamann's avatar
      add a sanity check [from Todd Dukes <todddukes@netscape.net>] · abb7ed1c
      Lars Hamann authored
      Tue Jan 19 00:02:10 1999  Lars Hamann  <lars@gtk.org>
      
      	* gtk/gtkctree.c (gtk_ctree_node_set_row_data_full):
      	add a sanity check [from Todd Dukes <todddukes@netscape.net>]
      abb7ed1c
    • Lars Hamann's avatar
      only call grab_add if pointer_grab succeeds. (gtk_clist_unmap): remove · 28df7201
      Lars Hamann authored
      Mon Jan 18 22:54:11 1999  Lars Hamann  <lars@gtk.org>
      
      	* gtk/gtkclist.c (gtk_clist_button_press): only call grab_add
      	if pointer_grab succeeds.
      	(gtk_clist_unmap): remove pointer/widget grabs if needed.
      28df7201
    • Owen Taylor's avatar
      Initialize label->label_wc. (We allocate labels from a memchunk) · 03f25c7a
      Owen Taylor authored
      Mon Jan 18 15:46:14 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtklabel.c (gtk_label_init): Initialize
      	label->label_wc. (We allocate labels from
      	a memchunk)
      03f25c7a
    • Tim Janik's avatar
      CLAMP digits into a meaningfull range (we need to stay below a certain · 4ee10fde
      Tim Janik authored
      Mon Jan 18 18:53:08 1999  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkscale.c (gtk_scale_set_digits): CLAMP digits into a
              meaningfull range (we need to stay below a certain limit anyways
              to avoid string buffer overflows).
      
              * gtk/gtkvscale.c (gtk_vscale_pos_background): fixed up background
              area calculations for GTK_POS_RIGHT and GTK_POS_BOTTOM.
              * gtk/gtkhscale.c (gtk_hscale_pos_background): likewise.
              (gtk_hscale_draw_value): safety CLAMP the value's x position for
              GTK_POS_TOP and GTK_POS_BOTTOM, so we don't paint strings outside of
              our allocation.
      
              * gtk/gtkscale.c: implemented GtkScale::digits, GtkScale::draw_value
              and GtkScale::value_pos arguments.
      4ee10fde
    • Owen Taylor's avatar
      Some editing, a little more detail. · 7709c1d1
      Owen Taylor authored
      Mon Jan 18 14:26:17 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* docs/Changes-1.2.txt: Some editing, a little more
      	detail.
      7709c1d1
    • Owen Taylor's avatar
      Added gtk_menu_set_title() to set the title of a menu in the torn-off · e260fd6a
      Owen Taylor authored
      Mon Jan 18 13:25:14 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkmenu.[ch]: Added gtk_menu_set_title() to
      	set the title of a menu in the torn-off state.
      
      	* gtk/gtkthemes.c (gtk_theme_engine_get): When loading
      	of theme engine fails, just warn and do without -
      	don't error out.
      
      	* gtk/gtkmain.c (gtk_check_version): s/to/too/.
      e260fd6a
    • Lars Hamann's avatar
      fixed auto resize bug. · 45513826
      Lars Hamann authored
      Mon Jan 18 01:21:03 1999  Lars Hamann  <lars@gtk.org>
      
      	* gtk/gtkctree.c (draw_row): fixed auto resize bug.
      45513826
    • CST 1999 Shawn T. Amundson's avatar
      Released GTK+ 1.1.13 · d225ffbc
      CST 1999 Shawn T. Amundson authored
      Sun Jan 17 17:35:28 CST 1999 Shawn T. Amundson <amundson@gtk.org>
      
              * Released GTK+ 1.1.13
      
              * README:
                INSTALL:
                docs/gtk-config.1: ver=1.1.13
      d225ffbc
  3. 17 Jan, 1999 11 commits
    • Lars Hamann's avatar
      block drag source signal handler during column resizes. · c9a2b791
      Lars Hamann authored
      Mon Jan 18 00:22:54 1999  Lars Hamann  <lars@gtk.org>
      
      	* gtk/gtkclist.c (gtk_clist_button_press) (gtk_clist_button_release):
      	block drag source signal handler during column resizes.
      	(gtk_clist_set_column_visibility): resize clist if needed.
      	(gtk_clist_map): raise resize windows to make resize
       	cursor visible again.
      c9a2b791
    • Tim Janik's avatar
      removed deprecated functions: gtk_clist_set_border, · e65030aa
      Tim Janik authored
      Sun Jan 17 22:47:15 1999  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkwidget.[hc]:
              * gtk/gtkspinbutton.[hc]:
              * gtk/gtkscrolledwindow.[hc]:
              * gtk/gtkprogressbar.[hc]:
              * gtk/gtkpreview.[hc]:
              * gtk/gtkobject.[hc]:
              * gtk/gtkentry.[hc]:
              * gtk/gtkctree.[hc]:
              * gtk/gtkcontainer.[hc]:
              * gtk/gtkclist.[hc]:
              removed deprecated functions: gtk_clist_set_border,
              gtk_container_block_resize, gtk_container_unblock_resize,
              gtk_container_need_resize, gtk_ctree_set_reorderable,
              gtk_ctree_show_stub, gtk_ctree_set_use_drag_icons,
              gtk_entry_adjust_scroll, gtk_object_class_add_user_signal,
              gtk_preview_put_row, gtk_progress_bar_construct,
              gtk_scrolled_window_construct, gtk_spin_button_construct,
              gtk_widget_freeze_accelerators, gtk_widget_thaw_accelerators.
      
              * gtk/gtkcheckmenuitem.c: removed binary variant of
              gtk_check_menu_item_set_state, this is still defined in gtkcompat.h
              though.
      
              * docs/Changes-1.2.txt:
              removed section about gtk_idle_remove_by_data vs.
              gtk_timeout_remove_by_data, we actually don't even provide a
              gtk_timeout_remove_by_data() function.
              added a table with removed functions and their replacements.
      
              * NEWS: updates for 1.1.13.
      e65030aa
    • Owen Taylor's avatar
      Patch from Felix Bellaby <felix@pooh.u-net.com> · 1adaa231
      Owen Taylor authored
      Sun Jan 17 17:56:33 1999  Owen Taylor  <otaylor@redhat.com>
      
      	Patch from Felix Bellaby <felix@pooh.u-net.com>
      
      	* gdk/gdk.c: Use XmbSetWMProperties to set
      	the class/command on the loader window so that the
      	client machine is also set in the same place.
      	(For X11R5 sesssion management compatibility)
      
      	* gdk/gdk.c: (gdk_set_sm_client_id) Implementation
      	of function to set the session manager client ID.
      
      	* gdk/gdkwindow.c (gdk_window_new): Set
      	WM_CLIENT_LEADER propertiy on all windows pointing
      	back to GDK's leader window.
      1adaa231
    • Owen Taylor's avatar
      Allow a bg_pixmap of "<none>", as there was no way to set the background · 2aca4b0a
      Owen Taylor authored
      Sun Jan 17 12:01:57 1999  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtkrc.c (gtk_rc_style_init): Allow a bg_pixmap
      	of "<none>", as there was no way to set the background
      	on all widget but some widgets. This is important
      	because Text widgets with background images are
      	slow and possibly ugly.
      2aca4b0a
    • Nat Friedman's avatar
      New macro. Changed the spacing from 5 to 3. · 377579c2
      Nat Friedman authored
      1999-01-17  Nat Friedman  <nat@nat.org>
      
      	* gtk/gtkscrolledwindow.c (DEFAULT_SCROLLBAR_SPACING): New macro.
        	Changed the spacing from 5 to 3.
      
      	* gtk/gtkmenubar.c (BORDER_SPACING): Changed the extra spacing on
       	the menubar from 2 to 0.
      377579c2
    • Christopher Blizzard's avatar
      s/1.1.3/1.1.13/ · 01457a02
      Christopher Blizzard authored
      01457a02
    • Owen Taylor's avatar
      Fix typo [ gtk-mailund-990116-0: Thomas Mailund Jensen · 529bd529
      Owen Taylor authored
      Sun Jan 17 11:51:17 1999  Owen Taylor  <otaylor@gtk.org>
      
      	* gtk/gtktext.c (gtk_text_move_cursor): Fix typo
      	[ gtk-mailund-990116-0: Thomas Mailund Jensen <mailund@daimi.au.dk> ]
      529bd529
    • Christopher Blizzard's avatar
      Update to version 1.1.3, change packager address. · 3aba370d
      Christopher Blizzard authored
      Sun Jan 17 11:15:05 1999 Christopher Blizzard  <blizzard@appliedtheory.com>
      
              * gtk+.spec: Update to version 1.1.3, change packager address.
      3aba370d
    • Tim Janik's avatar
      deprecated gtk_check_menu_item_set_state, people should use · 65ef4957
      Tim Janik authored
      Sun Jan 17 14:52:29 1999  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkcompat.h:
              * gtk/gtkcheckmenuitem.[hc]:
              deprecated gtk_check_menu_item_set_state, people should use
              gtk_check_menu_item_set_active instead.
      
              * gtk/testgtk.c:
               s/gtk_check_menu_item_set_state/gtk_check_menu_item_set_active/.
      65ef4957
    • Tim Janik's avatar
      incremented version number to 1.1.13, bin age 0, interface age 0. · 9c5dfcd3
      Tim Janik authored
      Sun Jan 17 05:19:14 1999  Tim Janik  <timj@gtk.org>
      
              * configure.in: incremented version number to 1.1.13, bin age 0,
              interface age 0.
      
              * gtk/gtkmain.c (gtk_idle_remove_by_data): use g_idle_remove_by_data to
              remove idles, so `data' cannot conflict with other sources.
      
              * gtk/gtkcompat.h: define gtk_style_apply_default_pixmap here.
      
              * gtk/gtkstyle.[hc]: removed gtk_style_apply_default_pixmap.
              (struct _GtkStyle): reordered GtkStyleClass*klass; member.
      9c5dfcd3
    • Jiri (George) Lebl's avatar
      for NO_WINDOW widgets, add their allocation.y to the position of the · 2daaea2f
      Jiri (George) Lebl authored
      Sat Jan 16 19:42:48 1999  George Lebl  <jirka@5z.com>
      
              * gtk/gtktooltips.c: for NO_WINDOW widgets, add their allocation.y
                to the position of the tooltip. This fixes tooltip positioning
                problems with some widgets such as a checkbox.
      2daaea2f
  4. 16 Jan, 1999 2 commits
    • Stuart Parmenter's avatar
      check for child widget being NULL · 1eb7f736
      Stuart Parmenter authored
      Sat Jan 16 14:01:53 1999  Stuart Parmenter <pavlov@gtk.org>
      
      	* gtk/gtklayout.c (gtk_layout_put): check for child widget being NULL
      1eb7f736
    • Lars Hamann's avatar
      fixed double click bug. · 5c7acbbf
      Lars Hamann authored
      Sat Jan 16 05:02:22 1999  Lars Hamann  <lars@gtk.org>
      
      	* gtk/gtkclist.c (gtk_clist_button_press): fixed double click bug.
      5c7acbbf
  5. 15 Jan, 1999 2 commits
    • Tim Janik's avatar
      define GTK_DISABLE_COMPAT_H for compilation of gtk code. · 87620764
      Tim Janik authored
      Fri Jan 15 19:16:42 1999  Tim Janik  <timj@gtk.org>
      
              * gtk/Makefile.am: define GTK_DISABLE_COMPAT_H for compilation of gtk
              code.
      
              * gtk/gtkrc.c (gtk_rc_style_unref): added an assertment.
      
              * gtk/gtkcompat.h:
              * gtk/gtklabel.h:
              don't provide compatibility defines if GTK_DISABLE_COMPAT_H is defined.
      
              * gtk/gtkstyle.h:
              * gtk/gtkstyle.c: coding style, indentation and alignment fixups.
              (gtk_draw_string):
              (gtk_paint_string):
              (gtk_draw_polygon):
              (gtk_style_set_background): fixed assertments.
              (gtk_default_draw_ramp):
              (gtk_default_draw_cross):
              (gtk_default_draw_oval): issue warnings since these functions aren't
              yet implemented.
      
              * gdk/gdkwindow.c:
              (gdk_window_hide): only unmap window if already mapped.
              (gdk_window_show): only map window if !mapped.
              (gdk_window_internal_destroy): destroyed windows can't be mapped.
      
              * gtk/gtkwidget.c (gtk_widget_event): don't ignore expose events just
              because a resize is queued on a widget, we rely on the expose events
              now.
      87620764
    • Owen Taylor's avatar
      nparams for selection_get should be 3, not 2. [ From Damon Chaplin · 2e99e771
      Owen Taylor authored
      Fri Jan 15 10:22:21 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkwidget.c (gtk_widget_class_init):
      	nparams for selection_get should be 3, not 2.
      	[ From Damon Chaplin <damon@karuna.freeserve.co.uk> ]
      
      	* gtk/gtkeventbox.c (gtk_event_box_paint): Add a paint
      	routine so queued redraws work inside event boxes.
      
      Thu Jan 14 17:47:37 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): Only
       	 redraw character under cursor when not displaying
      	highlighted selection.
      
      	* gdk/gdkrgb.c (gdk_rgb_init): Add in a cast to
      	gpointer to make IRIX cc happy.
      
      Thu Jan 14 12:29:50 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkcheckbutton.c (gtk_check_button_draw): Restructure
      	the drawing code to remove a bit of duplication -
      	and to remove a call to gtk_widget_draw_focus()
      	that queues a redraw when an expose occurs.
      
      	* gtk/gtklabel.c (gtk_label_expose): Fix up handling
      	  of ypadding.
      
      	* gtk/gtknotebook.c (gtk_notebook_draw): If we redraw
      	  the whole widget, also redraw the corresponding
      	  areas of the child widget. (have_visible_child
      	  still has some problems)
      
      	* gdk/gdkpixmap.c: Change some g_new's to g_new0 so
      	  that fields unused for pixmaps get initialzized
      	  sanely.
      
              * gdk/gdk.h gdk/gdkwindow.c gdk/gdkprivate.h: Add new calls
      	  gdk_window_is_visible() and gdk_window_is_viewable()
      	  and a mapped flag to the window private structure.
      
              * gtk/gtkbin.c gtk/gtkclist.c gtk/gtkfixed.c gtk/gtkitem.c
      	  gtk/gtklayout.c gtk/gtklist.c gtk/gtkmenushell.c
      	  gtk/gtknotebook.c gtk/gtkpaned.c gtk/gtktree.c
      	  gtk/gtktreeitem.c gtk/gtkviewport.c:
      	Map windows after mapping children.
      
      	* gtk/gtkwidget.c (gtk_widget_clip_rect): Handle
      	rectangles completely clipped away correctly.
      
      	* gtk/gtkwidget.c (gtk_widget_idle_draw): Don't
      	call gtk_widget_draw if width or height is 0.
      
      	* gtk/gtkwidget.c (gtk_widget_idle_draw): Don't
      	rely on GTK_REDRAW_PENDING after we've cleared
      	it. (This was causing draw-combining to not
      	happen at all).
      
      	* gtk/gtkbin.c gtk/gtkscale.c: Remove uneccessary calls
      	to gtk_widget_queue_draw() when mapping.
      2e99e771
  6. 14 Jan, 1999 2 commits
    • Owen Taylor's avatar
      gtk/gtkbutton.c gtk/gtkclist.c gtk/gtkhandlebox.c gtk/gtkframe.c · 467e0fcb
      Owen Taylor authored
      Wed Jan 13 22:34:29 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkbutton.c gtk/gtkclist.c gtk/gtkhandlebox.c
      	gtk/gtkframe.c gtk/gtk[hv]box.c gtk[hv]paned.c gtk/gtklist.c
      	gtkmenu.c gtkmenuitem.c gtkmenubar.c gtknotebook.c
      	gtk/gtkscrolledwindow.c gtk/gtktable.c gtk/gtktree.c
      	gtk/gtktreeeitem.c gtk/gtkviewport.c
      
      	Fix up comparisons of signed and unsigned ints to avoid
      	assigning negative widths/heigths.
      467e0fcb
    • Owen Taylor's avatar
      Unset CATOBJEXT so that the macros and Makefiles correctly handle · c8ae0b92
      Owen Taylor authored
      Wed Jan 13 21:18:41 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* acinclude.m4 (ac_result): Unset CATOBJEXT so
      	that the macros and Makefiles correctly handle
      	disabling NLS when no gettext is found.
      c8ae0b92
  7. 13 Jan, 1999 3 commits
    • Tim Janik's avatar
      in comparisions with GTK_TYPE_STRING, use the fundamental type to catch · 52a44144
      Tim Janik authored
      Wed Jan 13 20:14:32 1999  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkarg.c (gtk_arg_copy): in comparisions with GTK_TYPE_STRING, use
              the fundamental type to catch GTK_TYPE_IDENTIFIER as well.
      
              * gtk/gtkmenushell.c:
              (gtk_real_menu_shell_activate_current):
              (gtk_menu_shell_button_release): asure that we only activate sensitive
              menu items, reported by Dave Cole <dave@dccs.com.au>.
      52a44144
    • Tim Janik's avatar
      eliminate queue_clears or queue_draws where we know that expose events · 55b365d7
      Tim Janik authored
      Wed Jan 13 13:28:00 1999  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkwidget.c: eliminate queue_clears or queue_draws where we know
              that expose events will be generated.
              (gtk_widget_map): only queue_draw for NO_WINDOW widgets.
              (gtk_widget_unmap): only queue_clear_child for NO_WINDOW widgets.
              (gtk_widget_size_allocate): we don't need a queue_clear on changing
              allocations of !NO_WINDOW widgets, we do still need a full redraw for
              them though.
      
              * gtk/gtklabel.c (gtk_label_set_text): check whether the new string
              actually differs from the original.
      55b365d7
    • Manish Singh's avatar
      acinclude.m4 ltconfig upgrade to libtool 1.2d (with fixes for irix6 and · 67909053
      Manish Singh authored
      * acinclude.m4
      * ltconfig
      * ltmain.sh: upgrade to libtool 1.2d (with fixes for irix6 and osf)
      
      -Yosh
      67909053
  8. 12 Jan, 1999 3 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
    • 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
  9. 11 Jan, 1999 5 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