[geany/geany] 003435: Revert "Make use of theme icon a various pref."
Colomban Wendling
git-noreply at geany.org
Tue Jan 1 18:04:59 UTC 2013
Branch: refs/heads/master
Author: Colomban Wendling <ban at herbesfolles.org>
Committer: Colomban Wendling <ban at herbesfolles.org>
Date: Tue, 01 Jan 2013 18:04:59 UTC
Commit: 003435e16ded66be6084a017a3169a1fc8a61bcb
https://github.com/geany/geany/commit/003435e16ded66be6084a017a3169a1fc8a61bcb
Log Message:
-----------
Revert "Make use of theme icon a various pref."
A preference for an icon doesn't make sense; if someone don't like
her theme's icon she should either switch to another theme, override
that specific icon or don't bother.
This reverts commit 6897cd49c69535c6563e56ae011c6f8382fec485.
Modified Paths:
--------------
src/keyfile.c
src/main.c
src/main.h
Modified: src/keyfile.c
4 files changed, 0 insertions(+), 4 deletions(-)
===================================================================
@@ -240,10 +240,6 @@ static void init_pref_groups(void)
"number_non_ft_menu_items", 0);
stash_group_add_integer(group, &build_menu_prefs.number_exec_menu_items,
"number_exec_menu_items", 0);
-
- /* use the Geany icon instead of the theme */
- stash_group_add_boolean(group, &main_use_geany_icon,
- "use_geany_icon", TRUE);
}
Modified: src/main.c
20 files changed, 6 insertions(+), 14 deletions(-)
===================================================================
@@ -90,7 +90,6 @@
GeanyStatus main_status;
CommandLineOptions cl_options; /* fields initialised in parse_command_line_options */
-gboolean main_use_geany_icon;
static const gchar geany_lib_versions[] = "GTK %u.%u.%u, GLib %u.%u.%u";
@@ -1061,19 +1060,12 @@ gint main(gint argc, gchar **argv)
/* set window icon */
{
GdkPixbuf *pb;
- if (main_use_geany_icon)
- {
- pb = ui_new_pixbuf_from_inline(GEANY_IMAGE_LOGO);
- }
- else
- {
- pb = gtk_icon_theme_load_icon(gtk_icon_theme_get_default(), "geany", 48, 0, NULL);
- if (pb == NULL)
- {
- g_warning("Unable to find Geany icon in theme, using embedded icon");
- pb = ui_new_pixbuf_from_inline(GEANY_IMAGE_LOGO);
- }
- }
+ pb = gtk_icon_theme_load_icon(gtk_icon_theme_get_default(), "geany", 48, 0, NULL);
+ if (pb == NULL)
+ {
+ g_warning("Unable to find Geany icon in theme, using embedded icon");
+ pb = ui_new_pixbuf_from_inline(GEANY_IMAGE_LOGO);
+ }
gtk_window_set_icon(GTK_WINDOW(main_widgets.window), pb);
g_object_unref(pb); /* free our reference */
}
Modified: src/main.h
2 files changed, 0 insertions(+), 2 deletions(-)
===================================================================
@@ -51,8 +51,6 @@
extern GeanyStatus main_status;
-extern gboolean main_use_geany_icon;
-
const gchar *main_get_version_string(void);
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list