fixing panel selection
This commit is contained in:
parent
eaef475d7a
commit
b9d7b24730
@ -326,7 +326,7 @@ static int aio_panel_add( GawIoData *gawio, char *pline )
|
|||||||
UserData *ud = gawio->ud;
|
UserData *ud = gawio->ud;
|
||||||
int i ;
|
int i ;
|
||||||
|
|
||||||
msg_dbg("Fonction called %s", pline );
|
msg_dbg("Function called %s", pline );
|
||||||
char *tok = stu_token_next( &pline, " ", " " );
|
char *tok = stu_token_next( &pline, " ", " " );
|
||||||
if ( ! tok ) {
|
if ( ! tok ) {
|
||||||
gawio->msg = app_strdup(_("Expecting number") );
|
gawio->msg = app_strdup(_("Expecting number") );
|
||||||
|
@ -606,7 +606,10 @@ void aw_create_main_window ( UserData *ud )
|
|||||||
|
|
||||||
/* create 2 panels */
|
/* create 2 panels */
|
||||||
for (i = 0 ; i < ud->reqpanels ; i++) {
|
for (i = 0 ; i < ud->reqpanels ; i++) {
|
||||||
ap_panel_add_line(ud, NULL, 0);
|
WavePanel *n = ap_panel_add_line(ud, NULL, 0);
|
||||||
|
if (i == 0) {
|
||||||
|
pa_panel_set_selected( n, n->ud );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -345,7 +345,8 @@ static void aw_pop_add_panel_above_gaction (GSimpleAction *action, GVariant *par
|
|||||||
{
|
{
|
||||||
WavePanel *wp = (WavePanel *) user_data;
|
WavePanel *wp = (WavePanel *) user_data;
|
||||||
if ( wp ) {
|
if ( wp ) {
|
||||||
ap_panel_add_line( wp->ud, wp, 0);
|
WavePanel *n = ap_panel_add_line( wp->ud, wp, 0);
|
||||||
|
pa_panel_set_selected( n, n->ud );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -354,7 +355,8 @@ static void aw_pop_add_panel_below_gaction (GSimpleAction *action, GVariant *par
|
|||||||
{
|
{
|
||||||
WavePanel *wp = (WavePanel *) user_data;
|
WavePanel *wp = (WavePanel *) user_data;
|
||||||
if ( wp ) {
|
if ( wp ) {
|
||||||
ap_panel_add_line( wp->ud, wp, 1);
|
WavePanel *n = ap_panel_add_line( wp->ud, wp, 1);
|
||||||
|
pa_panel_set_selected( n, n->ud );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -362,7 +364,8 @@ static void
|
|||||||
aw_add_panel_gaction (GSimpleAction *action, GVariant *param, gpointer user_data)
|
aw_add_panel_gaction (GSimpleAction *action, GVariant *param, gpointer user_data)
|
||||||
{
|
{
|
||||||
UserData *ud = (UserData *) user_data;
|
UserData *ud = (UserData *) user_data;
|
||||||
ap_panel_add_line(ud, NULL, 0);
|
WavePanel *n = ap_panel_add_line(ud, NULL, 0);
|
||||||
|
pa_panel_set_selected( n, n->ud );
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -129,15 +129,13 @@ az_zoom_out_gaction (GSimpleAction *action, GVariant *param, gpointer user_data
|
|||||||
az_cmd_zoom_absolute(ud, start, end );
|
az_cmd_zoom_absolute(ud, start, end );
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void az_pop_zoom_out_gaction (GSimpleAction *action, GVariant *param, gpointer user_data )
|
||||||
az_pop_zoom_out_gaction (GSimpleAction *action, GVariant *param, gpointer user_data )
|
|
||||||
{
|
{
|
||||||
WavePanel *wp = (WavePanel *) user_data;
|
WavePanel *wp = (WavePanel *) user_data;
|
||||||
az_zoom_out_gaction (action, param, wp->ud);
|
az_zoom_out_gaction (action, param, wp->ud);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void az_zoom_cursor0_centered_gaction (GSimpleAction *action, GVariant *param, gpointer user_data )
|
||||||
az_zoom_cursor0_centered_gaction (GSimpleAction *action, GVariant *param, gpointer user_data )
|
|
||||||
{
|
{
|
||||||
UserData *ud = (UserData *) user_data;
|
UserData *ud = (UserData *) user_data;
|
||||||
double start;
|
double start;
|
||||||
@ -329,8 +327,7 @@ az_entry_changed_cb (GtkWidget *widget, gpointer pdata)
|
|||||||
*val = str2val((char *) text);
|
*val = str2val((char *) text);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void az_pop_zoom_dialog_gaction (GSimpleAction *action, GVariant *param, gpointer user_data )
|
||||||
az_pop_zoom_dialog_gaction (GSimpleAction *action, GVariant *param, gpointer user_data )
|
|
||||||
{
|
{
|
||||||
WavePanel *wp = (WavePanel *) user_data;
|
WavePanel *wp = (WavePanel *) user_data;
|
||||||
if ( ! wp ) {
|
if ( ! wp ) {
|
||||||
@ -539,8 +536,7 @@ az_pop_zoom_dialog_gaction (GSimpleAction *action, GVariant *param, gpointer use
|
|||||||
gtk_widget_destroy (dialog);
|
gtk_widget_destroy (dialog);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void az_zoom_dialog_gaction (GSimpleAction *action, GVariant *param, gpointer user_data )
|
||||||
az_zoom_dialog_gaction (GSimpleAction *action, GVariant *param, gpointer user_data )
|
|
||||||
{
|
{
|
||||||
UserData *ud = (UserData *) user_data;
|
UserData *ud = (UserData *) user_data;
|
||||||
if ( ud->selected_panel == NULL) {
|
if ( ud->selected_panel == NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user