~equinox-i/xfce4-volumed-pulse/add-support-for-mic-mute

« back to all changes in this revision

Viewing changes to src/main.c

  • Committer: Steve Dodier
  • Date: 2010-09-25 07:36:58 UTC
  • Revision ID: git-v1:af2ddc039bc575518a99c80c39abe0ddcc388156
Releasing 0.1.9, with Jérôme Guelfucci's patch replacing xvd with keybinder

Show diffs side-by-side

added added

removed removed

Lines of Context:
103
103
        i->loop = NULL;
104
104
        i->current_vol = 0;
105
105
        i->muted = FALSE;
106
 
        i->conn = NULL;
107
 
        #ifndef LEGACY_XCBKEYSYMS
108
 
        // In legacy mode xcb keycodes are not pointers to lists but structs
109
 
        i->keyRaise = NULL;
110
 
        i->keyLower = NULL;
111
 
        i->keyMute = NULL;
112
 
        #endif
113
 
        i->kss = NULL;
114
106
        #ifdef HAVE_LIBNOTIFY
115
107
        i->gauge_notifications = FALSE;
116
108
        i->notification = NULL;
126
118
        #ifdef NDEBUG
127
119
        xvd_daemonize();
128
120
        #endif
 
121
  
 
122
  gtk_init(&argc, &argv);
129
123
 
130
124
        /* Gstreamer init */
131
125
        gst_init (NULL,NULL);
132
126
 
133
 
        /* Xcb init */
 
127
        /* Grab the keys */
134
128
        xvd_keys_init (Inst);
135
129
 
136
130
        /* Xfconf init */
137
131
        xvd_xfconf_init (Inst);
138
 
        
 
132
  
139
133
        /* Get card/track from xfconf */
140
134
        if (!xvd_xfconf_get_card (Inst)) {
141
135
                g_debug ("Main: There seems to be no active card defined in xfconf.\n");