X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fpage_command.c;h=7e976e2125c686ac75ffe0aa565fb4731e618782;hb=0984db69a0f1bf22495be70aa06b96217d5fb0b8;hp=aa34f5dd1e10b373d5dcf1bf8b0e90f708289dde;hpb=4c1dc967fd477540e82566fff8d60e1c67ff3ca1;p=rugen diff --git a/src/page_command.c b/src/page_command.c index aa34f5d..7e976e2 100644 --- a/src/page_command.c +++ b/src/page_command.c @@ -1,6 +1,7 @@ /* * page_command.c -- Command Page Handling * Copyright (C) 2002-2003 Charles Yates + * Copyright (C) 2010 Dan Dennedy * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -28,7 +29,6 @@ #include "interface.h" #include "support.h" #include "dv1394app.h" -#include "util.h" #include "page.h" typedef struct page_command_t @@ -55,7 +55,7 @@ static gboolean on_command_pressed( GtkWidget *button, gpointer user_data ) if ( dv1394app_get_parser( this->app ) != NULL ) { int index = 0; - valerie_response response = NULL; + mvcp_response response = NULL; GtkTextIter iter; widget = lookup_widget( this_page_get_widget( this ), "entry_command" ); @@ -72,14 +72,14 @@ static gboolean on_command_pressed( GtkWidget *button, gpointer user_data ) gtk_text_buffer_insert_at_cursor( buffer, "> ", -1 ); gtk_text_buffer_insert_at_cursor( buffer, command, -1 ); gtk_text_buffer_insert_at_cursor( buffer, "\n", -1 ); - valerie_execute( dv1394app_get_command( this->app ), 1024, "%s", command ); - response = valerie_get_last_response( dv1394app_get_command( this->app ) ); - for ( index = 0; index < valerie_response_count( response ); index ++ ) + mvcp_execute( dv1394app_get_command( this->app ), 1024, "%s", command ); + response = mvcp_get_last_response( dv1394app_get_command( this->app ) ); + for ( index = 0; index < mvcp_response_count( response ); index ++ ) { - if ( index != valerie_response_count( response ) - 1 || - strcmp( valerie_response_get_line( response, index ), "" ) ) + if ( index != mvcp_response_count( response ) - 1 || + strcmp( mvcp_response_get_line( response, index ), "" ) ) { - gtk_text_buffer_insert_at_cursor( buffer, valerie_response_get_line( response, index ), -1 ); + gtk_text_buffer_insert_at_cursor( buffer, mvcp_response_get_line( response, index ), -1 ); gtk_text_buffer_insert_at_cursor( buffer, "\n", -1 ); } } @@ -91,7 +91,7 @@ static gboolean on_command_pressed( GtkWidget *button, gpointer user_data ) } else { - beep( ); +// beep( ); } return FALSE; @@ -118,8 +118,8 @@ static GtkWidget *this_page_get_widget( page_command this ) static void this_page_get_toolbar_info( page this, GtkIconSize size, GtkWidget **icon, char **label ) { - *icon = gtk_image_new_from_stock( "gtk-dialog-info", size ); - *label = "_Shell"; + *icon = gtk_image_new_from_stock( "gtk-execute", size ); + *label = _("_Shell"); } static void this_on_connect( page_command this )