"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/cfg_styles.c" between
gentoo-0.20.6.tar.gz and gentoo-0.20.7.tar.gz

About: gentoo is a graphically configurable file manager (requires GTK+).

cfg_styles.c  (gentoo-0.20.6):cfg_styles.c  (gentoo-0.20.7)
skipping to change at line 152 skipping to change at line 152
GList *alist; GList *alist;
gtk_list_store_clear(page->dpaction.store); gtk_list_store_clear(page->dpaction.store);
if((alist = stl_style_property_get_actions(stl)) != NULL) if((alist = stl_style_property_get_actions(stl)) != NULL)
{ {
const GList *iter; const GList *iter;
GtkTreeIter titer; GtkTreeIter titer;
for(iter = alist; iter != NULL; iter = g_list_next(iter)) for(iter = alist; iter != NULL; iter = g_list_next(iter))
{ {
gboolean ovr = stl_style_property_get_override(stl const gboolean ovr = stl_style_property_get_override(stl
, iter->data); , iter->data);
gtk_list_store_append(page->dpaction.store, &titer); gtk_list_store_insert_with_values(page->dpaction.store, &
gtk_list_store_set(page->dpaction.store, &titer, titer, -1,
ACTION_COLUMN_NAME, iter->data, ACTION_COLUMN_NAME, iter->data,
ACTION_COLUMN_CMDSEQ, stl_style_p roperty_get_action(stl, iter->data), ACTION_COLUMN_CMDSEQ, stl_style_p roperty_get_action(stl, iter->data),
ACTION_COLUMN_ACTION, iter->data, ACTION_COLUMN_ACTION, iter->data,
ACTION_COLUMN_WEIGHT, ovr ? PANGO _WEIGHT_BOLD : PANGO_WEIGHT_NORMAL, ACTION_COLUMN_WEIGHT, ovr ? PANGO _WEIGHT_BOLD : PANGO_WEIGHT_NORMAL,
-1); -1);
} }
g_list_free(alist); g_list_free(alist);
} }
} }
skipping to change at line 363 skipping to change at line 362
if((style = style_get_selected(page, NULL)) == NULL) if((style = style_get_selected(page, NULL)) == NULL)
return; return;
pname = g_object_get_data(G_OBJECT(wid), "user"); pname = g_object_get_data(G_OBJECT(wid), "user");
or = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(wid)); or = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(wid));
if(or) if(or)
{ {
if(strcmp(pname, SPN_ICON_UNSEL) == 0) if(strcmp(pname, SPN_ICON_UNSEL) == 0)
stl_style_property_set_icon(style, pname, stl_style_prope rty_get_icon(style, pname)); stl_style_property_set_icon(style, pname, stl_style_prope rty_get_icon(style, pname));
else else /* If not an icon, it's a color. */
{ {
const GdkColor *def; const GdkColor *def;
GdkColor tmp;
/* FIXME: This assumes only background can be non-overrid den in root. */ /* FIXME: This assumes only background can be non-overrid den in root. */
if((def = stl_style_property_get_color(style, pname)) == if((def = stl_style_property_get_color(style, pname)) !=
NULL) NULL)
{ stl_style_property_set_color(style, pname, def);
GtkStyleContext *sctx = gtk_widget_get_style_cont
ext(GTK_WIDGET(page->min->gui->pane[0].view));
GdkRGBA bg;
gtk_style_context_get_background_color(sctx, GTK_
STATE_FLAG_NORMAL, &bg);
tmp.red = 65535.0 * bg.red;
tmp.green = 65535.0 * bg.green;
tmp.blue = 65535.0 * bg.blue;
def = &tmp;
}
stl_style_property_set_color(style, pname, def);
} }
} }
else else
stl_style_property_remove(style, pname); stl_style_property_remove(style, pname);
set_widgets(page, style); set_widgets(page, style);
page->modified = TRUE; page->modified = TRUE;
} }
/* 1999-05-24 - A color property has changed. Update previews and stuff. */ /* 1999-05-24 - A color property has changed. Update previews and stuff. */
static void evt_vprop_color_changed(const GdkRGBA *color, gpointer user) static void evt_vprop_color_changed(const GdkRGBA *color, gpointer user)
skipping to change at line 769 skipping to change at line 757
GtkListStore *store; GtkListStore *store;
GtkTreeIter iter; GtkTreeIter iter;
GtkWidget *hbox, *frame, *vbox, *label; GtkWidget *hbox, *frame, *vbox, *label;
guint i; guint i;
pv->vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); pv->vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0); hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0);
label = gtk_label_new(_("Preview")); label = gtk_label_new(_("Preview"));
gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0);
store = gtk_list_store_new(2, GDK_TYPE_PIXBUF, G_TYPE_STRING); store = gtk_list_store_new(2, GDK_TYPE_PIXBUF, G_TYPE_STRING);
gtk_list_store_append(store, &iter); gtk_list_store_insert_with_values(store, &iter, -1, COLUMN_NAME, _(ptxt),
gtk_list_store_set(store, &iter, COLUMN_NAME, _(ptxt), -1); -1);
pv->preview = gtk_tree_view_new_with_model(GTK_TREE_MODEL(store)); pv->preview = gtk_tree_view_new_with_model(GTK_TREE_MODEL(store));
pv->pre_icon_r = gtk_cell_renderer_pixbuf_new(); pv->pre_icon_r = gtk_cell_renderer_pixbuf_new();
pv->pre_icon = gtk_tree_view_column_new_with_attributes("(title)", pv->pr e_icon_r, "pixbuf", COLUMN_ICON, NULL); pv->pre_icon = gtk_tree_view_column_new_with_attributes("(title)", pv->pr e_icon_r, "pixbuf", COLUMN_ICON, NULL);
gtk_tree_view_append_column(GTK_TREE_VIEW(pv->preview), pv->pre_icon); gtk_tree_view_append_column(GTK_TREE_VIEW(pv->preview), pv->pre_icon);
pv->pre_name_r = gtk_cell_renderer_text_new(); pv->pre_name_r = gtk_cell_renderer_text_new();
pv->pre_name = gtk_tree_view_column_new_with_attributes("(title)", pv->pr e_name_r, "text", COLUMN_NAME, NULL); pv->pre_name = gtk_tree_view_column_new_with_attributes("(title)", pv->pr e_name_r, "text", COLUMN_NAME, NULL);
gtk_tree_view_append_column(GTK_TREE_VIEW(pv->preview), pv->pre_name); gtk_tree_view_append_column(GTK_TREE_VIEW(pv->preview), pv->pre_name);
gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(pv->preview), FALSE); gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(pv->preview), FALSE);
gtk_widget_set_name(pv->preview, "cstPreview"); gtk_widget_set_name(pv->preview, "cstPreview");
gtk_tree_selection_set_mode(gtk_tree_view_get_selection(GTK_TREE_VIEW(pv- >preview)), GTK_SELECTION_SINGLE); /* Or none, like before? */ gtk_tree_selection_set_mode(gtk_tree_view_get_selection(GTK_TREE_VIEW(pv- >preview)), GTK_SELECTION_SINGLE); /* Or none, like before? */
 End of changes. 5 change blocks. 
23 lines changed or deleted 10 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS