Remove unused code from after preferences refactoring
This commit is contained in:
parent
d37194cd7a
commit
e4dbbf8a27
1 changed files with 0 additions and 47 deletions
|
@ -76,14 +76,6 @@ midori_preferences_class_init (MidoriPreferencesClass* class)
|
||||||
G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
|
G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
midori_preferences_response_cb (MidoriPreferences* preferences,
|
|
||||||
gint response)
|
|
||||||
{
|
|
||||||
if (response == GTK_RESPONSE_CLOSE)
|
|
||||||
gtk_widget_destroy (GTK_WIDGET (preferences));
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
midori_preferences_init (MidoriPreferences* preferences)
|
midori_preferences_init (MidoriPreferences* preferences)
|
||||||
{
|
{
|
||||||
|
@ -122,8 +114,6 @@ midori_preferences_get_property (GObject* object,
|
||||||
GValue* value,
|
GValue* value,
|
||||||
GParamSpec* pspec)
|
GParamSpec* pspec)
|
||||||
{
|
{
|
||||||
MidoriPreferences* preferences = MIDORI_PREFERENCES (object);
|
|
||||||
|
|
||||||
switch (prop_id)
|
switch (prop_id)
|
||||||
{
|
{
|
||||||
default:
|
default:
|
||||||
|
@ -175,42 +165,6 @@ midori_preferences_homepage_current_clicked_cb (GtkWidget* button,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
|
||||||
proxy_download_manager_icon_cb (GtkWidget* entry,
|
|
||||||
GdkEventFocus* event,
|
|
||||||
GtkImage* icon)
|
|
||||||
{
|
|
||||||
const gchar* command;
|
|
||||||
gchar* first_space;
|
|
||||||
gchar* first_part;
|
|
||||||
gchar* path;
|
|
||||||
|
|
||||||
command = gtk_entry_get_text (GTK_ENTRY (entry));
|
|
||||||
if ((first_space = strstr (command, " ")))
|
|
||||||
first_part = g_strndup (command, first_space - command);
|
|
||||||
else
|
|
||||||
first_part = g_strdup (command);
|
|
||||||
path = g_find_program_in_path (first_part);
|
|
||||||
|
|
||||||
if (path)
|
|
||||||
{
|
|
||||||
if (gtk_icon_theme_has_icon (gtk_icon_theme_get_for_screen (
|
|
||||||
gtk_widget_get_screen (entry)), first_part))
|
|
||||||
gtk_image_set_from_icon_name (icon, first_part, GTK_ICON_SIZE_MENU);
|
|
||||||
else
|
|
||||||
gtk_image_set_from_stock (icon, GTK_STOCK_EXECUTE, GTK_ICON_SIZE_MENU);
|
|
||||||
g_free (path);
|
|
||||||
}
|
|
||||||
else if (first_part && *first_part)
|
|
||||||
gtk_image_set_from_stock (icon, GTK_STOCK_STOP, GTK_ICON_SIZE_MENU);
|
|
||||||
else
|
|
||||||
gtk_image_clear (icon);
|
|
||||||
|
|
||||||
g_free (first_part);
|
|
||||||
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
midori_preferences_notify_preferred_encoding_cb (MidoriWebSettings* settings,
|
midori_preferences_notify_preferred_encoding_cb (MidoriWebSettings* settings,
|
||||||
GParamSpec* pspec,
|
GParamSpec* pspec,
|
||||||
|
@ -307,7 +261,6 @@ midori_preferences_set_settings (MidoriPreferences* preferences,
|
||||||
GtkWidget* label;
|
GtkWidget* label;
|
||||||
GtkWidget* button;
|
GtkWidget* button;
|
||||||
GtkWidget* entry;
|
GtkWidget* entry;
|
||||||
gint icon_width, icon_height;
|
|
||||||
|
|
||||||
g_return_if_fail (MIDORI_IS_PREFERENCES (preferences));
|
g_return_if_fail (MIDORI_IS_PREFERENCES (preferences));
|
||||||
g_return_if_fail (MIDORI_IS_WEB_SETTINGS (settings));
|
g_return_if_fail (MIDORI_IS_WEB_SETTINGS (settings));
|
||||||
|
|
Loading…
Reference in a new issue