[10498] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] RE: GtkCList freeze/thaw methods.

daemon@ATHENA.MIT.EDU (Tim Janik)
Fri Nov 27 21:03:15 1998

From: Tim Janik <timj@gtk.org>
Date: Sat, 28 Nov 1998 03:02:00 +0100 (CET)
To: Gtk+ Developers <gtk-devel-list@redhat.com>
cc: Gtk+ MList <gtk-list@redhat.com>
In-Reply-To: <199811271611.RAA00951%timj@gtk.org>
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com


hi all,

i've just commited the neccessary bits for incremental
freezing abilities for the following functions:

g_hash_table_freeze/g_hash_table_thaw
gtk_calendar_freeze/gtk_calendar_thaw
gtk_layout_freeze/gtk_layout_thaw
gtk_text_freeze/gtk_text_thaw
gtk_clist_freeze/gtk_clist_thaw

the changes to clist can produce minor source incompatibilities,
code portions like:

  gboolean frozen;

  frozen = GTK_CLIST_FROZEN (clist);
  gtk_clist_freeze (clist);
  [...]
  if (!frozen)
    gtk_clist_thaw (clist);

will not work anymore, they have to be modified to simply:

  gtk_clist_freeze (clist);
  [...]
  gtk_clist_thaw (clist);

also, since widget accelerators do not provide true freezing
abilities, gtk_widget_freeze_accelerators and gtk_widget_thaw_accelerators
are now deprecated. the corresponding replacement functions are
gtk_widget_lock_accelerators and gtk_widget_unlock_accelerators.

---
ciaoTJ

-- 
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post