]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtkactivatable.h
Revert "box: Don't special-case RTL hbox child positions anymore"
[~andy/gtk] / gtk / gtkactivatable.h
index 75478899edb9ae0ae57ccb37b32e41b4f9b327eb..4ff90f8e12547a53877e6f756c42758745ad1239 100644 (file)
  * Library General Public License for more details.
  *
  * You should have received a copy of the GNU Library General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
-#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
-#error "Only <gtk/gtk.h> can be included directly."
-#endif
-
 #ifndef __GTK_ACTIVATABLE_H__
 #define __GTK_ACTIVATABLE_H__
 
+#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
+#error "Only <gtk/gtk.h> can be included directly."
+#endif
+
 #include <gtk/gtkaction.h>
-#include <gtk/gtktypeutils.h>
 
 G_BEGIN_DECLS
 
@@ -45,9 +42,9 @@ typedef struct _GtkActivatableIface GtkActivatableIface;
  * @update: Called to update the activatable when its related action's properties change.
  * You must check the #GtkActivatable:use-action-appearance property only apply action
  * properties that are meant to effect the appearance accordingly.
- * @reset: Called to update the activatable completely, this is called internally when 
- * #GtkActivatable::related-action property is set or unset and by the implementor when 
- * #GtkActivatable::use-action-appearance changes.<note><para>This method can be called
+ * @sync_action_properties: Called to update the activatable completely, this is called internally when
+ * #GtkActivatable:related-action property is set or unset and by the implementor when
+ * #GtkActivatable:use-action-appearance changes.<note><para>This method can be called
  * with a %NULL action at times</para></note>
  *
  * Since: 2.16
@@ -58,17 +55,17 @@ struct _GtkActivatableIface
   GTypeInterface g_iface;
 
   /* virtual table */
-  void   (* update)  (GtkActivatable *activatable, 
-                     GtkAction      *action, 
-                     const gchar    *property_name);
-  void   (* reset)   (GtkActivatable *activatable, 
-                     GtkAction      *action);
+  void   (* update)                   (GtkActivatable *activatable,
+                                      GtkAction      *action,
+                                      const gchar    *property_name);
+  void   (* sync_action_properties)   (GtkActivatable *activatable,
+                                      GtkAction      *action);
 };
 
 
 GType      gtk_activatable_get_type                   (void) G_GNUC_CONST;
 
-void       gtk_activatable_reset                      (GtkActivatable *activatable,
+void       gtk_activatable_sync_action_properties     (GtkActivatable *activatable,
                                                       GtkAction      *action);
 
 void       gtk_activatable_set_related_action         (GtkActivatable *activatable,