[dia] [gtk-deprecated] Use gtk_widget_get_parent()
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] [gtk-deprecated] Use gtk_widget_get_parent()
- Date: Sun, 19 Aug 2012 17:37:41 +0000 (UTC)
commit 6251528e30bf0b0f2f613654c48e2fbb9971c006
Author: Hans Breuer <hans breuer org>
Date: Tue Jul 31 15:57:47 2012 +0200
[gtk-deprecated] Use gtk_widget_get_parent()
app/display.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/display.c b/app/display.c
index 513c83e..bc170b3 100644
--- a/app/display.c
+++ b/app/display.c
@@ -1528,7 +1528,7 @@ void display_rulers_show (DDisplay *ddisp)
{
if (ddisp)
{
- GtkWidget *parent = GTK_WIDGET (ddisp->origin->parent);
+ GtkWidget *parent = gtk_widget_get_parent (GTK_WIDGET (ddisp->origin));
gtk_widget_show (ddisp->origin);
gtk_widget_show (ddisp->hrule);
@@ -1556,7 +1556,7 @@ void display_rulers_hide (DDisplay *ddisp)
{
if (ddisp)
{
- GtkWidget *parent = GTK_WIDGET (ddisp->origin->parent);
+ GtkWidget *parent = gtk_widget_get_parent (GTK_WIDGET (ddisp->origin));
gtk_widget_hide (ddisp->origin);
gtk_widget_hide (ddisp->hrule);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]