Mercurial > audlegacy-plugins
comparison src/aosd/aosd_ui.c @ 2064:c8d55b929442
Just to hush down the warnings...
author | Eugene Paskevich <eugene@raptor.kiev.ua> |
---|---|
date | Sun, 14 Oct 2007 12:16:51 +0300 |
parents | 28766475ca0a |
children | 3134a0987162 |
comparison
equal
deleted
inserted
replaced
2062:6fc04f4446e1 | 2064:c8d55b929442 |
---|---|
464 gtk_box_pack_start( GTK_BOX(tex_vbox) , tex_inte_frame , FALSE , FALSE , 0 ); | 464 gtk_box_pack_start( GTK_BOX(tex_vbox) , tex_inte_frame , FALSE , FALSE , 0 ); |
465 | 465 |
466 return tex_vbox; | 466 return tex_vbox; |
467 } | 467 } |
468 | 468 |
469 | 469 #if 0 |
470 static void | 470 static void |
471 aosd_ui_configure_decoration_browse ( GtkButton * button , gpointer entry ) | 471 aosd_ui_configure_decoration_browse ( GtkButton * button , gpointer entry ) |
472 { | 472 { |
473 GtkWidget *dialog; | 473 GtkWidget *dialog; |
474 GtkWidget *parent_win = gtk_widget_get_toplevel( GTK_WIDGET(button) ); | 474 GtkWidget *parent_win = gtk_widget_get_toplevel( GTK_WIDGET(button) ); |
485 g_free( filename ); | 485 g_free( filename ); |
486 } | 486 } |
487 gtk_widget_destroy( dialog ); | 487 gtk_widget_destroy( dialog ); |
488 return; | 488 return; |
489 } | 489 } |
490 #endif | |
490 | 491 |
491 | 492 |
492 static void | 493 static void |
493 aosd_cb_configure_decoration_style_commit ( GtkWidget * lv , aosd_cfg_t * cfg ) | 494 aosd_cb_configure_decoration_style_commit ( GtkWidget * lv , aosd_cfg_t * cfg ) |
494 { | 495 { |
519 color.alpha = gtk_color_button_get_alpha( GTK_COLOR_BUTTON(colorbt) ); | 520 color.alpha = gtk_color_button_get_alpha( GTK_COLOR_BUTTON(colorbt) ); |
520 g_array_insert_val( cfg->osd->decoration.colors , colnum , color ); | 521 g_array_insert_val( cfg->osd->decoration.colors , colnum , color ); |
521 return; | 522 return; |
522 } | 523 } |
523 | 524 |
524 | 525 #if 0 |
525 static void | 526 static void |
526 aosd_cb_configure_decoration_skinfile_commit ( GtkWidget * entry , aosd_cfg_t * cfg ) | 527 aosd_cb_configure_decoration_skinfile_commit ( GtkWidget * entry , aosd_cfg_t * cfg ) |
527 { | 528 { |
528 cfg->osd->decoration.skin_file = g_strdup( gtk_entry_get_text(GTK_ENTRY(entry)) ); | 529 cfg->osd->decoration.skin_file = g_strdup( gtk_entry_get_text(GTK_ENTRY(entry)) ); |
529 return; | 530 return; |
530 } | 531 } |
531 | 532 #endif |
532 | 533 |
533 static GtkWidget * | 534 static GtkWidget * |
534 aosd_ui_configure_decoration ( aosd_cfg_t * cfg , GList ** cb_list ) | 535 aosd_ui_configure_decoration ( aosd_cfg_t * cfg , GList ** cb_list ) |
535 { | 536 { |
536 GtkWidget *dec_hbox; | 537 GtkWidget *dec_hbox; |
540 GtkTreeViewColumn *dec_rstyle_lv_col_desc; | 541 GtkTreeViewColumn *dec_rstyle_lv_col_desc; |
541 GtkTreeSelection *dec_rstyle_lv_sel; | 542 GtkTreeSelection *dec_rstyle_lv_sel; |
542 GtkTreeIter iter, iter_sel; | 543 GtkTreeIter iter, iter_sel; |
543 GtkWidget *dec_rstyle_hbox; | 544 GtkWidget *dec_rstyle_hbox; |
544 GtkWidget *dec_rstyleopts_frame, *dec_rstyleopts_table; | 545 GtkWidget *dec_rstyleopts_frame, *dec_rstyleopts_table; |
546 #if 0 | |
545 GtkWidget *dec_rstylecustom_frame, *dec_rstylecustom_table; | 547 GtkWidget *dec_rstylecustom_frame, *dec_rstylecustom_table; |
546 GtkWidget *dec_rstylecustom_label, *dec_rstylecustom_entry, *dec_rstylecustom_browse_bt; | 548 GtkWidget *dec_rstylecustom_label, *dec_rstylecustom_entry, *dec_rstylecustom_browse_bt; |
549 #endif | |
547 gint *deco_code_array, deco_code_array_size; | 550 gint *deco_code_array, deco_code_array_size; |
548 gint colors_max_num = 0, i = 0; | 551 gint colors_max_num = 0, i = 0; |
549 | 552 |
550 dec_hbox = gtk_hbox_new( FALSE , 4 ); | 553 dec_hbox = gtk_hbox_new( FALSE , 4 ); |
551 gtk_container_set_border_width( GTK_CONTAINER(dec_hbox) , 6 ); | 554 gtk_container_set_border_width( GTK_CONTAINER(dec_hbox) , 6 ); |
954 | 957 |
955 | 958 |
956 static void | 959 static void |
957 aosd_cb_configure_ok ( gpointer cfg_win ) | 960 aosd_cb_configure_ok ( gpointer cfg_win ) |
958 { | 961 { |
959 gchar *markup_message = NULL; | 962 //gchar *markup_message = NULL; |
960 aosd_cfg_t *cfg = aosd_cfg_new(); | 963 aosd_cfg_t *cfg = aosd_cfg_new(); |
961 GList *cb_list = g_object_get_data( G_OBJECT(cfg_win) , "cblist" ); | 964 GList *cb_list = g_object_get_data( G_OBJECT(cfg_win) , "cblist" ); |
962 aosd_callback_list_run( cb_list , cfg ); | 965 aosd_callback_list_run( cb_list , cfg ); |
963 cfg->set = TRUE; | 966 cfg->set = TRUE; |
964 aosd_osd_shutdown(); /* stop any displayed osd */ | 967 aosd_osd_shutdown(); /* stop any displayed osd */ |