summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4721d34)
raw | patch | inline | side by side (parent: 4721d34)
author | mderezynski <mderezynski@users.sourceforge.net> | |
Sat, 20 May 2006 15:00:06 +0000 (15:00 +0000) | ||
committer | mderezynski <mderezynski@users.sourceforge.net> | |
Sat, 20 May 2006 15:00:06 +0000 (15:00 +0000) |
src/dialogs/text-edit.cpp | patch | blob | history |
index 3d8776b616ec0743521ec364bb73b1605543e467..97f872891d26c2e38a61777de9f84698f78728de 100644 (file)
void
sp_text_edit_dialog_default_set_insensitive ()
{
- GtkWidget *def = GTK_WIDGET (g_object_get_data (G_OBJECT (dlg), "default"));
- gtk_widget_set_sensitive (def, FALSE);
+ gpointer data = g_object_get_data (G_OBJECT (dlg), "default");
+ if (!data) return;
+ gtk_widget_set_sensitive (GTK_WIDGET (data), FALSE);
}
static void