1
diff -Nur gimp-2.2.11/app/dialogs/user-install-dialog.c gimp-2.2.11.new/app/dialogs/user-install-dialog.c
2
--- gimp-2.2.11/app/dialogs/user-install-dialog.c 2005-02-21 14:15:04.000000000 +0100
3
+++ gimp-2.2.11.new/app/dialogs/user-install-dialog.c 2006-07-10 13:34:53.000000000 +0200
6
static GtkWidget *notebook = NULL;
8
+#if USER_INSTALLATION_DIALOG
9
static GtkWidget *title_image = NULL;
11
-static GtkWidget *title_label = NULL;
12
-static GtkWidget *footer_label = NULL;
14
static GtkWidget *log_page = NULL;
16
static GtkWidget *tuning_page = NULL;
17
+static GtkWidget *footer_label = NULL;
18
+static GtkWidget *title_label = NULL;
20
-static GtkRcStyle *title_style = NULL;
21
-static GtkRcStyle *page_style = NULL;
23
+static GtkRcStyle *page_style = NULL;
24
+static GtkRcStyle *title_style = NULL;
25
+#if USER_INSTALLATION_DIALOG
26
static GdkColor black_color;
27
static GdkColor white_color;
28
static GdkColor title_color;
31
static gchar *oldgimp = NULL;
32
static gboolean migrate = FALSE;
1
diff -Nur gimp-2.3.16/app/dialogs/user-install-dialog.c gimp-2.3.16.new/app/dialogs/user-install-dialog.c
2
--- gimp-2.3.16/app/dialogs/user-install-dialog.c 2007-01-23 11:13:50.000000000 +0100
3
+++ gimp-2.3.16.new/app/dialogs/user-install-dialog.c 2007-05-02 17:54:23.000000000 +0200
6
user_install_dialog_run (GimpUserInstall *install)
38
8
+#if USER_INSTALLATION_DIALOG
52
oldgimp = g_strdup (gimp_directory ());
58
gimprc = gimp_rc_new (alternate_system_gimprc, alternate_gimprc, verbose);
60
+#if USER_INSTALLATION_DIALOG
61
dialog = user_install_dialog =
62
gimp_dialog_new (_("GIMP User Installation"), "gimp-user-installation",
69
+ user_install_run(migrate ? oldgimp : NULL);
75
GtkTextBuffer *buffer,
78
+#if USER_INSTALLATION_DIALOG
85
gtk_text_buffer_insert (buffer, &cursor, "\n", -1);
88
while (gtk_events_pending ())
89
gtk_main_iteration ();
92
msg = g_strdup_printf (_("Copying file '%s' from '%s'..."),
93
gimp_filename_to_utf8 (dest),
94
gimp_filename_to_utf8 (source));
95
+#if USER_INSTALLATION_DIALOG
96
gtk_text_buffer_insert_at_cursor (log_buffer, msg, -1);
100
while (gtk_events_pending ())
101
@@ -1083,7 +1091,9 @@
103
msg = g_strdup_printf (_("Creating folder '%s'..."),
104
gimp_filename_to_utf8 (dirname));
105
+#if USER_INSTALLATION_DIALOG
106
gtk_text_buffer_insert_at_cursor (log_buffer, msg, -1);
110
while (gtk_events_pending ())
111
@@ -1302,18 +1312,20 @@
113
user_install_run (const gchar *oldgimp)
115
+#if USER_INSTALLATION_DIALOG
116
GtkWidget *scrolled_window;
118
GtkTextBuffer *log_buffer;
120
GError *error = NULL;
122
+#if USER_INSTALLATION_DIALOG
123
scrolled_window = gtk_scrolled_window_new (NULL, NULL);
124
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_window),
125
GTK_POLICY_AUTOMATIC,
126
GTK_POLICY_AUTOMATIC);
127
gtk_box_pack_start (GTK_BOX (log_page), scrolled_window, TRUE, TRUE, 0);
128
gtk_widget_show (scrolled_window);
131
log_buffer = gtk_text_buffer_new (NULL);
133
gtk_text_buffer_create_tag (log_buffer, "bold",
134
@@ -1322,13 +1334,13 @@
136
log_view = gtk_text_view_new_with_buffer (log_buffer);
137
g_object_unref (log_buffer);
139
+#if USER_INSTALLATION_DIALOG
140
PAGE_STYLE (log_view);
141
gtk_text_view_set_editable (GTK_TEXT_VIEW (log_view), FALSE);
143
gtk_container_add (GTK_CONTAINER (scrolled_window), log_view);
144
gtk_widget_show (log_view);
147
if (! user_install_mkdir (log_buffer, gimp_directory (), &error))
13
g_return_val_if_fail (install != NULL, FALSE);
15
+#if USER_INSTALLATION_DIALOG
16
dialog = user_install_dialog_new (install);
19
success = gimp_user_install_run (install);
21
+#if USER_INSTALLATION_DIALOG
149
print_log (log_view, log_buffer, error);
24
g_signal_connect (dialog, "response",
28
gtk_widget_destroy (dialog);