src/gtkprefs.c

changeset 13720
051ef816673a
parent 13684
c9b0fe6e6125
child 13986
9fc43f70e82f
equal deleted inserted replaced
13719:59b6403b4cc2 13720:051ef816673a
1352 const char *method = value; 1352 const char *method = value;
1353 1353
1354 gtk_widget_set_sensitive(vbox, strcmp(method, "none")); 1354 gtk_widget_set_sensitive(vbox, strcmp(method, "none"));
1355 } 1355 }
1356 1356
1357 #ifdef USE_AO 1357 #ifdef USE_GSTREAMER
1358 static void 1358 static void
1359 sound_changed3_cb(const char *name, GaimPrefType type, 1359 sound_changed3_cb(const char *name, GaimPrefType type,
1360 gconstpointer value, gpointer data) 1360 gconstpointer value, gpointer data)
1361 { 1361 {
1362 GtkWidget *hbox = data; 1362 GtkWidget *hbox = data;
1366 !strcmp(method, "automatic") || 1366 !strcmp(method, "automatic") ||
1367 !strcmp(method, "arts") || 1367 !strcmp(method, "arts") ||
1368 !strcmp(method, "esd") || 1368 !strcmp(method, "esd") ||
1369 !strcmp(method, "nas")); 1369 !strcmp(method, "nas"));
1370 } 1370 }
1371 #endif /* USE_AO */ 1371 #endif /* USE_GSTREAMER */
1372 #endif /* !_WIN32 */ 1372 #endif /* !_WIN32 */
1373 1373
1374 1374
1375 static void 1375 static void
1376 event_toggled(GtkCellRendererToggle *cell, gchar *pth, gpointer data) 1376 event_toggled(GtkCellRendererToggle *cell, gchar *pth, gpointer data)
1468 1468
1469 gaim_request_file(prefs, _("Sound Selection"), filename, FALSE, 1469 gaim_request_file(prefs, _("Sound Selection"), filename, FALSE,
1470 G_CALLBACK(sound_chosen_cb), NULL, GINT_TO_POINTER(sound_row_sel)); 1470 G_CALLBACK(sound_chosen_cb), NULL, GINT_TO_POINTER(sound_row_sel));
1471 } 1471 }
1472 1472
1473 #ifdef USE_AO 1473 #ifdef USE_GSTREAMER
1474 static gchar* prefs_sound_volume_format(GtkScale *scale, gdouble val) 1474 static gchar* prefs_sound_volume_format(GtkScale *scale, gdouble val)
1475 { 1475 {
1476 if(val < 15) { 1476 if(val < 15) {
1477 return g_strdup_printf(_("Quietest")); 1477 return g_strdup_printf(_("Quietest"));
1478 } else if(val < 30) { 1478 } else if(val < 30) {
1551 #ifndef _WIN32 1551 #ifndef _WIN32
1552 vbox = gaim_gtk_make_frame (ret, _("Sound Method")); 1552 vbox = gaim_gtk_make_frame (ret, _("Sound Method"));
1553 dd = gaim_gtk_prefs_dropdown(vbox, _("_Method:"), GAIM_PREF_STRING, 1553 dd = gaim_gtk_prefs_dropdown(vbox, _("_Method:"), GAIM_PREF_STRING,
1554 "/gaim/gtk/sound/method", 1554 "/gaim/gtk/sound/method",
1555 _("Console beep"), "beep", 1555 _("Console beep"), "beep",
1556 #ifdef USE_AO 1556 #ifdef USE_GSTREAMER
1557 _("Automatic"), "automatic", 1557 _("Automatic"), "automatic",
1558 "Arts", "arts", 1558 "Arts", "arts",
1559 "ESD", "esd", 1559 "ESD", "esd",
1560 "NAS", "nas", 1560 "NAS", "nas",
1561 #endif 1561 #endif
1598 gaim_gtk_prefs_checkbox(_("Sounds when conversation has _focus"), 1598 gaim_gtk_prefs_checkbox(_("Sounds when conversation has _focus"),
1599 "/gaim/gtk/sound/conv_focus", vbox); 1599 "/gaim/gtk/sound/conv_focus", vbox);
1600 gaim_gtk_prefs_checkbox(_("_Sounds while away"), 1600 gaim_gtk_prefs_checkbox(_("_Sounds while away"),
1601 "/core/sound/while_away", vbox); 1601 "/core/sound/while_away", vbox);
1602 1602
1603 #ifdef USE_AO 1603 #ifdef USE_GSTREAMER
1604 hbox = gtk_hbox_new(FALSE, GAIM_HIG_BOX_SPACE); 1604 hbox = gtk_hbox_new(FALSE, GAIM_HIG_BOX_SPACE);
1605 gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); 1605 gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0);
1606 1606
1607 label = gtk_label_new_with_mnemonic(_("Volume:")); 1607 label = gtk_label_new_with_mnemonic(_("Volume:"));
1608 gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); 1608 gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);

mercurial