[emerillon] Convert remaining functions to accessors
- From: Łukasz Jernaś <ljernas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [emerillon] Convert remaining functions to accessors
- Date: Tue, 20 Apr 2010 20:27:29 +0000 (UTC)
commit 9a2f7c13bbbb4174842c2d9fd4a2e59fe96ebbd4
Author: Å?ukasz JernaÅ? <deejay1 srem org>
Date: Wed Apr 14 11:33:03 2010 +0200
Convert remaining functions to accessors
Closes #615725.
emerillon/sidebar.c | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/emerillon/sidebar.c b/emerillon/sidebar.c
index e6b0a46..a7b0e32 100644
--- a/emerillon/sidebar.c
+++ b/emerillon/sidebar.c
@@ -243,10 +243,12 @@ emerillon_sidebar_menu_position_under (GtkMenu *menu,
widget = GTK_WIDGET (user_data);
- gdk_window_get_origin (widget->window, x, y);
+ gdk_window_get_origin (gtk_widget_get_window (widget), x, y);
- *x += widget->allocation.x;
- *y += widget->allocation.y + widget->allocation.height;
+ GtkAllocation allocation;
+ gtk_widget_get_allocation (widget, &allocation);
+ *x += allocation.x;
+ *y += allocation.y + allocation.height;
*push_in = FALSE;
}
@@ -263,7 +265,9 @@ emerillon_sidebar_select_button_press_cb (GtkWidget *widget,
GtkRequisition requisition;
gint width;
- width = widget->allocation.width;
+ GtkAllocation allocation;
+ gtk_widget_get_allocation (widget, &allocation);
+ width = allocation.width;
gtk_widget_set_size_request (sidebar->priv->menu, -1, -1);
gtk_widget_size_request (sidebar->priv->menu, &requisition);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]