~blackskad/gnomeradio/dev-vol-button

« back to all changes in this revision

Viewing changes to src/gui.c

  • Committer: mfcn
  • Date: 2008-09-13 20:00:09 UTC
  • Revision ID: svn-v3-trunk0:ba97a3d1-ec25-0410-b1c6-e06ad936ea6c:trunk:208
        * src/gui.c (main):
        * src/prefs.c (add_button_clicked_cb), (del_button_clicked_cb),
        (name_cell_edited_cb):
        Don't update menus while main-view and tray-icon are not visible yet

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
int mom_ps;
55
55
gnomeradio_settings settings;
56
56
 
 
57
gboolean main_visible;
 
58
 
57
59
static GtkWidget *drawing_area;
58
60
static GdkPixmap *digits, *signal_s, *stereo;
59
61
static GtkWidget *freq_scale;
1110
1112
                                        NULL);
1111
1113
        gtk_window_set_default_icon_name("gnomeradio");
1112
1114
        /* Main app */
 
1115
        main_visible = FALSE;
1113
1116
        app = gnome_radio_gui();
1114
1117
 
1115
1118
        /* Initizialize GStreamer */
1150
1153
        preset_combo_set_item(mom_ps);
1151
1154
 
1152
1155
        gtk_widget_show_all(app);
 
1156
        main_visible = TRUE;
1153
1157
 
1154
1158
        /* Create an tray icon */
1155
1159
        create_tray_icon(app);