Commit 5efcd1a6 authored by Alexander Larsson's avatar Alexander Larsson Committed by Alexander Larsson

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.
parent fe145d15
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):
......
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):
......
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):
......
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):
......
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):
......
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):
......
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):
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment