[gitg/gtk3: 15/20] Don't use gtk_cell_renderer_get_size
- From: Garrett Regier <gregier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg/gtk3: 15/20] Don't use gtk_cell_renderer_get_size
- Date: Tue, 8 Feb 2011 16:26:40 +0000 (UTC)
commit 95566b34e13bb7429961f96b923e1d6591a028a7
Author: Garrett Regier <alias301 gmail com>
Date: Sun Jan 2 21:04:07 2011 -0800
Don't use gtk_cell_renderer_get_size
gitg/gitg-utils.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gitg/gitg-utils.c b/gitg/gitg-utils.c
index 9a9a0b9..ad748b0 100644
--- a/gitg/gitg-utils.c
+++ b/gitg/gitg-utils.c
@@ -157,7 +157,7 @@ gitg_utils_set_monospace_font(GtkWidget *widget)
if (description)
{
- gtk_widget_modify_font(widget, description);
+ gtk_widget_override_font(widget, description);
pango_font_description_free(description);
}
}
@@ -370,7 +370,7 @@ gitg_utils_find_cell_at_pos (GtkTreeView *tree_view, GtkTreeViewColumn *column,
continue;
}
- gtk_cell_renderer_get_size (renderer, GTK_WIDGET (tree_view), NULL, NULL, NULL, &width, 0);
+ gtk_cell_renderer_get_preferred_width (renderer, GTK_WIDGET (tree_view), &width, NULL);
if (x >= start && x <= start + width)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]