sokoke_widget_copy_clipboard must be NULL-safe

This commit is contained in:
Christian Dywan 2011-10-26 19:51:05 +02:00
parent 4b33fd2c7d
commit 3b2d95c0e4

View file

@ -1879,9 +1879,9 @@ sokoke_widget_copy_clipboard (GtkWidget* widget,
GtkClipboard* clipboard;
clipboard = gtk_clipboard_get_for_display (display, GDK_SELECTION_CLIPBOARD);
gtk_clipboard_set_text (clipboard, text, -1);
gtk_clipboard_set_text (clipboard, text ? text : "", -1);
clipboard = gtk_clipboard_get_for_display (display, GDK_SELECTION_PRIMARY);
gtk_clipboard_set_text (clipboard, text, -1);
gtk_clipboard_set_text (clipboard, text ? text : "", -1);
}
gchar*