r2280 - trunk/src/target/OM-2007/openmoko-libs/libmokoui

mickey at sita.openmoko.org mickey at sita.openmoko.org
Sat Jun 16 17:15:39 CEST 2007


Author: mickey
Date: 2007-06-16 17:15:34 +0200 (Sat, 16 Jun 2007)
New Revision: 2280

Modified:
   trunk/src/target/OM-2007/openmoko-libs/libmokoui/moko-scrolled-pane.c
   trunk/src/target/OM-2007/openmoko-libs/libmokoui/moko-scrolled-pane.h
Log:
libmokoui/moko-scrolled-pane.*: add function for tweaking position of
fullscreen toggle button. NOTE: don't rely on that API yet, it may
vanish again...


Modified: trunk/src/target/OM-2007/openmoko-libs/libmokoui/moko-scrolled-pane.c
===================================================================
--- trunk/src/target/OM-2007/openmoko-libs/libmokoui/moko-scrolled-pane.c	2007-06-16 15:14:32 UTC (rev 2279)
+++ trunk/src/target/OM-2007/openmoko-libs/libmokoui/moko-scrolled-pane.c	2007-06-16 15:15:34 UTC (rev 2280)
@@ -2,7 +2,7 @@
  *
  *  Authored By Michael 'Mickey' Lauer <mlauer at vanille-media.de>
  *
- *  Copyright (C) 2007 Vanille-Media
+ *  Copyright (C) 2007 OpenMoko, Inc.
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU Public License as published by
@@ -191,3 +191,8 @@
   return child;
 }
 
+void moko_scrolled_pane_set_fullscreen_position( MokoScrolledPane* self, gboolean top )
+{
+    MokoScrolledPanePrivate* priv = SCROLLED_PANE_GET_PRIVATE( self );
+    gtk_box_reorder_child( GTK_BOX(priv->vbox), GTK_WIDGET(priv->button), top ? 1: 0 );
+}

Modified: trunk/src/target/OM-2007/openmoko-libs/libmokoui/moko-scrolled-pane.h
===================================================================
--- trunk/src/target/OM-2007/openmoko-libs/libmokoui/moko-scrolled-pane.h	2007-06-16 15:14:32 UTC (rev 2279)
+++ trunk/src/target/OM-2007/openmoko-libs/libmokoui/moko-scrolled-pane.h	2007-06-16 15:15:34 UTC (rev 2280)
@@ -2,7 +2,7 @@
  *
  *  Authored By Michael 'Mickey' Lauer <mlauer at vanille-media.de>
  *
- *  Copyright (C) 2007 Vanille-Media
+ *  Copyright (C) 2007 OpenMoko, Inc.
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU Public License as published by
@@ -47,6 +47,7 @@
 void moko_scrolled_pane_unpack (MokoScrolledPane *pane, GtkWidget *child);
 GtkWidget *moko_scrolled_pane_get_child (MokoScrolledPane *pane);
 void moko_scrolled_pane_pack_with_viewport (MokoScrolledPane *pane, GtkWidget *child);
+void moko_scrolled_pane_set_fullscreen_position( MokoScrolledPane* self, gboolean top );
 
 G_END_DECLS
 





More information about the commitlog mailing list