Remove deprecated objects GtkAction and GtkUIManager
[pspp] / src / ui / gui / pspp-widget-facade.c
index 08f6572110d70972a53cbf7e94870cc3997b4aa3..be785dc133c4ca69aa0134a95975b398ff0df5a5 100644 (file)
@@ -1,5 +1,5 @@
 /* PSPPIRE - a graphical user interface for PSPP.
-   Copyright (C) 2011, 2012 Free Software Foundation, Inc.
+   Copyright (C) 2011, 2012, 2014 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -270,9 +270,7 @@ get_layout_location (GtkWidget *base,
   PangoRectangle logical;
   GtkRequisition req;
 
-  if (gtk_widget_get_direction (base) == GTK_TEXT_DIR_LTR)
-    xalign = xalign;
-  else
+  if (gtk_widget_get_direction (base) == GTK_TEXT_DIR_RTL)
     xalign = 1.0 - xalign;
 
   pango_layout_get_pixel_extents (layout, NULL, &logical);
@@ -314,9 +312,7 @@ get_layout_location (GtkWidget *base,
 void
 facade_button_render (GtkWidget *base,
                       cairo_t *cr,
-                      GdkRectangle *expose_area,
-
-                      GdkRectangle *button_area,
+                      const GdkRectangle *button_area,
                       gint border_width,
                       GtkStyle *button_style,
                       GtkStateType state_type,