Queue a redraw if the selectable setting was changed.

2001-02-20  Alexander Larsson  <alexl@redhat.com>

	* gtk/gtklabel.c (gtk_label_set_selectable):
	Queue a redraw if the selectable setting was changed.
This commit is contained in:
Alexander Larsson 2001-02-20 15:36:28 +00:00 committed by Alexander Larsson
parent fe145d152e
commit 5efcd1a640
8 changed files with 41 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2001-02-20 Alexander Larsson <alexl@redhat.com>
* gtk/gtklabel.c (gtk_label_set_selectable):
Queue a redraw if the selectable setting was changed.
2001-02-20 Alexander Larsson <alexl@redhat.com>
* gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):

View File

@ -1,3 +1,8 @@
2001-02-20 Alexander Larsson <alexl@redhat.com>
* gtk/gtklabel.c (gtk_label_set_selectable):
Queue a redraw if the selectable setting was changed.
2001-02-20 Alexander Larsson <alexl@redhat.com>
* gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):

View File

@ -1,3 +1,8 @@
2001-02-20 Alexander Larsson <alexl@redhat.com>
* gtk/gtklabel.c (gtk_label_set_selectable):
Queue a redraw if the selectable setting was changed.
2001-02-20 Alexander Larsson <alexl@redhat.com>
* gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):

View File

@ -1,3 +1,8 @@
2001-02-20 Alexander Larsson <alexl@redhat.com>
* gtk/gtklabel.c (gtk_label_set_selectable):
Queue a redraw if the selectable setting was changed.
2001-02-20 Alexander Larsson <alexl@redhat.com>
* gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):

View File

@ -1,3 +1,8 @@
2001-02-20 Alexander Larsson <alexl@redhat.com>
* gtk/gtklabel.c (gtk_label_set_selectable):
Queue a redraw if the selectable setting was changed.
2001-02-20 Alexander Larsson <alexl@redhat.com>
* gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):

View File

@ -1,3 +1,8 @@
2001-02-20 Alexander Larsson <alexl@redhat.com>
* gtk/gtklabel.c (gtk_label_set_selectable):
Queue a redraw if the selectable setting was changed.
2001-02-20 Alexander Larsson <alexl@redhat.com>
* gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):

View File

@ -1,3 +1,8 @@
2001-02-20 Alexander Larsson <alexl@redhat.com>
* gtk/gtklabel.c (gtk_label_set_selectable):
Queue a redraw if the selectable setting was changed.
2001-02-20 Alexander Larsson <alexl@redhat.com>
* gdk/linux-fb/gdkgc-fb.c (gdk_gc_copy):

View File

@ -1273,10 +1273,13 @@ void
gtk_label_set_selectable (GtkLabel *label,
gboolean setting)
{
gboolean old_setting;
g_return_if_fail (GTK_IS_LABEL (label));
setting = setting != FALSE;
old_setting = label->select_info != NULL;
if (setting)
{
if (label->select_info == NULL)
@ -1306,6 +1309,8 @@ gtk_label_set_selectable (GtkLabel *label,
label->select_info = NULL;
}
}
if (setting != old_setting)
gtk_widget_queue_draw (GTK_WIDGET (label));
}
gboolean