[gcalctool] Compile with -DGSEAL_ENABLE



commit c93d7f52c8b129a76fe79a537adbf8a97866984c
Author: Robert Ancell <robert ancell gmail com>
Date:   Fri Apr 16 17:18:42 2010 -0700

    Compile with -DGSEAL_ENABLE

 src/math-buttons.c  |    6 ++++--
 src/math-equation.c |    1 +
 2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/math-buttons.c b/src/math-buttons.c
index 7684b2f..db9c880 100644
--- a/src/math-buttons.c
+++ b/src/math-buttons.c
@@ -789,13 +789,15 @@ button_menu_position_func(GtkMenu *menu, gint *x, gint *y,
                           gboolean *push_in, gpointer user_data)
 {
     GtkWidget *button = user_data;
+    GtkAllocation allocation;
     GdkPoint loc;
     gint border;
   
     gdk_window_get_origin(gtk_widget_get_window(button), &loc.x, &loc.y);
     border = gtk_container_get_border_width(GTK_CONTAINER(button));
-    *x = loc.x + button->allocation.x + border;
-    *y = loc.y + button->allocation.y + border;
+    gtk_widget_get_allocation(button, &allocation);
+    *x = loc.x + allocation.x + border;
+    *y = loc.y + allocation.y + border;
 }
 
 
diff --git a/src/math-equation.c b/src/math-equation.c
index 7619afd..416cf81 100644
--- a/src/math-equation.c
+++ b/src/math-equation.c
@@ -25,6 +25,7 @@
 #include <errno.h>
 #include <glib.h>
 #include <langinfo.h>
+#include <locale.h>
 
 #include "math-equation.h"
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]