Launcher icon background
This commit is contained in:
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -117,7 +117,7 @@ GtkWidget *launcher_apps_dirs;
|
||||
GtkWidget *launcher_icon_size, *launcher_icon_theme, *launcher_padding_x, *launcher_padding_y, *launcher_spacing;
|
||||
GtkWidget *launcher_icon_opacity, *launcher_icon_saturation, *launcher_icon_brightness;
|
||||
GtkWidget *margin_x, *margin_y;
|
||||
GtkWidget *launcher_background;
|
||||
GtkWidget *launcher_background, *launcher_icon_background;
|
||||
GtkWidget *startup_notifications;
|
||||
IconThemeWrapper *icon_theme;
|
||||
GtkWidget *launcher_tooltip;
|
||||
@@ -2309,6 +2309,20 @@ void create_launcher(GtkWidget *parent)
|
||||
gtk_tooltips_set_tip(tooltips, launcher_background, _("Selects the background used to display the launcher. "
|
||||
"Backgrounds can be edited in the Backgrounds tab."), NULL);
|
||||
|
||||
row++, col = 2;
|
||||
label = gtk_label_new(_("Icon background"));
|
||||
gtk_misc_set_alignment(GTK_MISC(label), 0, 0);
|
||||
gtk_widget_show(label);
|
||||
gtk_table_attach(GTK_TABLE(table), label, col, col+1, row, row+1, GTK_FILL, 0, 0, 0);
|
||||
col++;
|
||||
|
||||
launcher_icon_background = create_background_combo(_("Launcher icon"));
|
||||
gtk_widget_show(launcher_icon_background);
|
||||
gtk_table_attach(GTK_TABLE(table), launcher_icon_background, col, col+1, row, row+1, GTK_FILL, 0, 0, 0);
|
||||
col++;
|
||||
gtk_tooltips_set_tip(tooltips, launcher_icon_background, _("Selects the background used to display the launcher icon. "
|
||||
"Backgrounds can be edited in the Backgrounds tab."), NULL);
|
||||
|
||||
row++, col = 2;
|
||||
label = gtk_label_new(_("Horizontal padding"));
|
||||
gtk_misc_set_alignment(GTK_MISC(label), 0, 0);
|
||||
|
||||
@@ -128,7 +128,7 @@ extern GtkWidget *launcher_apps_dirs;
|
||||
extern GtkWidget *launcher_icon_size, *launcher_icon_theme, *launcher_padding_x, *launcher_padding_y, *launcher_spacing;
|
||||
extern GtkWidget *launcher_icon_opacity, *launcher_icon_saturation, *launcher_icon_brightness;
|
||||
extern GtkWidget *margin_x, *margin_y;
|
||||
extern GtkWidget *launcher_background;
|
||||
extern GtkWidget *launcher_background, *launcher_icon_background;
|
||||
extern GtkWidget *startup_notifications;
|
||||
extern IconThemeWrapper *icon_theme;
|
||||
extern GtkWidget *launcher_tooltip;
|
||||
|
||||
@@ -479,6 +479,7 @@ void config_write_launcher(FILE *fp)
|
||||
(int)gtk_spin_button_get_value(GTK_SPIN_BUTTON(launcher_padding_y)),
|
||||
(int)gtk_spin_button_get_value(GTK_SPIN_BUTTON(launcher_spacing)));
|
||||
fprintf(fp, "launcher_background_id = %d\n", gtk_combo_box_get_active(GTK_COMBO_BOX(launcher_background)));
|
||||
fprintf(fp, "launcher_icon_background_id = %d\n", gtk_combo_box_get_active(GTK_COMBO_BOX(launcher_icon_background)));
|
||||
fprintf(fp, "launcher_icon_size = %d\n", (int)gtk_spin_button_get_value(GTK_SPIN_BUTTON(launcher_icon_size)));
|
||||
fprintf(fp,
|
||||
"launcher_icon_asb = %d %d %d\n",
|
||||
@@ -1358,6 +1359,10 @@ void add_entry(char *key, char *value)
|
||||
int id = background_index_safe(atoi(value));
|
||||
gtk_combo_box_set_active(GTK_COMBO_BOX(launcher_background), id);
|
||||
}
|
||||
else if (strcmp(key, "launcher_icon_background_id") == 0) {
|
||||
int id = background_index_safe(atoi(value));
|
||||
gtk_combo_box_set_active(GTK_COMBO_BOX(launcher_icon_background), id);
|
||||
}
|
||||
else if (strcmp(key, "launcher_icon_size") == 0) {
|
||||
gtk_spin_button_set_value(GTK_SPIN_BUTTON(launcher_icon_size), atoi(value));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user