diff --git a/Makefile b/Makefile
index ddf681c..993aa57 100644
--- a/Makefile
+++ b/Makefile
@@ -11,6 +11,7 @@ CMAKE_COMMAND = cmake
CMAKE_SOURCE_DIR = ./source
CMAKE_BUILD_DIR = ./compile
PKGNAME = $(MAKEFILE_DIR)
+version_application =
#PKGNAME = check-hostalive
default_target: all
@@ -19,7 +20,12 @@ all: init build
init:
@echo "Initialize ..."; \
- echo "-- Build path: ${CMAKE_BUILD_DIR}"
+ version="$$(cat VERSION.md)"; \
+ version=$${version:8}; \
+ search="s/string version_application.*$&"; \
+ replace="string version_application = \"$${version}\";"; \
+ sed -i -e "$$search/$$replace/gi" source/ubl-settings-datetime.h; \
+ echo "-- Build path: ${CMAKE_BUILD_DIR}"
depend:
@echo "Check depends ..."; \
@@ -110,6 +116,9 @@ install: check uninstall
@install -Dm644 -t /usr/share/icons/hicolor/scalable/apps/ ${PKGNAME}.svg
@install -Dm755 -t /usr/bin/ ${CMAKE_BUILD_DIR}/${PKGNAME}
@install -Dm644 -t /usr/share/applications/ ${PKGNAME}.desktop; \
+ if [ ! -d "/usr/share/${PKGNAME}" ]; then \
+ mkdir /usr/share/${PKGNAME}; \
+ fi; \
if [ ! -d "/usr/share/${PKGNAME}/ui" ]; then \
mkdir /usr/share/${PKGNAME}/ui; \
fi; \
diff --git a/VERSION.md b/VERSION.md
new file mode 100644
index 0000000..323861e
--- /dev/null
+++ b/VERSION.md
@@ -0,0 +1 @@
+string version_application = "1.1";
diff --git a/source/ubl-settings-manager.c b/source/ubl-settings-manager.c
index 735c9a4..0ff72da 100644
--- a/source/ubl-settings-manager.c
+++ b/source/ubl-settings-manager.c
@@ -49,7 +49,7 @@ void on_plug_added(GtkSocket* self, actionWidgets *builder){
// else
// gtk_widget_show(builder->appSettings);
- if (builder->ButtonBackToMain!=NULL) gtk_widget_set_sensitive(builder->ButtonBackToMain,1);
+ if (builder->ButtonBackToMain!=NULL) gtk_widget_show(builder->ButtonBackToMain);
gtk_widget_show(GTK_WIDGET(self));
gtk_widget_show(builder->socketbuttonplace);
gtk_widget_show(builder->ThirdSocketPlace);
@@ -119,7 +119,7 @@ void on_gnome_Item_activated(GtkIconView* self, GtkTreePath* path, actionWidgets
if (tempapp->Pluggable==1){
if (tempapp->DualPluggable==1){
- gtk_widget_hide(applist->appSettings);
+ //gtk_widget_hide(applist->appSettings);
char *dualarg=malloc(strlen("--socket-id= --socket-ext-id= --socket-trd-id=")+30);
sprintf(dualarg,"--socket-id=%d --socket-ext-id=%d --socket-trd-id=%d",gtk_socket_get_id(GTK_SOCKET(applist->socket)),gtk_socket_get_id(GTK_SOCKET(applist->socketbutton)),gtk_socket_get_id(GTK_SOCKET(applist->ThirdSocket)));
launch_app_with_arguments(tempapp[0].Exec,dualarg);
@@ -166,7 +166,7 @@ void on_backToSettingsButton_clicked(GtkWidget *button,actionWidgets *sctb){
gtk_widget_destroy(sctb->socket);
sctb->socket=GTK_WIDGET(create_socket(sctb));
GtkWidget *backbutton=sctb->ButtonBackToMain;
- gtk_widget_set_sensitive(backbutton,0);
+ gtk_widget_hide(backbutton);
};
void on_CancelHelpButton_activated(GtkWidget *button,GtkBuilder *builder){
@@ -241,14 +241,16 @@ int on_settings_accept(GtkWidget *button, dictionary **widgetsDs){
fclose(fp);
}
g_key_file_load_from_file(gfile,pth,G_KEY_FILE_NONE,&err);
- sprintf(fromint,"%d",main_config.windowPosX);
- g_key_file_set_string(gfile,"window","WindowPosX",fromint);
- sprintf(fromint,"%d",main_config.windowPosY);
- g_key_file_set_string(gfile,"window","WindowPosY",fromint);
- sprintf(fromint,"%d",main_config.windowWidth);
- g_key_file_set_string(gfile,"window","WindowWidth",fromint);
- sprintf(fromint,"%d",main_config.windowHeight);
- g_key_file_set_string(gfile,"window","WindowHeight",fromint);
+ if (gtk_window_is_maximized(GTK_WINDOW(widgets->window))==0){
+ sprintf(fromint,"%d",main_config.windowPosX);
+ g_key_file_set_string(gfile,"window","WindowPosX",fromint);
+ sprintf(fromint,"%d",main_config.windowPosY);
+ g_key_file_set_string(gfile,"window","WindowPosY",fromint);
+ sprintf(fromint,"%d",main_config.windowWidth);
+ g_key_file_set_string(gfile,"window","WindowWidth",fromint);
+ sprintf(fromint,"%d",main_config.windowHeight);
+ g_key_file_set_string(gfile,"window","WindowHeight",fromint);
+ }
sprintf(fromint,"%d",main_config.WindowTheme);
g_key_file_set_string(gfile,"window","WindowTheme",fromint);
sprintf(fromint,"%d",sz);
@@ -282,7 +284,7 @@ void on_paned_move(GtkPaned* self, GtkScrollType* scroll_type, actionWidgets *wi
if (position<250) {position=250; gtk_paned_set_position(GTK_PANED(widgets->GnomePaned),250);}
main_config.iconSegmentSize=position;
if (position <115) {position=115;}
- double pos=((double)position-(11/(double)position*4)*500)/1.3;
+ double pos=((double)position);
if (pos<110) pos=110;
for (dictionary *dict=widgets->ICSys;dict!=NULL;dict=dict->next){
IVGraphicals *IV=(IVGraphicals*)dict->data;
@@ -632,35 +634,39 @@ void on_section_delete(GtkWidget *button, actionWidgets *widgets){
void on_resized (GtkWidget *window, GdkEventConfigure *event, dictionary *widgetsD){
actionWidgets *widgets=(actionWidgets*)widgetsD->data;
int x,y;
-
+ if (gtk_window_is_maximized(GTK_WINDOW(widgets->window))==0)
+ main_config.fullscreen=0;
+ else
+ main_config.fullscreen=1;
gtk_window_get_size(GTK_WINDOW(window),&main_config.windowWidth,&main_config.windowHeight);
- if (main_config.windowWidth<1240){
- if (stld==0){
- stld=1;
- main_config.WindowTheme=0;
-
- gtk_window_set_resizable(GTK_WINDOW(window),0);
- gtk_window_get_position(GTK_WINDOW(window),&main_config.windowPosX,&main_config.windowPosY);
- gtk_window_get_size(GTK_WINDOW(window),&main_config.windowWidth,&main_config.windowHeight);
- yon_switch_theme(&widgetsD,yon_dictionary_find(&widgetsD,"Main"));
- *main_config.currentThemeIconSize=24;
-
- for (dictionary *dict=widgets->ICSys->first;dict!=NULL;dict=dict->next){
- IVGraphicals *IV=(IVGraphicals*)dict->data;
- load_apps_with_clear(IV,widgets->applist,widgets->appssize);
+ if (main_config.WindowTheme==1){
+ if (main_config.windowWidth<1240){
+ if (stld==0){
+ stld=1;
+ main_config.WindowTheme=0;
+
+ gtk_window_set_resizable(GTK_WINDOW(window),0);
+ gtk_window_get_position(GTK_WINDOW(window),&main_config.windowPosX,&main_config.windowPosY);
+ gtk_window_get_size(GTK_WINDOW(window),&main_config.windowWidth,&main_config.windowHeight);
+ yon_switch_theme(&widgetsD,yon_dictionary_find(&widgetsD,"Main"));
+ *main_config.currentThemeIconSize=24;
+
+ // for (dictionary *dict=widgets->ICSys->first;dict!=NULL;dict=dict->next){
+ // IVGraphicals *IV=(IVGraphicals*)dict->data;
+ // load_apps_with_clear(IV,widgets->applist,widgets->appssize);
+ // }
+ gtk_window_resize(GTK_WINDOW(widgets->window),main_config.windowWidth,main_config.windowHeight);
+ gtk_widget_hide(widgets->window);
+ }
+ }else {
+ yon_segments_hide(widgets);
+ yon_segments_show(widgets);
+ if (stld==1){
+ stld=0;
+ cmld=0;
}
- gtk_window_resize(GTK_WINDOW(widgets->window),main_config.windowWidth,main_config.windowHeight);
- gtk_widget_hide(widgets->window);
- }
- }else {
- yon_segments_hide(widgets);
- yon_segments_show(widgets);
- if (stld==1){
- stld=0;
- cmld=0;
}
}
-
}
void on_resized_done (GtkWidget *window, GdkEvent *event, dictionary *widgetsD){
@@ -685,6 +691,35 @@ void on_about_system(GtkWidget *button, actionWidgets *widgets){
launch_app_with_arguments("ubl-settings-info",arg);
}
+void on_theme_selection_changed(GtkWidget *self, actionWidgets *widgets){
+ int *icsize;
+ printf("changed\n");
+ int curthm=gtk_combo_box_get_active(GTK_COMBO_BOX(widgets->settingsThemeChooser));
+ if (curthm==0)
+ *icsize=main_config.Mainiconsize;
+ else if (curthm==1)
+ *icsize=main_config.Gnomeiconsize;
+ if (*icsize<=24){
+ gtk_label_set_text(GTK_LABEL(widgets->settingsSizeInfoLabel),"24x24");
+ gtk_image_set_from_pixbuf(GTK_IMAGE(widgets->settingsIcon),gdk_pixbuf_new_from_file_at_scale(AppIconPath,24,24,1,NULL));
+ gtk_scale_set_value_pos(GTK_SCALE(widgets->settingsSizeSlider),1.0);
+ } else if (*icsize<=32){
+ gtk_label_set_text(GTK_LABEL(widgets->settingsSizeInfoLabel),"32x32");
+ gtk_image_set_from_pixbuf(GTK_IMAGE(widgets->settingsIcon),gdk_pixbuf_new_from_file_at_scale(AppIconPath,32,32,1,NULL));
+ gtk_scale_set_value_pos(GTK_SCALE(widgets->settingsSizeSlider),2.0);
+ } else if (*icsize<=48){
+ gtk_label_set_text(GTK_LABEL(widgets->settingsSizeInfoLabel),"48x48");
+ gtk_image_set_from_pixbuf(GTK_IMAGE(widgets->settingsIcon),gdk_pixbuf_new_from_file_at_scale(AppIconPath,48,48,1,NULL));
+ gtk_scale_set_value_pos(GTK_SCALE(widgets->settingsSizeSlider),3.0);
+ } else{
+ gtk_label_set_text(GTK_LABEL(widgets->settingsSizeInfoLabel),"64x64");
+ gtk_image_set_from_pixbuf(GTK_IMAGE(widgets->settingsIcon),gdk_pixbuf_new_from_file_at_scale(AppIconPath,64,64,1,NULL));
+ gtk_scale_set_value_pos(GTK_SCALE(widgets->settingsSizeSlider),4.0);
+ }
+}
+
+
+
void launch(char *command){
system(command);
}
@@ -732,16 +767,36 @@ int load_apps(IVGraphicals *section, apps *applist, int size){
memset(path,0,strlen(IconPicturesPath)+strlen(applist[i].Icon)+7);
memcpy(path,IconPicturesPath,strlen(IconPicturesPath));
path=yon_char_get_augumented(path,applist[i].Icon);
- path=yon_char_get_augumented(path,PictureFormatMain);
GdkPixbuf *pixbuf;
- pixbuf=gdk_pixbuf_new_from_file_at_size(path,*main_config.currentThemeIconSize,*main_config.currentThemeIconSize,NULL);
+ pixbuf=gdk_pixbuf_new_from_file_at_size(yon_char_get_augumented(path,PictureFormatMain),*main_config.currentThemeIconSize,*main_config.currentThemeIconSize,NULL);
if (!pixbuf) {
- pixbuf=gdk_pixbuf_new_from_file_at_size(ErrIconPicturePath,*main_config.currentThemeIconSize,*main_config.currentThemeIconSize,NULL);
+ pixbuf=gdk_pixbuf_new_from_file_at_size(yon_char_get_augumented(path,PictureFormatExtra),*main_config.currentThemeIconSize,*main_config.currentThemeIconSize,NULL);
+ if (!pixbuf){
+ GtkWidget *imag=gtk_image_new_from_icon_name(applist[i].Icon,GTK_ICON_SIZE_DIALOG);
+ void *a=GTK_ICON_SIZE_DIALOG;
+ pixbuf=gtk_image_get_pixbuf(GTK_IMAGE(imag));
+ printf("%s\n",applist[i].Icon);
+ if (!pixbuf)
+ pixbuf=gdk_pixbuf_new_from_file_at_size(ErrIconPicturePath,*main_config.currentThemeIconSize,*main_config.currentThemeIconSize,NULL);
+ else {
+ gdk_pixbuf_scale(pixbuf,pixbuf,0,0,*main_config.currentThemeIconSize,*main_config.currentThemeIconSize,0,0,*main_config.currentThemeIconSize,*main_config.currentThemeIconSize,GDK_INTERP_NEAREST);
+ GValue a = G_VALUE_INIT;
+ g_value_init (&a, G_TYPE_STRING);
+ g_value_set_string (&a, applist[i].Icon);
+ g_object_set_property(G_OBJECT(section->iconRender),"icon-name", &a);
+ }
+ }
};
GtkTreeIter iter;
gtk_list_store_append(section->LV,&iter);
+ int sz= *main_config.currentThemeIconSize;
+ if (sz<50) sz=50;
GtkTreePath *pth = gtk_tree_model_get_path(GTK_TREE_MODEL(section->LV),&iter);
- gtk_list_store_set(section->LV,&iter,0,pixbuf,1,applist[i].Name,2,0.0,3,0.5,-1);
+ gtk_list_store_set(section->LV,&iter,0, pixbuf, 1,applist[i].Name,2,0.0,3,0.5, 4, sz+8, 5, applist[i].Icon, -1);
+ int cols = gtk_icon_view_get_columns(GTK_ICON_VIEW(section->IV));
+ gtk_icon_view_set_columns(GTK_ICON_VIEW(section->IV), -1);
+ gtk_icon_view_set_columns(GTK_ICON_VIEW(section->IV), cols);
+
yon_time_reg_for_average(times,sz++,clock());
}
@@ -970,6 +1025,70 @@ int setup_config(){
return 1;
};
+void save_config(actionWidgets *widgets){
+ GKeyFile *gfile=g_key_file_new();
+
+ int sz=1,szm=1;
+ if (main_config.Gnomeiconsize==64) sz=4;
+ if (main_config.Gnomeiconsize==48) sz=3;
+ if (main_config.Gnomeiconsize==32) sz=2;
+ if (main_config.Gnomeiconsize==24) sz=1;
+ if (main_config.Mainiconsize==64) szm=4;
+ if (main_config.Mainiconsize==48) szm=3;
+ if (main_config.Mainiconsize==32) szm=2;
+ if (main_config.Mainiconsize==24) szm=1;
+ char *fromint=malloc(5);
+ memset(fromint,0,5);
+ GError *err=NULL;
+ char *login=getlogin();
+ if (geteuid()==0){
+ login=main_config.lastUser;
+ } else {
+ main_config.lastUser=login;
+ }
+ char *pth=malloc(7+strlen(UserConfigPath)+strlen(getlogin()));
+ sprintf(pth,"%s%s%s","/home/",getlogin(),UserConfigPath);
+ g_key_file_load_from_file(gfile,pth,G_KEY_FILE_NONE,&err);
+ if (err){
+ struct stat st = {0};
+ char *ptdir=malloc(36+strlen(getlogin()));
+ sprintf(ptdir,"%s%s%s","/home/",getlogin(),"/.config/ubl-settings-manager");
+ if (stat(ptdir, &st) == -1) {
+ mkdir(ptdir, 0777);
+ }
+ FILE *fp;
+ fp=fopen(pth,"w");
+ fclose(fp);
+ }
+ g_key_file_load_from_file(gfile,pth,G_KEY_FILE_NONE,&err);
+ if (main_config.fullscreen==0){
+ sprintf(fromint,"%d",main_config.windowPosX);
+ g_key_file_set_string(gfile,"window","WindowPosX",fromint);
+ sprintf(fromint,"%d",main_config.windowPosY);
+ g_key_file_set_string(gfile,"window","WindowPosY",fromint);
+ sprintf(fromint,"%d",main_config.windowWidth);
+ g_key_file_set_string(gfile,"window","WindowWidth",fromint);
+ sprintf(fromint,"%d",main_config.windowHeight);
+ g_key_file_set_string(gfile,"window","WindowHeight",fromint);
+ }
+ sprintf(fromint,"%d",main_config.WindowTheme);
+ g_key_file_set_string(gfile,"window","WindowTheme",fromint);
+ sprintf(fromint,"%d",sz);
+ g_key_file_set_string(gfile,"window","GnomeIconSize",fromint);
+ sprintf(fromint,"%d",szm);
+ g_key_file_set_string(gfile,"window","MainIconSize",fromint);
+ sprintf(fromint,"%d",main_config.iconSegmentSize);
+ g_key_file_set_string(gfile,"window","IconSegmentSize",fromint);
+ sprintf(fromint,"%d",(int)((float)main_config.GnomelabelSize/1000));
+ g_key_file_set_string(gfile,"window","GnomeLabelSize",fromint);
+ sprintf(fromint,"%d",(int)((float)main_config.MainlabelSize/1000));
+ g_key_file_set_string(gfile,"window","MainLabelSize",fromint);
+ sprintf(fromint,"%d",(int)((float)main_config.labelDensity/1000));
+ g_key_file_set_string(gfile,"window","LabelDensity",fromint);
+ g_key_file_set_string(gfile,"window","User",login);
+ g_key_file_save_to_file(gfile,pth,NULL);
+}
+
char *yon_cut(char *source, int size, int startpos){
char *cut=NULL;
cut=malloc(size+1);
@@ -1031,14 +1150,19 @@ void yon_set_default_sections(dictionary **section){
*section=(*section)->first;
}
+void yon_check_for_space_near_eol(){
+
+}
+
IVGraphicals *yon_create_single_section_IV(char *name,char *cats){
- IVGraphicals *IVG=malloc(sizeof(IVGraphicals));
- GtkWidget *box=gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
- GtkBuilder *builder=gtk_builder_new_from_file(GladePath);
- GtkWidget *iv=GTK_WIDGET(gtk_builder_get_object(builder,"iconTemplate"));
- GtkWidget *label=gtk_label_new(_(name));
- PangoAttrList *attrs=pango_attr_list_new();
- PangoFontDescription *descr=pango_font_description_new();
+ IVGraphicals *IVG = malloc(sizeof(IVGraphicals));
+ GtkWidget *box = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
+ GtkBuilder *builder = gtk_builder_new_from_file(GladePath);
+ GtkWidget *iv = GTK_WIDGET(gtk_builder_get_object(builder,"iconTemplate"));
+ GtkWidget *label = gtk_label_new(_(name));
+ GtkCellRendererPixbuf *iconRender = GTK_CELL_RENDERER_PIXBUF(gtk_builder_get_object(builder, "iconPic"));
+ PangoAttrList *attrs = pango_attr_list_new();
+ PangoFontDescription *descr = pango_font_description_new();
pango_font_description_set_weight(descr,PANGO_WEIGHT_BOLD);
int stretch = main_config.labelDensity;
if (stretch>8)
@@ -1050,18 +1174,23 @@ IVGraphicals *yon_create_single_section_IV(char *name,char *cats){
gtk_widget_set_margin_end(label,6);
gtk_widget_set_margin_start(label,6);
gtk_widget_set_margin_bottom(label,2);
+ // gtk_widget_set_name(label,"workingbg");
+ // gtk_widget_set_name(box,"workingbg");
+ gtk_icon_view_set_spacing(GTK_ICON_VIEW(iv),20);
if (main_config.WindowTheme==1) {
gtk_icon_view_set_columns(GTK_ICON_VIEW(iv),1);
gtk_widget_set_name(iv,"GnomeIcon");
gtk_icon_view_set_activate_on_single_click(GTK_ICON_VIEW(iv),1);
gtk_icon_view_set_item_orientation(GTK_ICON_VIEW(iv),GTK_ORIENTATION_HORIZONTAL);
} else {
- gtk_widget_set_name(iv,"Icon");
+ gtk_icon_view_set_item_padding(GTK_ICON_VIEW(iv),3);
+ //gtk_widget_set_name(iv,"workingbg");
gtk_icon_view_set_item_orientation(GTK_ICON_VIEW(iv),GTK_ORIENTATION_HORIZONTAL);
}
-
+ gtk_icon_view_set_text_column(GTK_ICON_VIEW(iv),1);
GtkWidget *sep=gtk_separator_new(GTK_ORIENTATION_HORIZONTAL);
GtkListStore *lv=GTK_LIST_STORE(gtk_builder_get_object(builder,"liststoreTemplate"));
+ gtk_widget_set_name(sep,"SepIcon");
gtk_widget_set_halign(box,0);
gtk_widget_set_valign(box,1);
gtk_widget_set_margin_end(sep,6);
@@ -1073,11 +1202,12 @@ IVGraphicals *yon_create_single_section_IV(char *name,char *cats){
gtk_box_pack_start(GTK_BOX(box),iv,FALSE,FALSE,0);
IVG->sectionName=name;
IVG->categories=cats;
- IVG->LV=lv;
- IVG->Box=box;
- IVG->IV=iv;
- IVG->label=label;
- IVG->sep=sep;
+ IVG->LV = lv;
+ IVG->Box = box;
+ IVG->IV = iv;
+ IVG->label = label;
+ IVG->sep = sep;
+ IVG->iconRender = iconRender;
return IVG;
}
@@ -1143,7 +1273,7 @@ void yon_icv_resize_item(dictionary *icdict, GtkWidget *paned){
for (dictionary *dict=icdict->first;dict!=NULL;dict=dict->next){
IVGraphicals *icv=(IVGraphicals*)dict->data;
int width=gtk_paned_get_position(GTK_PANED(paned));
- int pos=(int)((double)width-(11/(double)width*4)*500)/1.3;
+ int pos=(int)((double)width);
if (pos < 115) pos=115;
gtk_icon_view_set_item_width(GTK_ICON_VIEW(icv->IV),pos);
@@ -1201,6 +1331,8 @@ void yon_switch_theme(dictionary **dict, dictionary *newone){
gtk_window_resize(GTK_WINDOW(widgets->window),main_config.windowWidth,main_config.windowHeight);
gtk_window_move(GTK_WINDOW(widgets->window),main_config.windowPosX,main_config.windowPosY);
if (strcmp(dct->key,"Gnome")==0){
+ main_config.currentThemeIconSize=&main_config.Gnomeiconsize;
+ main_config.currentThemeLabelSize=&main_config.GnomelabelSize;
int x,y;
GdkRectangle workarea;
gdk_monitor_get_workarea(gdk_display_get_monitor(gdk_screen_get_display(gtk_window_get_screen(GTK_WINDOW(widgets->window))),0),&workarea);
@@ -1232,6 +1364,8 @@ void yon_switch_theme(dictionary **dict, dictionary *newone){
}
} else {
+ main_config.currentThemeIconSize=&main_config.Mainiconsize;
+ main_config.currentThemeLabelSize=&main_config.MainlabelSize;
gtk_widget_show(widgets->window);
main_config.WindowTheme=0;
main_config.curThemeName="Main";
@@ -1431,6 +1565,11 @@ void yon_time_reg_for_average(dictionary *listofregs, int size, time_t tm){
void yon_small_window_theme_change(actionWidgets *widgets){
}
+void yon_main_quit(actionWidgets *widgets){
+ save_config(widgets);
+ gtk_main_quit();
+}
+
dictionary *yon_theme_new(dictionary **widgetss, GtkBuilder *builder, char *theme_id, apps *applist, int appsize){
dictionary *widgets=*widgetss;
@@ -1465,24 +1604,23 @@ dictionary *yon_theme_new(dictionary **widgetss, GtkBuilder *builder, char *them
curWidgets->socket=GTK_WIDGET(create_socket(curWidgets));
g_signal_connect(G_OBJECT(curWidgets->MenuItemAboutSystem), "activate", G_CALLBACK(on_about_system),curWidgets);
if (curWidgets->ButtonBackToMain!=NULL)
- gtk_button_set_label(GTK_BUTTON(curWidgets->ButtonBackToMain),_("Back to settings"));
- gtk_window_set_title(GTK_WINDOW(curWidgets->window),"UBLinux Settings Manager");
- g_signal_connect(G_OBJECT(curWidgets->window), "destroy", G_CALLBACK(gtk_main_quit), NULL);
+ gtk_button_set_label(GTK_BUTTON(curWidgets->ButtonBackToMain),_("Back to all settings"));
+ gtk_window_set_title(GTK_WINDOW(curWidgets->window),_("UBLinux Settings Manager"));
if (curWidgets->GnomePaned!=NULL){
gtk_paned_set_position(GTK_PANED(curWidgets->GnomePaned),main_config.iconSegmentSize);
g_signal_connect(G_OBJECT(curWidgets->GnomePaned), "notify::position", G_CALLBACK(on_paned_move), curWidgets);
}
+ g_signal_connect(G_OBJECT(curWidgets->window), "configure-event", G_CALLBACK(on_resized), widgets);
if (strcmp(theme_id,"Gnome")==0){
on_about_system(NULL,curWidgets);
- g_signal_connect(G_OBJECT(curWidgets->window), "configure-event", G_CALLBACK(on_resized), widgets);
g_signal_connect(G_OBJECT(curWidgets->window), "event-after", G_CALLBACK(on_resized_done), widgets);
}
if (curWidgets->ButtonBackToMain!=NULL)
g_signal_connect(G_OBJECT(curWidgets->ButtonBackToMain), "clicked", G_CALLBACK(on_backToSettingsButton_clicked), curWidgets);
curWidgets->LabelTitle=GTK_WIDGET(gtk_builder_get_object(curWidgets->builder,"LabelTitle"));
- gtk_window_set_title(GTK_WINDOW(curWidgets->window),"UBLinux Settings Manager GNOME");
+ gtk_window_set_title(GTK_WINDOW(curWidgets->window),_("UBLinux Settings Manager"));
// Standard for all themes
@@ -1523,10 +1661,9 @@ dictionary *yon_theme_new(dictionary **widgetss, GtkBuilder *builder, char *them
if (gnld==0){
gnld=1;
-
+ g_signal_connect(G_OBJECT(curWidgets->settingsThemeChooser), "changed", G_CALLBACK(on_theme_selection_changed), curWidgets);
g_signal_connect(G_OBJECT(curWidgets->CancelHelpButton), "clicked", G_CALLBACK(on_CancelHelpButton_activated), curWidgets->builder);
g_signal_connect(G_OBJECT(curWidgets->ReadHelpButton), "clicked", G_CALLBACK(on_ReadHelpButton_activated), curWidgets->builder);
-
g_signal_connect(G_OBJECT(curWidgets->settingsSizeSlider), "value-changed", G_CALLBACK(on_settings_icon_size_changed), curWidgets);
g_signal_connect(G_OBJECT(curWidgets->settingsCancel), "clicked", G_CALLBACK(on_settings_cancel), curWidgets);
g_signal_connect(G_OBJECT(curWidgets->settingsAccept), "clicked", G_CALLBACK(on_settings_accept), widgetss);
@@ -1536,6 +1673,7 @@ dictionary *yon_theme_new(dictionary **widgetss, GtkBuilder *builder, char *them
g_signal_connect(G_OBJECT(curWidgets->SectionSettingsSaveButton), "clicked", G_CALLBACK(on_sections_save), curWidgets);
g_signal_connect(G_OBJECT(curWidgets->CautionUnderstandButton), "clicked", G_CALLBACK(on_caution_understand), curWidgets);
}
+ g_signal_connect(G_OBJECT(curWidgets->window), "destroy", G_CALLBACK(yon_main_quit), curWidgets);
gtk_label_set_text(GTK_LABEL(curWidgets->LabelTitle),_("UBLinux Settings Manager"));
gtk_label_set_text(GTK_LABEL(curWidgets->settingsSubmenuLabelSize),_("Icon size"));
gtk_label_set_text(GTK_LABEL(curWidgets->settingsSubmenuLabelTheme),_("Window theme"));
diff --git a/source/ubl-settings-manager.h b/source/ubl-settings-manager.h
index bb1c409..5c8f997 100644
--- a/source/ubl-settings-manager.h
+++ b/source/ubl-settings-manager.h
@@ -50,6 +50,7 @@ typedef struct IVGrapgicals{
GtkWidget *IV;
GtkWidget *label;
GtkWidget *sep;
+ GtkCellRendererPixbuf *iconRender;
} IVGraphicals;
typedef struct IconSection{
@@ -75,6 +76,7 @@ typedef struct {
int labelDensity;
char *lastUser;
int changed;
+ int fullscreen;
} config;
typedef struct {
diff --git a/ubl-settings-manager.css b/ubl-settings-manager.css
index 82d7eba..79a5aa8 100644
--- a/ubl-settings-manager.css
+++ b/ubl-settings-manager.css
@@ -6,15 +6,12 @@ background-color: #404040;
#GnomeIcon{
border-style:solid;
border-bottom-width: 1px;
- border-image: linear-gradient(90deg, #aaaaaa 0%, rgba(170,170,170,0) 80%);
+ border-image: linear-gradient(90deg, alpha(@theme_text_color,0.4) 55%, alpha(@theme_bg_color, 0) 100%);
border-image-slice: 1;
}
#SepIcon{
- border-style:solid;
- border-bottom-width: 2px;
- border-image: linear-gradient(90deg, #aaaaaa 0%, rgba(170,170,170,0) 100%);
- border-image-slice: 1;
+ background-color: alpha(@theme_text_color, 0.6);
}
#iconlabel {
@@ -30,81 +27,83 @@ background-color: #404040;
.noborder {
border: none;
}
+.menu:hover {
+ border-color:alpha(@theme_text_color, 0.01);
+}
+.menu {
+ border-color:alpha(@theme_text_color, 0.01);
+}
+.menu:hover >* {
+ border-color:alpha(@theme_text_color, 0.01);
+}
.menuitembottom{
- margin-top:0px;
- margin-bottom:0px;
- border-color:alpha(@theme_text_color, 0.4);
- border-style:solid;
- border-left-width:1px;
- border-bottom-width:1px;
- border-right-width:1px;
+ margin-top:0px;
+ margin-bottom:3px;
}
.menuitemmiddle{
- margin-top:0px;
- margin-bottom:0px;
- border-color:alpha(@theme_text_color, 0.4);
- border-style:solid;
- border-left-width:1px;
- border-right-width:1px;
+ margin-top:0px;
+ margin-bottom:0px;
}
.menuitemtop{
- margin-bottom:0px;
- border-color:alpha(@theme_text_color, 0.4);
- border-style:solid;
- border-left-width:1px;
- border-top-width:1px;
- border-right-width:1px;
+ margin-bottom:0px;
}
.menuitemtop *{
- margin:2px 2px 0 2px;
- padding: 5px 10px 3px 5px;
+ margin:2px 2px 0 2px;
+ padding: 5px 10px 3px 5px;
}
.menuitemmiddle *{
- margin:0 2px 0 2px;
- padding: 3px 10px 3px 5px;
+ margin:0 2px 0 2px;
+ padding: 3px 10px 3px 5px;
}
.menuitembottom *{
- margin:0 2px 2px 2px;
- padding: 3px 10px 5px 5px;
+ margin:0 2px 2px 2px;
+ padding: 3px 10px 5px 5px;
}
.menuitemtop:hover {
- background:@theme_bg_color;
+ background:@theme_bg_color;
}
.menuitemmiddle:hover {
- background:@theme_bg_color;
+ background:@theme_bg_color;
}
.menuitembottom:hover {
- background:@theme_bg_color;
-
+ background:@theme_bg_color;
+
}
.menuitemtop:hover* {
- margin:2px 2px 0 2px;
- padding: 5px 10px 3px 5px;
- background:@theme_selected_bg_color;
- border-color:transparent;
- border-radius: 2px;
+ margin:2px 2px 0 2px;
+ padding: 5px 10px 3px 5px;
+ background:@theme_selected_bg_color;
+ border-radius:2px;
}
.menuitemmiddle:hover* {
- margin:0 2px 0 2px;
- padding: 3px 10px 3px 5px;
- background:@theme_selected_bg_color;
- border-color:transparent;
- border-radius: 2px;
+ margin:0 2px 0 2px;
+ padding: 3px 10px 3px 5px;
+ background:@theme_selected_bg_color;
+ border-radius:2px;
}
.menuitembottom:hover* {
- margin:0 2px 2px 2px;
- padding: 3px 10px 5px 5px;
- background:@theme_selected_bg_color;
- border-color:transparent;
- border-radius: 2px;
-}
-.menu {
- border:none;
+ margin:0 2px 2px 2px;
+ padding: 3px 10px 5px 5px;
+ background:@theme_selected_bg_color;
+ border-radius:2px;
}
-.workingbg {
+
+.workingbg, #workingbg {
background-color:@theme_base_color;
}
-.workingbg.view.cell:selected{
+.workingbg.view.cell:selected {
background-color:@theme_selected_bg_color;
}
+.workingbg.view.cell:hover {
+ background-color:darker(@theme_selected_bg_color);
+ color:@theme_selected_text_color;
+ border-radius:3px;
+}
+.bkim {
+ transition: 200ms ease-out;
+ background-image: none;
+}
+
+
+
diff --git a/ubl-settings-manager.glade b/ubl-settings-manager.glade
index 548449c..2db0b73 100644
--- a/ubl-settings-manager.glade
+++ b/ubl-settings-manager.glade
@@ -19,10 +19,12 @@
True
False
center
- center
- 30
- 30
- gtk-dialog-warning
+ start
+ 20
+ 20
+ 20
+ 20
+ dialog-question-symbolic
6
@@ -36,9 +38,11 @@
True
False
center
- center
+ start
5
25
+ 20
+ 20
You are not allowed to change theme on such low resolution!
True
0.019999999552965164
@@ -84,7 +88,8 @@
@@ -191,31 +196,29 @@
False
@@ -370,109 +373,81 @@
True
False
True
-
-
+
+
True
False
- True
+ 32
+ ubconfig-gui
+ 5
+
+
+
+
+ True
+ False
+ center
+ center
+ vertical
-
- True
- False
-
-
- True
- False
- UBLinux Settings Manager
-
-
- True
- True
- 0
-
-
-
-
- True
- True
- 0
-
+
+
+
+ 1
+
+
+
+
+ True
+ False
-
+
False
True
- 1
-
-
-
-
- True
- False
-
-
-
- False
- True
- 0
-
-
-
-
- False
- True
- end
- 2
+ 0
+
+ end
+ 2
+
-
- True
- False
- 32
- ubconfig-gui
- 5
-
-
-
-
+
True
False
center
center
- vertical
- 1
+ end
+ 3
+
@@ -497,7 +472,7 @@
start
20
20
- gtk-dialog-question
+ dialog-question-symbolic
6
@@ -655,8 +630,7 @@
True
False
32
- gtk-dialog-question
- 5
+ dialog-question-symbolic
@@ -981,10 +955,11 @@
1
10
+
True
False
- gtk-go-back
+ go-first-symbolic
False
@@ -1010,6 +985,7 @@
True
False
center
+ gtk-missing-image
3
-
-
- False
- True
- 1
-
-
-
-
- True
- False
- vertical
-
-
- True
- True
- False
- True
- MainMenu
- none
- False
-
-
-
-
-
- False
- True
- 0
-
-
-
-
- False
- True
- end
- 2
-
-
-
-
True
@@ -1229,20 +1122,16 @@
Back to settings
- True
- False
True
False
False
False
+ center
+ center
10
10
image1
-
1
@@ -1260,12 +1149,67 @@
2
+
+
+ True
+ False
+ vertical
+
+
+ True
+ True
+ False
+ True
+ center
+ center
+ MainMenu
+ none
+ False
+
+
+
+
+
+ False
+ True
+ 0
+
+
+
+
+ end
+ 3
+
+
+
+
+ True
+ False
+ center
+ center
+
+
+
+
+
+
+ end
+ 4
+
+
+
@@ -1323,7 +1267,7 @@
True
False
- gtk-ok
+ object-select-symbolic
False
@@ -1603,31 +1547,34 @@
+
+
+
+
True
True
- 6
+ 4
horizontal
liststoreTemplate
- 10
+ 135
+ 10
+ 0
+ 0
+ 0
+ True
+ 4
2
3
+ 5
0
-
-
-
- 2
- 3
- 1
-
-
@@ -1636,6 +1583,10 @@
True
False
+
@@ -1970,4 +1921,99 @@
+
+ False
+
+
+ True
+ False
+ vertical
+
+
+ True
+ False
+
+
+ True
+ False
+ start
+ 20
+ 20
+ 20
+ 20
+ True
+ dialog-question-symbolic
+ 6
+
+
+ True
+ True
+ 0
+
+
+
+
+ True
+ False
+ start
+ 10
+ 10
+ 20
+ 20
+ Looks like you don't have ubl-settings-info installed on your PC
+ True
+ 0
+
+
+ False
+ True
+ 1
+
+
+
+
+ False
+ True
+ 0
+
+
+
+
+ Ok
+ True
+ True
+ True
+ end
+ end
+ 5
+ 5
+ 5
+ 5
+
+
+ False
+ True
+ end
+ 1
+
+
+
+
+
+
+
+
diff --git a/ubl-settings-manager_ru.po b/ubl-settings-manager_ru.po
index 19df6c7..6573cf3 100644
--- a/ubl-settings-manager_ru.po
+++ b/ubl-settings-manager_ru.po
@@ -18,8 +18,8 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
#: ubl-settings-manager.c:1338
-msgid "Back to settings"
-msgstr "Назад"
+msgid "Back to all settings"
+msgstr "Назад ко всем настройкам"
#: ubl-settings-manager.c:1418
msgid "UBLinux Settings Manager"