others-menu.h

Go to the documentation of this file.
00001 /*
00002  * This file is part of maemo-af-desktop
00003  *
00004  * Copyright (C) 2005 Nokia Corporation.
00005  *
00006  * Contact: Karoliina Salminen <karoliina.t.salminen@nokia.com>
00007  *
00008  * This library is free software; you can redistribute it and/or
00009  * modify it under the terms of the GNU Lesser General Public License
00010  * as published by the Free Software Foundation; either version 2.1 of
00011  * the License, or (at your option) any later version.
00012  *
00013  * This library is distributed in the hope that it will be useful, but
00014  * WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
00016  * Lesser General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU Lesser General Public
00019  * License along with this library; if not, write to the Free Software
00020  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
00021  * 02110-1301 USA
00022  *
00023  */
00024 
00025 
00031 #ifndef OTHERS_MENU_H
00032 #define OTHERS_MENU_H
00033 
00034 #include <gtk/gtkbutton.h>
00035 #include <gtk/gtktreemodel.h>
00036 
00037 /* Button Icon */
00038 #define OTHERS_MENU_ICON_NAME "qgn_grid_tasknavigator_others"
00039 #define OTHERS_MENU_ICON_SIZE 64
00040 
00041 /* Menu icons */
00042 #define MENU_ITEM_DEFAULT_ICON ""
00043 
00044 #define MENU_ITEM_SUBMENU_ICON        "qgn_list_gene_fldr_cls"
00045 #define MENU_ITEM_SUBMENU_ICON_DIMMED "qgn_list_gene_nonreadable_fldr"
00046 #define MENU_ITEM_DEFAULT_APP_ICON    "qgn_list_gene_default_app"
00047 #define MENU_ITEM_ICON_SIZE           26
00048 
00049 #define MENU_ITEM_EMPTY_SUBMENU_STRING _( "tana_li_of_noapps" )
00050 
00051 #define BORDER_WIDTH 7
00052 #define BUTTON_HEIGHT 90
00053 
00054 
00055 #define MENU_Y_POS 180
00056 #define MENU_MAX_WIDTH 360
00057 
00058 #define OM_BUTTON_PRESS_EVENT_COLLAPSE_TIMEOUT 100
00059 
00060 #define WORKAREA_ATOM "_NET_WORKAREA"
00061 #define NAVIGATOR_BUTTON_THREE "hildon-navigator-button-three"
00062 
00063 typedef struct OthersMenu OthersMenu_t;
00064 typedef struct _om_changed_cb_data_st _om_changed_cb_data_t;
00065 
00066 typedef void (_as_update_callback)(GKeyFile *keyfile);
00067 
00068 OthersMenu_t *others_menu_init( void );
00069 
00070 GtkWidget *others_menu_get_button( OthersMenu_t *am );
00071 
00072 void others_menu_initialize_menu( OthersMenu_t *am , void *as_menu_cb);
00073 
00074 void others_menu_deinit( OthersMenu_t *am );
00075 
00076 void others_menu_get_items( GtkWidget *widget, OthersMenu_t *am,
00077         GtkTreeModel *model, GtkTreeIter *iter );
00078 
00079 #endif /* OTHERS_MENU_H */

Generated on Fri Jun 9 16:23:09 2006 for maemo-af-desktop-documentation by  doxygen 1.4.6