Set the cell renderer to inert mode to avoid bug #154921. This fixes a
* gtk/gtkfilechooserdefault.c (renderer_edited_cb): Set the cell renderer to inert mode to avoid bug #154921. This fixes a crash which would otherwise occur if the editing is stopped for the second time. (#154767, Manuel Baena García)
This commit is contained in:
parent
eabb63be3b
commit
356c249aab
@ -1,5 +1,10 @@
|
|||||||
2004-10-08 Matthias Clasen <mclasen@redhat.com>
|
2004-10-08 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkfilechooserdefault.c (renderer_edited_cb): Set the cell
|
||||||
|
renderer to inert mode to avoid bug #154921. This fixes a crash
|
||||||
|
which would otherwise occur if the editing is stopped for the second
|
||||||
|
time. (#154767, Manuel Baena García)
|
||||||
|
|
||||||
* gtk/gtkdebug.h:
|
* gtk/gtkdebug.h:
|
||||||
* gtk/gtkwidget.c (gtk_widget_size_allocate): Add a new debug
|
* gtk/gtkwidget.c (gtk_widget_size_allocate): Add a new debug
|
||||||
flag, geometry, to debug size allocation.
|
flag, geometry, to debug size allocation.
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
2004-10-08 Matthias Clasen <mclasen@redhat.com>
|
2004-10-08 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkfilechooserdefault.c (renderer_edited_cb): Set the cell
|
||||||
|
renderer to inert mode to avoid bug #154921. This fixes a crash
|
||||||
|
which would otherwise occur if the editing is stopped for the second
|
||||||
|
time. (#154767, Manuel Baena García)
|
||||||
|
|
||||||
* gtk/gtkdebug.h:
|
* gtk/gtkdebug.h:
|
||||||
* gtk/gtkwidget.c (gtk_widget_size_allocate): Add a new debug
|
* gtk/gtkwidget.c (gtk_widget_size_allocate): Add a new debug
|
||||||
flag, geometry, to debug size allocation.
|
flag, geometry, to debug size allocation.
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
2004-10-08 Matthias Clasen <mclasen@redhat.com>
|
2004-10-08 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkfilechooserdefault.c (renderer_edited_cb): Set the cell
|
||||||
|
renderer to inert mode to avoid bug #154921. This fixes a crash
|
||||||
|
which would otherwise occur if the editing is stopped for the second
|
||||||
|
time. (#154767, Manuel Baena García)
|
||||||
|
|
||||||
* gtk/gtkdebug.h:
|
* gtk/gtkdebug.h:
|
||||||
* gtk/gtkwidget.c (gtk_widget_size_allocate): Add a new debug
|
* gtk/gtkwidget.c (gtk_widget_size_allocate): Add a new debug
|
||||||
flag, geometry, to debug size allocation.
|
flag, geometry, to debug size allocation.
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
2004-10-08 Matthias Clasen <mclasen@redhat.com>
|
2004-10-08 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkfilechooserdefault.c (renderer_edited_cb): Set the cell
|
||||||
|
renderer to inert mode to avoid bug #154921. This fixes a crash
|
||||||
|
which would otherwise occur if the editing is stopped for the second
|
||||||
|
time. (#154767, Manuel Baena García)
|
||||||
|
|
||||||
* gtk/gtkdebug.h:
|
* gtk/gtkdebug.h:
|
||||||
* gtk/gtkwidget.c (gtk_widget_size_allocate): Add a new debug
|
* gtk/gtkwidget.c (gtk_widget_size_allocate): Add a new debug
|
||||||
flag, geometry, to debug size allocation.
|
flag, geometry, to debug size allocation.
|
||||||
|
@ -1627,6 +1627,9 @@ renderer_edited_cb (GtkCellRendererText *cell_renderer_text,
|
|||||||
const gchar *new_text,
|
const gchar *new_text,
|
||||||
GtkFileChooserDefault *impl)
|
GtkFileChooserDefault *impl)
|
||||||
{
|
{
|
||||||
|
/* work around bug #154921 */
|
||||||
|
g_object_set (cell_renderer_text,
|
||||||
|
"mode", GTK_CELL_RENDERER_MODE_INERT, NULL);
|
||||||
queue_edited_idle (impl, new_text);
|
queue_edited_idle (impl, new_text);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1637,6 +1640,9 @@ static void
|
|||||||
renderer_editing_canceled_cb (GtkCellRendererText *cell_renderer_text,
|
renderer_editing_canceled_cb (GtkCellRendererText *cell_renderer_text,
|
||||||
GtkFileChooserDefault *impl)
|
GtkFileChooserDefault *impl)
|
||||||
{
|
{
|
||||||
|
/* work around bug #154921 */
|
||||||
|
g_object_set (cell_renderer_text,
|
||||||
|
"mode", GTK_CELL_RENDERER_MODE_INERT, NULL);
|
||||||
queue_edited_idle (impl, NULL);
|
queue_edited_idle (impl, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user