[brasero] Fix to build against GTK+ 3
- From: Philippe Rouquier <philippr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [brasero] Fix to build against GTK+ 3
- Date: Mon, 6 Dec 2010 17:39:23 +0000 (UTC)
commit 0ff759dfbea13cc10bf1671eb4b5f0d378ec927e
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date: Mon Dec 6 18:37:08 2010 +0100
Fix to build against GTK+ 3
libbrasero-utils/brasero-jacket-edit.c | 11 +----------
libbrasero-utils/brasero-jacket-view.c | 2 +-
2 files changed, 2 insertions(+), 11 deletions(-)
---
diff --git a/libbrasero-utils/brasero-jacket-edit.c b/libbrasero-utils/brasero-jacket-edit.c
index 52a66a0..5ba36db 100644
--- a/libbrasero-utils/brasero-jacket-edit.c
+++ b/libbrasero-utils/brasero-jacket-edit.c
@@ -574,7 +574,6 @@ brasero_jacket_edit_init (BraseroJacketEdit *object)
GtkWidget *vbox;
GtkWidget *item;
GtkWidget *view;
- GtkStyle *style;
priv = BRASERO_JACKET_EDIT_PRIVATE (object);
@@ -752,15 +751,7 @@ brasero_jacket_edit_init (BraseroJacketEdit *object)
gtk_box_pack_start (GTK_BOX (main_box), view, FALSE, FALSE, 0);
- style = gtk_widget_get_style (priv->front);
- if (pango_font_description_get_set_fields (style->font_desc) & PANGO_FONT_MASK_SIZE) {
- guint size;
- gchar string [8] = { 0, };
-
- size = pango_font_description_get_size (style->font_desc);
- sprintf (string, "%i", size);
- brasero_jacket_font_set_name (BRASERO_JACKET_FONT (priv->fonts), "Sans 12");
- }
+ brasero_jacket_font_set_name (BRASERO_JACKET_FONT (priv->fonts), "Sans 12");
}
void
diff --git a/libbrasero-utils/brasero-jacket-view.c b/libbrasero-utils/brasero-jacket-view.c
index 35de456..7642110 100644
--- a/libbrasero-utils/brasero-jacket-view.c
+++ b/libbrasero-utils/brasero-jacket-view.c
@@ -1466,7 +1466,7 @@ brasero_jacket_view_init (BraseroJacketView *object)
priv->edit = gtk_text_view_new_with_buffer (buffer);
g_object_unref (buffer);
- priv->b_color = gtk_widget_get_style (priv->edit)->bg [0];
+ gdk_color_parse ("white", &priv->b_color);
priv->color_style = BRASERO_JACKET_COLOR_SOLID;
gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (priv->edit), GTK_WRAP_CHAR);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]