Diff of /trunk/src/banner.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 41 by achadwick, Wed Dec 24 14:17:20 2008 UTC revision 42 by harbaum, Wed Jan 21 20:01:18 2009 UTC
# Line 1  Line 1 
1    /*
2     * Copyright (C) 2008 Andrew Chadwick <andrewc-osm2go@piffle.org>.
3     *
4     * This file is part of OSM2Go.
5     *
6     * OSM2Go is free software: you can redistribute it and/or modify
7     * it under the terms of the GNU General Public License as published by
8     * the Free Software Foundation, either version 3 of the License, or
9     * (at your option) any later version.
10     *
11     * OSM2Go is distributed in the hope that it will be useful,
12     * but WITHOUT ANY WARRANTY; without even the implied warranty of
13     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14     * GNU General Public License for more details.
15     *
16     * You should have received a copy of the GNU General Public License
17     * along with OSM2Go.  If not, see <http://www.gnu.org/licenses/>.
18     */
19    
20  #include "banner.h"  #include "banner.h"
21  #include <gtk/gtk.h>  #include <gtk/gtk.h>
22    
# Line 6  Line 25 
25  #ifdef USE_HILDON  #ifdef USE_HILDON
26  #include <hildon/hildon.h>  #include <hildon/hildon.h>
27    
   
   
28  // Clear any current animations.  // Clear any current animations.
29    
30  void banner_clear(appdata_t *appdata) {  void banner_clear(appdata_t *appdata) {
# Line 17  void banner_clear(appdata_t *appdata) { Line 34  void banner_clear(appdata_t *appdata) {
34      gtk_grab_remove(YETI_PASSIVE_WIDGET);      gtk_grab_remove(YETI_PASSIVE_WIDGET);
35      GtkWidget *win, *menu, *menu_att;      GtkWidget *win, *menu, *menu_att;
36      win = GTK_WIDGET(appdata->window);      win = GTK_WIDGET(appdata->window);
37      menu = GTK_WINDOW(hildon_window_get_menu(win));      menu = GTK_WIDGET(hildon_window_get_menu(HILDON_WINDOW(win)));
38      menu_att = gtk_menu_get_attach_widget(hildon_window_get_menu(win));      menu_att = gtk_menu_get_attach_widget(
39                      hildon_window_get_menu(HILDON_WINDOW(win)));
40      gtk_widget_set_sensitive(win, TRUE);      gtk_widget_set_sensitive(win, TRUE);
41      gtk_widget_set_sensitive(menu, TRUE);      gtk_widget_set_sensitive(menu, TRUE);
42      gtk_widget_set_sensitive(menu_att, TRUE);      gtk_widget_set_sensitive(menu_att, TRUE);
# Line 64  void banner_busy_start(appdata_t *appdat Line 82  void banner_busy_start(appdata_t *appdat
82    if (appdata->banner_is_grabby) {    if (appdata->banner_is_grabby) {
83      GtkWidget *win, *menu, *menu_att;      GtkWidget *win, *menu, *menu_att;
84      win = GTK_WIDGET(appdata->window);      win = GTK_WIDGET(appdata->window);
85      menu = GTK_WINDOW(hildon_window_get_menu(win));      menu = GTK_WIDGET(hildon_window_get_menu(HILDON_WINDOW(win)));
86      menu_att = gtk_menu_get_attach_widget(hildon_window_get_menu(win));      menu_att = gtk_menu_get_attach_widget(
87                      hildon_window_get_menu(HILDON_WINDOW(win)));
88      gtk_widget_set_sensitive(win, FALSE);      gtk_widget_set_sensitive(win, FALSE);
89      gtk_widget_set_sensitive(menu, FALSE);      gtk_widget_set_sensitive(menu, FALSE);
90      gtk_widget_set_sensitive(menu_att, FALSE);      gtk_widget_set_sensitive(menu_att, FALSE);

Legend:
Removed from v.41  
changed lines
  Added in v.42