Commit 337077eb authored by Bastien Nocera's avatar Bastien Nocera

all: Drop GtkStock usage

parent 742f8a25
......@@ -34,12 +34,8 @@ int main (int argc, char **argv)
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
button = totem_glow_button_new ();
image = gtk_image_new_from_stock (GTK_STOCK_MEDIA_PLAY, GTK_ICON_SIZE_MENU);
image = gtk_image_new_from_icon_name ("media-playback-start", GTK_ICON_SIZE_MENU);
gtk_button_set_image (GTK_BUTTON (button), image);
#if 0
gtk_button_set_label (GTK_BUTTON (button), GTK_STOCK_MEDIA_PLAY);
gtk_button_set_use_stock (GTK_BUTTON (button), TRUE);
#endif
gtk_container_add (GTK_CONTAINER(window), button);
totem_glow_button_set_glow (TOTEM_GLOW_BUTTON (button), TRUE);
......
......@@ -958,8 +958,8 @@ load_button_clicked_cb (GtkButton *button,
mrl = totem_object_get_current_mrl (plugin->priv->totem);
main_window = totem_object_get_main_window (plugin->priv->totem);
dialog = gtk_file_chooser_dialog_new (_("Open Chapter File"), main_window, GTK_FILE_CHOOSER_ACTION_OPEN,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,
_("_Cancel"), GTK_RESPONSE_CANCEL,
_("_Open"), GTK_RESPONSE_ACCEPT,
NULL);
gtk_file_chooser_set_local_only (GTK_FILE_CHOOSER (dialog), FALSE);
......
......@@ -95,8 +95,8 @@ totem_edit_chapter_new (void)
gtk_window_set_title (GTK_WINDOW (edit_chapter), _("Add Chapter"));
gtk_dialog_add_buttons (GTK_DIALOG (edit_chapter),
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_OK, GTK_RESPONSE_OK,
_("_Cancel"), GTK_RESPONSE_CANCEL,
_("_Add"), GTK_RESPONSE_OK,
NULL);
gtk_container_set_border_width (GTK_CONTAINER (edit_chapter), 5);
gtk_dialog_set_default_response (GTK_DIALOG (edit_chapter), GTK_RESPONSE_OK);
......
......@@ -119,8 +119,8 @@ totem_save_file_plugin_copy (GSimpleAction *action,
fs = gtk_file_chooser_dialog_new (_("Save a Copy"),
totem_object_get_main_window (pi->priv->totem),
GTK_FILE_CHOOSER_ACTION_SAVE,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_SAVE, GTK_RESPONSE_ACCEPT,
_("_Cancel"), GTK_RESPONSE_CANCEL,
_("_Save"), GTK_RESPONSE_ACCEPT,
NULL);
gtk_dialog_set_default_response (GTK_DIALOG (fs), GTK_RESPONSE_ACCEPT);
gtk_file_chooser_set_local_only (GTK_FILE_CHOOSER (fs), FALSE);
......
......@@ -100,7 +100,7 @@ totem_gallery_progress_new (GPid child_pid, const gchar *output_filename)
/* Set up the window */
gtk_window_set_title (GTK_WINDOW (self), _("Creating Gallery..."));
gtk_window_set_resizable (GTK_WINDOW (self), FALSE);
gtk_dialog_add_button (GTK_DIALOG (self), GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL);
gtk_dialog_add_button (GTK_DIALOG (self), _("_Cancel"), GTK_RESPONSE_CANCEL);
gtk_dialog_set_default_response (GTK_DIALOG (self), GTK_RESPONSE_CANCEL);
/* Set the progress label */
......
......@@ -94,8 +94,8 @@ totem_gallery_new (Totem *totem)
/*gtk_window_set_resizable (GTK_WINDOW (gallery), FALSE);
gtk_dialog_set_has_separator (GTK_DIALOG (gallery), TRUE);*/
gtk_dialog_add_buttons (GTK_DIALOG (gallery),
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_SAVE, GTK_RESPONSE_OK,
_("_Cancel"), GTK_RESPONSE_CANCEL,
_("_Save"), GTK_RESPONSE_OK,
NULL);
gtk_dialog_set_default_response (GTK_DIALOG (gallery), GTK_RESPONSE_OK);
......
......@@ -195,8 +195,8 @@ totem_skipto_new (TotemObject *totem)
gtk_window_set_title (GTK_WINDOW (skipto), _("Skip To"));
gtk_dialog_add_buttons (GTK_DIALOG (skipto),
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_OK, GTK_RESPONSE_OK,
_("_Cancel"), GTK_RESPONSE_CANCEL,
_("_Skip To"), GTK_RESPONSE_OK,
NULL);
/* Skipto dialog */
......
......@@ -181,8 +181,8 @@ totem_open_location_new (void)
gtk_window_set_title (GTK_WINDOW (open_location), _("Open Location..."));
gtk_dialog_add_buttons (GTK_DIALOG (open_location),
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_OPEN, GTK_RESPONSE_OK,
_("_Cancel"), GTK_RESPONSE_CANCEL,
_("_Open"), GTK_RESPONSE_OK,
NULL);
gtk_dialog_set_response_sensitive (GTK_DIALOG (open_location), GTK_RESPONSE_OK, FALSE);
gtk_container_set_border_width (GTK_CONTAINER (open_location), 5);
......
......@@ -1060,8 +1060,8 @@ totem_playlist_save_files (GtkWidget *widget, TotemPlaylist *playlist)
fs = gtk_file_chooser_dialog_new (_("Save Playlist"),
totem_playlist_get_toplevel (playlist),
GTK_FILE_CHOOSER_ACTION_SAVE,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_SAVE, GTK_RESPONSE_ACCEPT,
_("_Cancel"), GTK_RESPONSE_CANCEL,
_("_Save"), GTK_RESPONSE_ACCEPT,
NULL);
gtk_dialog_set_default_response (GTK_DIALOG (fs), GTK_RESPONSE_ACCEPT);
gtk_file_chooser_set_local_only (GTK_FILE_CHOOSER (fs), FALSE);
......
......@@ -292,7 +292,7 @@ plugin_button_clicked_cb (GtkButton *button,
totem->plugins = gtk_dialog_new_with_buttons (_("Configure Plugins"),
GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (button))),
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_STOCK_CLOSE,
_("_Close"),
GTK_RESPONSE_CLOSE,
NULL);
gtk_container_set_border_width (GTK_CONTAINER (totem->plugins), 5);
......@@ -351,7 +351,7 @@ totem_setup_preferences (Totem *totem)
totem->prefs = gtk_dialog_new_with_buttons (_("Preferences"),
GTK_WINDOW (totem->win),
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_STOCK_CLOSE,
_("_Close"),
GTK_RESPONSE_ACCEPT,
NULL);
gtk_container_set_border_width (GTK_CONTAINER (totem->prefs), 5);
......
......@@ -418,8 +418,8 @@ totem_add_subtitle (GtkWindow *parent, const char *uri)
fs = gtk_file_chooser_dialog_new (_("Select Text Subtitles"),
parent,
GTK_FILE_CHOOSER_ACTION_OPEN,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,
_("_Cancel"), GTK_RESPONSE_CANCEL,
_("_Open"), GTK_RESPONSE_ACCEPT,
NULL);
gtk_dialog_set_default_response (GTK_DIALOG (fs), GTK_RESPONSE_ACCEPT);
gtk_file_chooser_set_local_only (GTK_FILE_CHOOSER (fs), FALSE);
......@@ -483,9 +483,9 @@ totem_add_files (GtkWindow *parent, const char *path)
fs = gtk_file_chooser_dialog_new (_("Select Movies or Playlists"),
parent,
GTK_FILE_CHOOSER_ACTION_OPEN,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
_("_Cancel"), GTK_RESPONSE_CANCEL,
_("Add Directory"), OPEN_DIRECTORY_RESPONSE,
GTK_STOCK_ADD, GTK_RESPONSE_ACCEPT,
_("_Add"), GTK_RESPONSE_ACCEPT,
NULL);
gtk_file_chooser_add_filter (GTK_FILE_CHOOSER (fs), filter_all);
gtk_file_chooser_add_filter (GTK_FILE_CHOOSER (fs), filter_supported);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment