diff options
Diffstat (limited to 'capplets/about-me')
-rw-r--r-- | capplets/about-me/mate-about-me-password.c | 6 | ||||
-rw-r--r-- | capplets/about-me/mate-about-me.c | 20 |
2 files changed, 0 insertions, 26 deletions
diff --git a/capplets/about-me/mate-about-me-password.c b/capplets/about-me/mate-about-me-password.c index 0b8e7cd3..e34c8662 100644 --- a/capplets/about-me/mate-about-me-password.c +++ b/capplets/about-me/mate-about-me-password.c @@ -428,7 +428,6 @@ io_watch_stdout (GIOChannel *source, GIOCondition condition, PasswordDialog *pdi GError *error = NULL; gchar *msg = NULL; /* Status error message */ - GtkBuilder *dialog = NULL; gboolean reinit = FALSE; @@ -437,8 +436,6 @@ io_watch_stdout (GIOChannel *source, GIOCondition condition, PasswordDialog *pdi str = g_string_new (""); } - dialog = pdialog->ui; - if (g_io_channel_read_chars (source, buf, BUFSIZE, &bytes_read, &error) != G_IO_STATUS_NORMAL) { g_warning ("IO Channel read error: %s", error->message); g_error_free (error); @@ -873,12 +870,9 @@ passdlg_authenticate (GtkButton *button, PasswordDialog *pdialog) static guint passdlg_validate_passwords (PasswordDialog *pdialog) { - GtkBuilder *dialog = NULL; const gchar *new_password, *retyped_password; glong nlen, rlen; - dialog = pdialog->ui; - new_password = gtk_entry_get_text (pdialog->new_password); retyped_password = gtk_entry_get_text (pdialog->retyped_password); diff --git a/capplets/about-me/mate-about-me.c b/capplets/about-me/mate-about-me.c index 03d6331a..0d4607fd 100644 --- a/capplets/about-me/mate-about-me.c +++ b/capplets/about-me/mate-about-me.c @@ -66,21 +66,6 @@ typedef struct { static MateAboutMe *me = NULL; -/*** Utility functions ***/ -static void -about_me_error (GtkWindow *parent, gchar *str) -{ - GtkWidget *dialog; - - dialog = gtk_message_dialog_new (parent, - GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, - GTK_BUTTONS_OK, "%s", str); - - gtk_dialog_run (GTK_DIALOG (dialog)); - gtk_widget_destroy (dialog); -} - -/********************/ static void about_me_destroy (void) { @@ -120,16 +105,12 @@ about_me_load_photo (MateAboutMe *me) static void about_me_update_photo (MateAboutMe *me) { - GtkBuilder *dialog; gchar *file; GError *error; - gboolean result; guchar *data; gsize length; - dialog = me->dialog; - if (me->image_changed && me->have_image) { GdkPixbufLoader *loader = gdk_pixbuf_loader_new (); GdkPixbuf *pixbuf = NULL, *scaled = NULL; @@ -406,7 +387,6 @@ about_me_setup_dialog (void) GtkWidget *main_dialog; GtkIconInfo *icon; GtkBuilder *dialog; - GError *error = NULL; gchar *str; me = g_new0 (MateAboutMe, 1); |