/**
* SECTION:hildon-app
- * @short_description: A base widget to present application
+ * @short_description: A base widget to present application. Deprecated, use #HildonProgram instead.
* @see_also: #HildonAppView
*
* #HildonApp is the base for any hildon application.
* It controls basic looks and functionality of an application, like a title.
+ *
+ * This widget is deprecated use #HildonProgram instead.
*/
#include <gdk/gdk.h>
HildonAppPrivate *priv;
GdkEvent *event;
- g_assert(GTK_WIDGET_REALIZED(app));
+ GDK_THREADS_ENTER ();
+
+ g_assert(GTK_WIDGET_REALIZED(app));
priv = HILDON_APP_GET_PRIVATE(app);
priv->escape_timeout = 0;
+ GDK_THREADS_LEAVE ();
+
return FALSE;
}
fullscreen = hildon_appview_get_fullscreen(appview);
g_signal_emit_by_name(G_OBJECT(appview),
"fullscreen_state_change",
- fullscreen);
+ !fullscreen);
}
}
if ( keyevent->type == GDK_KEY_PRESS ) {
/* Toggle menu on press, avoid key repeat */
if ( priv->lastmenuclick == 0 ){
- _hildon_appview_toggle_menu(appview,
- gtk_get_current_event_time());
-
priv->lastmenuclick = 1;
+ if (_hildon_appview_toggle_menu(appview,
+ gtk_get_current_event_time()))
+ {
+ return TRUE;
+ }
}
} else if ( keyevent->type == GDK_KEY_RELEASE ) {
/* We got release, so next press is really a new press,
/**
* hildon_app_unregister_view_with_id:
- * @self : a #HildonApp
- * @view_id : the ID of the view that should be unregistered
+ * @self: a #HildonApp
+ * @view_id: the ID of the view that should be unregistered
*
* Unregisters a view with specified ID, if it exists.
*/