Skip to content

Commit

Permalink
Merge pull request #14 from anaselli/master
Browse files Browse the repository at this point in the history
Pull request YGUI.cc
  • Loading branch information
mlandres committed Jul 21, 2012
2 parents 91ab344 + 5069d0d commit e2f70c4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/YGUI.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ static std::string askForFileOrDirectory (GtkFileChooserAction action,
static void errorMsg (const char *msg)
{
GtkWidget* dialog = gtk_message_dialog_new (NULL,
GtkDialogFlags (0), GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, _("Error"));
gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), msg);
GtkDialogFlags (0), GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, "%s", _("Error"));
gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), "%s", msg);
gtk_dialog_run (GTK_DIALOG (dialog));
gtk_widget_destroy (dialog);
}
Expand Down Expand Up @@ -128,7 +128,7 @@ void YGUI::checkInit()
else if (!strcmp (argp, "noborder"))
m_no_border = true;
else if (!strcmp (argp, "help")) {
printf (
printf ("%s",
_("Command line options for the YaST2 UI (GTK plugin):\n\n"
"--noborder no window manager border for main dialogs\n"
"--fullscreen use full screen for main dialogs\n"
Expand Down Expand Up @@ -300,7 +300,7 @@ void YGUI::toggleRecordMacro()
normalCursor();

GtkWidget* dialog = gtk_message_dialog_new (NULL,
GtkDialogFlags (0), GTK_MESSAGE_INFO, GTK_BUTTONS_OK,
GtkDialogFlags (0), GTK_MESSAGE_INFO, GTK_BUTTONS_OK, "%s",
_("Macro recording done."));
gtk_dialog_run (GTK_DIALOG (dialog));
gtk_widget_destroy (dialog);
Expand Down

0 comments on commit e2f70c4

Please sign in to comment.