Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

minor fixes to gtk3 version

  • Loading branch information...
commit 19fa82ecae7bced027b03e8ed67988949cfff788 1 parent f0b94af
@pchilds authored
View
2  gtk3plot/gtkplotlinear.c
@@ -4319,7 +4319,7 @@ static void gtk_plot_linear_get_property(GObject *object, guint prop_id, GValue
}
}
-static gboolean gtk_plot_linear_draw(GtkWidget *widget, cairo_t *cr, gpointer data)
+static gboolean gtk_plot_linear_draw(GtkWidget *widget, CairoContext *cr, gpointer data)
{
draw(widget, cr);
drawz(widget, cr);
View
2  gtk3plot/gtkplotpolar.c
@@ -5598,7 +5598,7 @@ static void gtk_plot_polar_get_property(GObject *object, guint prop_id, GValue *
}
}
-static gboolean gtk_plot_polar_draw(GtkWidget *widget, cairo_t *cr, gpointer data)
+static gboolean gtk_plot_polar_draw(GtkWidget *widget, CairoContext *cr, gpointer data)
{
drawz(widget, cr);
draw(widget, cr);
View
2  gtk3plot/testplotlinear.c
@@ -68,7 +68,7 @@ void dph(GtkDialog *dlg, gint response, gpointer data)
}
j=gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(jix));
gtk_color_selection_get_current_rgba(GTK_COLOR_SELECTION(colour), &cl);
- ptr=&g_array_index(cla, gdouble, j);
+ ptr=&g_array_index(cla, GdkRGBA, j);
*ptr=cl;
gtk_plot_linear_set_colour(plt, cla);
g_array_unref(cla);
View
4 gtk3plot/testplotpolar.c
@@ -67,7 +67,7 @@ void dph(GtkDialog *dlg, gint response, gpointer data)
}
j=gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(jix));
gtk_color_selection_get_current_rgba(GTK_COLOR_SELECTION(colour), &cl);
- ptr=&g_array_index(cla, gdouble, j);
+ ptr=&g_array_index(cla, GdkRGBA, j);
*ptr=cl;
gtk_plot_polar_set_colour(plt, cla);
g_array_unref(cla);
@@ -508,7 +508,7 @@ int main(int argc, char *argv[])
gtk_widget_show(mni);
gtk_menu_item_set_submenu(GTK_MENU_ITEM(mni), mnu);
gtk_menu_shell_append(GTK_MENU_SHELL(mnb), mni);
- pane=gtk_paned_new();
+ pane=gtk_paned_new(GTK_ORIENTATION_HORIZONTAL);
gtk_widget_show(pane);
gtk_grid_attach(GTK_GRID(grid), pane, 0, 1, 1, 1);
grid2=gtk_grid_new();
Please sign in to comment.
Something went wrong with that request. Please try again.