Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 261494 Details for
Bug 353684
[gnome-overlay] gnome-base/gnome-control-center-2.91.6 fails on 64bit platforms due to QA install check
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
convert update_entry_font() to using gtk3 functions
0001-user-accounts-Update-update_entry_font-to-use-gtk-2..patch (text/plain), 1.94 KB, created by
Michael Lippautz
on 2011-02-04 12:29:47 UTC
(
hide
)
Description:
convert update_entry_font() to using gtk3 functions
Filename:
MIME Type:
Creator:
Michael Lippautz
Created:
2011-02-04 12:29:47 UTC
Size:
1.94 KB
patch
obsolete
>From a6bdb6baf584137c336a5dec851ec916ac8ea56c Mon Sep 17 00:00:00 2001 >From: Michael Lippautz <michael.lippautz@gmail.com> >Date: Fri, 4 Feb 2011 13:02:06 +0100 >Subject: [PATCH] user-accounts: Update ''update_entry_font`` to use gtk 2.99 functions instead of > deprecated ones. > >--- > panels/user-accounts/um-editable-entry.c | 12 +++++++----- > 1 files changed, 7 insertions(+), 5 deletions(-) > >diff --git a/panels/user-accounts/um-editable-entry.c b/panels/user-accounts/um-editable-entry.c >index 2a18323..7e0bd96 100644 >--- a/panels/user-accounts/um-editable-entry.c >+++ b/panels/user-accounts/um-editable-entry.c >@@ -120,8 +120,9 @@ update_entry_font (GtkWidget *widget, > UmEditableEntry *e) > { > UmEditableEntryPrivate *priv = e->priv; >+ const PangoFontDescription *font_desc; > PangoFontDescription *desc; >- GtkStyle *style; >+ GtkStyleContext *style_context; > gint size; > > if (!priv->weight_set && !priv->scale_set) >@@ -129,17 +130,18 @@ update_entry_font (GtkWidget *widget, > > g_signal_handlers_block_by_func (widget, update_entry_font, e); > >- gtk_widget_modify_font (widget, NULL); >+ gtk_widget_override_font (widget, NULL); > >- style = gtk_widget_get_style (widget); >- desc = pango_font_description_copy (style->font_desc); >+ style_context = gtk_widget_get_style_context (widget); >+ font_desc = gtk_style_context_get_font (style_context, 0); >+ desc = pango_font_description_copy (font_desc); > if (priv->weight_set) > pango_font_description_set_weight (desc, priv->weight); > if (priv->scale_set) { > size = pango_font_description_get_size (desc); > pango_font_description_set_size (desc, priv->scale * size); > } >- gtk_widget_modify_font (widget, desc); >+ gtk_widget_override_font (widget, desc); > > pango_font_description_free (desc); > >-- >1.7.3.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 353684
: 261494 |
261496
|
261497