kov changed libgksu/branches/libgksu2/libgksuui/gksuui-dialog.c

Gustavo Noronha kov at costa.debian.org
Fri Mar 3 02:45:41 UTC 2006


Mensagem de log: 
removed trailing whitespaces


-----


Modified: libgksu/branches/libgksu2/libgksuui/gksuui-dialog.c
===================================================================
--- libgksu/branches/libgksu2/libgksuui/gksuui-dialog.c	2006-03-03 02:27:33 UTC (rev 514)
+++ libgksu/branches/libgksu2/libgksuui/gksuui-dialog.c	2006-03-03 02:45:41 UTC (rev 515)
@@ -65,7 +65,7 @@
 {
 }
 
-/** 
+/**
  * Helper that can detect if caps lock is pressed
  */
 static gboolean
@@ -86,9 +86,9 @@
 {
    GksuuiDialog *dialog = user_data;
 
-   if (is_capslock_on ()) 
+   if (is_capslock_on ())
       gtk_widget_show (dialog->label_warn_capslock);
-   else 
+   else
       gtk_widget_hide (dialog->label_warn_capslock);
 
    return FALSE;
@@ -101,13 +101,13 @@
   GtkDialog *dialog;
   GtkWidget *hbox; /* aditional hbox for 'password: entry' label */
 
-  /* 
+  /*
      make sure we're using UTF-8 and getting our locale files
      from the right place
   */
   bindtextdomain(PACKAGE_NAME, LOCALEDIR);
   bind_textdomain_codeset (PACKAGE_NAME, "UTF-8");
-  
+
   gtk_widget_push_composite_child ();
 
   /* dialog window */
@@ -144,64 +144,64 @@
   gtk_widget_show (gksuui_dialog->hbox);
 
   /* image */
-  gksuui_dialog->image = 
+  gksuui_dialog->image =
     gtk_image_new_from_stock (GTK_STOCK_DIALOG_AUTHENTICATION,
 			      GTK_ICON_SIZE_DIALOG);
   gtk_misc_set_alignment (GTK_MISC(gksuui_dialog->image), 0.5, 0);
-  gtk_box_pack_start (GTK_BOX(gksuui_dialog->hbox), gksuui_dialog->image, 
+  gtk_box_pack_start (GTK_BOX(gksuui_dialog->hbox), gksuui_dialog->image,
 		      FALSE, FALSE, 0);
   gtk_widget_show (gksuui_dialog->image);
 
   /* vbox for label and entry */
   gksuui_dialog->entry_vbox = gtk_vbox_new (FALSE, 12);
-  gtk_box_pack_start (GTK_BOX(gksuui_dialog->hbox), gksuui_dialog->entry_vbox, 
+  gtk_box_pack_start (GTK_BOX(gksuui_dialog->hbox), gksuui_dialog->entry_vbox,
 		      TRUE, TRUE, 0);
   gtk_widget_show (gksuui_dialog->entry_vbox);
 
   /* label */
   gksuui_dialog->label = gtk_label_new (_("<span weight=\"bold\" size=\"larger\">"
 					  "Type the root password.</span>\n"));
-  gtk_label_set_justify (GTK_LABEL(gksuui_dialog->label), 
+  gtk_label_set_justify (GTK_LABEL(gksuui_dialog->label),
 			 GTK_JUSTIFY_CENTER);
   gtk_label_set_use_markup (GTK_LABEL(gksuui_dialog->label), TRUE);
   gtk_label_set_line_wrap (GTK_LABEL(gksuui_dialog->label), TRUE);
   gtk_misc_set_alignment (GTK_MISC(gksuui_dialog->label), 0.0, 0);
-  gtk_box_pack_start (GTK_BOX(gksuui_dialog->entry_vbox), 
+  gtk_box_pack_start (GTK_BOX(gksuui_dialog->entry_vbox),
 		      gksuui_dialog->label, TRUE, TRUE, 0);
   gtk_widget_show (gksuui_dialog->label);
 
   /* hbox for entry and label */
   hbox = gtk_hbox_new (FALSE, 6);
-  gtk_box_pack_start (GTK_BOX (gksuui_dialog->entry_vbox), hbox, 
+  gtk_box_pack_start (GTK_BOX (gksuui_dialog->entry_vbox), hbox,
 		      TRUE, TRUE, 0);
   gtk_widget_show (hbox);
 
   /* entry label */
   gksuui_dialog->prompt_label = gtk_label_new (_("Password:"));
-  gtk_box_pack_start (GTK_BOX(hbox), gksuui_dialog->prompt_label, 
+  gtk_box_pack_start (GTK_BOX(hbox), gksuui_dialog->prompt_label,
 		      FALSE, FALSE, 0);
   gtk_widget_show (gksuui_dialog->prompt_label);
-  
+
   /* entry */
   gksuui_dialog->entry = gtk_entry_new();
   g_signal_connect (G_OBJECT(gksuui_dialog->entry), "key-press-event",
 		    G_CALLBACK(verify_capslock_cb), gksuui_dialog);
   g_signal_connect_swapped (G_OBJECT(gksuui_dialog->entry), "activate",
-			    G_CALLBACK(gtk_button_clicked), 
+			    G_CALLBACK(gtk_button_clicked),
 			    gksuui_dialog->ok_button);
   gtk_entry_set_visibility(GTK_ENTRY(gksuui_dialog->entry), FALSE);
-  gtk_entry_set_invisible_char(GTK_ENTRY(gksuui_dialog->entry), 0x25cf); 
-  gtk_box_pack_start (GTK_BOX (hbox), gksuui_dialog->entry, 
+  gtk_entry_set_invisible_char(GTK_ENTRY(gksuui_dialog->entry), 0x25cf);
+  gtk_box_pack_start (GTK_BOX (hbox), gksuui_dialog->entry,
 		      TRUE, TRUE, 0);
   gtk_widget_show (gksuui_dialog->entry);
   gtk_widget_grab_focus(gksuui_dialog->entry);
 
   /* label capslock warning */
   gksuui_dialog->label_warn_capslock = gtk_label_new (_("<b>You have capslock on</b>"));
-  gtk_label_set_justify (GTK_LABEL(gksuui_dialog->label_warn_capslock), 
+  gtk_label_set_justify (GTK_LABEL(gksuui_dialog->label_warn_capslock),
 			 GTK_JUSTIFY_CENTER);
   gtk_label_set_use_markup (GTK_LABEL(gksuui_dialog->label_warn_capslock), TRUE);
-  gtk_box_pack_start (GTK_BOX(gksuui_dialog->entry_vbox), 
+  gtk_box_pack_start (GTK_BOX(gksuui_dialog->entry_vbox),
 		      gksuui_dialog->label_warn_capslock, TRUE, TRUE, 0);
 
   /* expose event */
@@ -214,7 +214,7 @@
 
 /**
  * gksuui_dialog_new:
- * 
+ *
  * Creates a new #GksuuiDialog.
  *
  * Returns: the new #GksuuiDialog
@@ -229,7 +229,7 @@
  * gksuui_dialog_set_message:
  * @dialog: the dialog on which to set the message
  * @message: the message to be set on the dialog
- * 
+ *
  * Sets the message that is displayed to the user when
  * requesting a password. You can use Pango markup to
  * modify font attributes.
@@ -246,7 +246,7 @@
 /**
  * gksuui_dialog_get_message:
  * @dialog: the dialog from which to get the message
- * 
+ *
  * Gets the current message that the dialog will use
  * when run.
  *
@@ -298,7 +298,7 @@
 /**
  * gksuui_dialog_get_password:
  * @dialog: the dialog from which to get the message
- * 
+ *
  * Gets the password typed by the user on the dialog.
  * This is a convenience function to grab the password
  * easily from the dialog after calling gtk_dialog_run ()
@@ -317,7 +317,7 @@
  * gksuui_dialog_set_prompt:
  * @dialog: the dialog on which to set the prompt
  * @prompt: the prompt to be set on the dialog
- * 
+ *
  * Sets the prompt that is displayed to the user when
  * requesting a password. You can use Pango markup to
  * modify font attributes.
@@ -334,7 +334,7 @@
 /**
  * gksuui_dialog_get_prompt:
  * @dialog: the dialog from which to get the prompt
- * 
+ *
  * Gets the current prompt that the dialog will use
  * when run.
  *




More information about the gksu-commits mailing list