[gtk+] fontchooser: Family or face can never be NULL
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] fontchooser: Family or face can never be NULL
- Date: Mon, 19 Sep 2011 20:14:43 +0000 (UTC)
commit a5f516c8186bdf128d7f34c1681f3eb49d7f490e
Author: Benjamin Otte <otte redhat com>
Date: Fri Sep 16 10:26:55 2011 +0200
fontchooser: Family or face can never be NULL
... so there's no need to special-case those situations.
gtk/gtkfontchooserwidget.c | 10 ----------
1 files changed, 0 insertions(+), 10 deletions(-)
---
diff --git a/gtk/gtkfontchooserwidget.c b/gtk/gtkfontchooserwidget.c
index 71475f9..1b391b5 100644
--- a/gtk/gtkfontchooserwidget.c
+++ b/gtk/gtkfontchooserwidget.c
@@ -444,16 +444,6 @@ cursor_changed_cb (GtkTreeView *treeview,
gtk_tree_path_free (path);
path = NULL;
- if (face == NULL || family == NULL)
- {
- if (face)
- g_object_unref (face);
- if (family)
- g_object_unref (family);
-
- return;
- }
-
desc = pango_font_face_describe (face);
pango_font_description_set_size (desc, priv->size);
gtk_widget_override_font (priv->preview, desc);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]