Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 23859
Collapse All | Expand All

(-)backdrop_settings.c (-15 / +5 lines)
Lines 94-100 Link Here
94
    
94
    
95
    GtkWidget *file_entry;
95
    GtkWidget *file_entry;
96
    GtkWidget *edit_list_button;
96
    GtkWidget *edit_list_button;
97
    GSList *style_rb_group;
97
    GtkWidget *style_om;
98
}
98
}
99
BackdropDialog;
99
BackdropDialog;
100
100
Lines 263-289 Link Here
263
    
263
    
264
    if (is_backdrop_list(backdrop_path))
264
    if (is_backdrop_list(backdrop_path))
265
    {
265
    {
266
        GtkToggleButton *tb;
267
        
268
        gtk_widget_set_sensitive(bd->edit_list_button, TRUE);
266
        gtk_widget_set_sensitive(bd->edit_list_button, TRUE);
269
        
267
        
270
        /* set style to AUTOMATIC and set insensitive */
268
        /* set style to AUTOMATIC and set insensitive */
271
        tb = GTK_TOGGLE_BUTTON(bd->style_rb_group->data);
269
	gtk_option_menu_set_history(GTK_OPTION_MENU(bd->style_om), AUTO);
272
        gtk_toggle_button_set_active(tb, TRUE);
270
        gtk_widget_set_sensitive(bd->style_om, FALSE);
273
        
274
        for (li = bd->style_rb_group; li; li = li->next)
275
        {
276
            gtk_widget_set_sensitive(GTK_WIDGET(li->data), FALSE);
277
        }
278
    }
271
    }
279
    else
272
    else
280
    {
273
    {
281
        gtk_widget_set_sensitive(bd->edit_list_button, FALSE);
274
        gtk_widget_set_sensitive(bd->edit_list_button, FALSE);
282
275
283
        for (li = bd->style_rb_group; li; li = li->next)
276
        gtk_widget_set_sensitive(bd->style_om, TRUE);
284
        {
285
            gtk_widget_set_sensitive(GTK_WIDGET(li->data), TRUE);
286
        }
287
    }
277
    }
288
278
289
    if (backdrop_path)
279
    if (backdrop_path)
Lines 785-791 Link Here
785
    gtk_menu_shell_append(GTK_MENU_SHELL(menu), rb_auto);
775
    gtk_menu_shell_append(GTK_MENU_SHELL(menu), rb_auto);
786
    g_signal_connect(rb_auto, "activate", G_CALLBACK(set_style), bd);
776
    g_signal_connect(rb_auto, "activate", G_CALLBACK(set_style), bd);
787
	    
777
	    
788
    omenu = gtk_option_menu_new();
778
    bd->style_om = omenu = gtk_option_menu_new();
789
    gtk_option_menu_set_menu(GTK_OPTION_MENU(omenu), menu);
779
    gtk_option_menu_set_menu(GTK_OPTION_MENU(omenu), menu);
790
    gtk_option_menu_set_history(GTK_OPTION_MENU(omenu), backdrop_style);
780
    gtk_option_menu_set_history(GTK_OPTION_MENU(omenu), backdrop_style);
791
781

Return to bug 23859