From 02c793f24aa0a967473da48c5ff207c75ec2f413 Mon Sep 17 00:00:00 2001 From: William Jon McCann Date: Mon, 24 Jun 2013 19:28:53 -0400 Subject: [PATCH] Start migrating internals away from GtkStock --- gtk/deprecated/gtkcolorseldialog.c | 4 ++-- gtk/deprecated/gtkfontsel.c | 6 ++--- gtk/gtkaboutdialog.c | 2 -- gtk/gtkaboutdialog.ui | 7 +++--- gtk/gtkappchooserdialog.ui | 5 ++--- gtk/gtkassistant.c | 1 - gtk/gtkassistant.ui | 27 +++------------------- gtk/gtkbuilder.c | 2 +- gtk/gtkcolorchooserdialog.c | 1 - gtk/gtkcolorchooserdialog.ui | 3 +-- gtk/gtkcustompaperunixdialog.c | 2 +- gtk/gtkdialog.c | 12 +++++----- gtk/gtkdnd-quartz.c | 2 +- gtk/gtkdnd.c | 6 ++--- gtk/gtkentry.c | 26 ++++++++++----------- gtk/gtkfilechooserbutton.c | 18 +++------------ gtk/gtkfilechooserdefault.c | 34 +++++++++++----------------- gtk/gtkfilechooserdialog.c | 12 +++++----- gtk/gtkfontchooserdialog.ui | 3 +-- gtk/gtkiconhelper.c | 13 +++++++---- gtk/gtkimage.c | 12 +++++----- gtk/gtkinfobar.c | 19 +++++++--------- gtk/gtklabel.c | 28 ++++++++--------------- gtk/gtklinkbutton.c | 6 +---- gtk/gtkmessagedialog.c | 36 +++++++++++++----------------- gtk/gtkmountoperation.c | 13 +++++------ gtk/gtkpagesetupunixdialog.ui | 6 ++--- gtk/gtkplacessidebar.c | 9 ++------ gtk/gtkprintbackend.c | 6 ++--- gtk/gtkprinteroptionwidget.c | 5 ++--- gtk/gtkprintunixdialog.c | 9 +------- gtk/gtkprintunixdialog.ui | 11 ++++----- gtk/gtkrecentchooserdefault.c | 13 +++-------- gtk/gtkrecentchooserdialog.c | 4 ++-- gtk/gtkscalebutton.c | 7 +++--- gtk/gtktextview.c | 25 ++++++++++----------- gtk/gtktoolpalette.c | 3 ++- 37 files changed, 151 insertions(+), 247 deletions(-) diff --git a/gtk/deprecated/gtkcolorseldialog.c b/gtk/deprecated/gtkcolorseldialog.c index d5e9d663d3..c97e1a8126 100644 --- a/gtk/deprecated/gtkcolorseldialog.c +++ b/gtk/deprecated/gtkcolorseldialog.c @@ -194,7 +194,7 @@ gtk_color_selection_dialog_init (GtkColorSelectionDialog *colorseldiag) gtk_widget_show (priv->colorsel); priv->cancel_button = gtk_dialog_add_button (dialog, - GTK_STOCK_CANCEL, + _("_Cancel"), GTK_RESPONSE_CANCEL); priv->ok_button = gtk_dialog_add_button (dialog, @@ -204,7 +204,7 @@ gtk_color_selection_dialog_init (GtkColorSelectionDialog *colorseldiag) gtk_widget_grab_default (priv->ok_button); priv->help_button = gtk_dialog_add_button (dialog, - GTK_STOCK_HELP, + _("_Help"), GTK_RESPONSE_HELP); gtk_widget_hide (priv->help_button); diff --git a/gtk/deprecated/gtkfontsel.c b/gtk/deprecated/gtkfontsel.c index 0f55825b78..901f1337b6 100644 --- a/gtk/deprecated/gtkfontsel.c +++ b/gtk/deprecated/gtkfontsel.c @@ -1697,16 +1697,16 @@ gtk_font_selection_dialog_init (GtkFontSelectionDialog *fontseldiag) /* Create the action area */ priv->cancel_button = gtk_dialog_add_button (dialog, - GTK_STOCK_CANCEL, + _("_Cancel"), GTK_RESPONSE_CANCEL); priv->apply_button = gtk_dialog_add_button (dialog, - GTK_STOCK_APPLY, + _("_Apply"), GTK_RESPONSE_APPLY); gtk_widget_hide (priv->apply_button); priv->ok_button = gtk_dialog_add_button (dialog, - GTK_STOCK_OK, + _("_OK"), GTK_RESPONSE_OK); gtk_widget_grab_default (priv->ok_button); diff --git a/gtk/gtkaboutdialog.c b/gtk/gtkaboutdialog.c index 6abbade039..a9a9c45c7e 100644 --- a/gtk/gtkaboutdialog.c +++ b/gtk/gtkaboutdialog.c @@ -43,7 +43,6 @@ #include "gtknotebook.h" #include "gtkorientable.h" #include "gtkscrolledwindow.h" -#include "gtkstock.h" #include "gtktextview.h" #include "gtkiconfactory.h" #include "gtkshow.h" @@ -59,7 +58,6 @@ * SECTION:gtkaboutdialog * @Short_description: Display information about an application * @Title: GtkAboutDialog - * @See_also: #GTK_STOCK_ABOUT * * The GtkAboutDialog offers a simple way to display information about * a program like its logo, name, copyright, website and license. It is diff --git a/gtk/gtkaboutdialog.ui b/gtk/gtkaboutdialog.ui index 8174549309..887c187bdf 100644 --- a/gtk/gtkaboutdialog.ui +++ b/gtk/gtkaboutdialog.ui @@ -4,7 +4,7 @@ True False - gtk-about + help-about