Changeset 406
- Timestamp:
- 07/18/06 15:08:06 (2 years ago)
- Files:
-
- aube/branches/aube-gtk2/configure.ac (modified) (1 diff)
- aube/branches/aube-gtk2/src/about_dialog.c (modified) (4 diffs)
- aube/branches/aube-gtk2/src/aube.c (modified) (1 diff)
- aube/branches/aube-gtk2/src/inputoption.c (modified) (3 diffs)
- aube/branches/aube-gtk2/src/inputoption.h (modified) (1 diff)
- aube/branches/aube-gtk2/src/levelmeter.c (modified) (3 diffs)
- aube/branches/aube-gtk2/src/levelmeter.h (modified) (1 diff)
- aube/branches/aube-gtk2/src/master.c (modified) (8 diffs)
- aube/branches/aube-gtk2/src/master.h (modified) (1 diff)
- aube/branches/aube-gtk2/src/modulemenu.c (modified) (3 diffs)
- aube/branches/aube-gtk2/src/modulemenu.h (modified) (1 diff)
- aube/branches/aube-gtk2/src/modules/atonal_if.c (modified) (2 diffs)
- aube/branches/aube-gtk2/src/modules/atonal_if.h (modified) (1 diff)
- aube/branches/aube-gtk2/src/modules/delay_if.c (modified) (2 diffs)
- aube/branches/aube-gtk2/src/modules/delay_if.h (modified) (1 diff)
- aube/branches/aube-gtk2/src/modules/drummachine_if.c (modified) (2 diffs)
- aube/branches/aube-gtk2/src/modules/drummachine_if.h (modified) (1 diff)
- aube/branches/aube-gtk2/src/modules/filter_reslp_if.c (modified) (2 diffs)
- aube/branches/aube-gtk2/src/modules/filter_reslp_if.h (modified) (1 diff)
- aube/branches/aube-gtk2/src/modules/general_mixer_if.c (modified) (2 diffs)
- aube/branches/aube-gtk2/src/modules/general_mixer_if.h (modified) (1 diff)
- aube/branches/aube-gtk2/src/modules/klav.c (modified) (3 diffs)
- aube/branches/aube-gtk2/src/modules/klav.h (modified) (1 diff)
- aube/branches/aube-gtk2/src/modules/klavier_if.c (modified) (2 diffs)
- aube/branches/aube-gtk2/src/modules/klavier_if.h (modified) (1 diff)
- aube/branches/aube-gtk2/src/modules/linein_if.c (modified) (2 diffs)
- aube/branches/aube-gtk2/src/modules/linein_if.h (modified) (1 diff)
- aube/branches/aube-gtk2/src/modules/lineout_if.c (modified) (2 diffs)
- aube/branches/aube-gtk2/src/modules/lineout_if.h (modified) (1 diff)
- aube/branches/aube-gtk2/src/modules/minimaube_if.c (modified) (2 diffs)
- aube/branches/aube-gtk2/src/modules/minimaube_if.h (modified) (1 diff)
- aube/branches/aube-gtk2/src/modules/minitracker_if.c (modified) (2 diffs)
- aube/branches/aube-gtk2/src/modules/minitracker_if.h (modified) (1 diff)
- aube/branches/aube-gtk2/src/modules/panner4_if.c (modified) (2 diffs)
- aube/branches/aube-gtk2/src/modules/panner4_if.h (modified) (1 diff)
- aube/branches/aube-gtk2/src/modules/panner_if.c (modified) (2 diffs)
- aube/branches/aube-gtk2/src/modules/panner_if.h (modified) (1 diff)
- aube/branches/aube-gtk2/src/modules/sample_recorder_if.c (modified) (2 diffs)
- aube/branches/aube-gtk2/src/modules/sample_recorder_if.h (modified) (1 diff)
- aube/branches/aube-gtk2/src/modules/syre_if.c (modified) (2 diffs)
- aube/branches/aube-gtk2/src/modules/syre_if.h (modified) (1 diff)
- aube/branches/aube-gtk2/src/modules/whitenoise_if.c (modified) (3 diffs)
- aube/branches/aube-gtk2/src/modules/whitenoise_if.h (modified) (1 diff)
- aube/branches/aube-gtk2/src/modules/xfader_if.c (modified) (2 diffs)
- aube/branches/aube-gtk2/src/modules/xfader_if.h (modified) (1 diff)
- aube/branches/aube-gtk2/src/none_config.c (modified) (5 diffs)
- aube/branches/aube-gtk2/src/none_config.h (modified) (1 diff)
- aube/branches/aube-gtk2/src/opsmenu.c (modified) (4 diffs)
- aube/branches/aube-gtk2/src/opsmenu.h (modified) (1 diff)
- aube/branches/aube-gtk2/src/outputlabel.c (modified) (5 diffs)
- aube/branches/aube-gtk2/src/outputlabel.h (modified) (1 diff)
- aube/branches/aube-gtk2/src/sample_if.c (modified) (2 diffs)
- aube/branches/aube-gtk2/src/slider.c (modified) (3 diffs)
- aube/branches/aube-gtk2/src/slider.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
aube/branches/aube-gtk2/configure.ac
r398 r406 29 29 fi 30 30 31 AM_PATH_GTK(1.0.0, , echo "EEEEEK No GTK") 32 #AM_PATH_GENERIC(xml, 0.99.0) 31 PKG_CHECK_MODULES(GTK, gtk+-2.0) 32 AC_SUBST(GTK_CFLAGS) 33 AC_SUBST(GTK_LIBS) 34 33 35 34 36 AM_PATH_GDK_IMLIB(1.9, ,AC_MSG_ERROR([*** IMLIB 1.9 not installed ***])) aube/branches/aube-gtk2/src/about_dialog.c
r397 r406 29 29 30 30 if (!about_dialog) { 31 about_dialog = gtk_window_new(GTK_WINDOW_ DIALOG);31 about_dialog = gtk_window_new(GTK_WINDOW_TOPLEVEL); 32 32 gtk_window_set_wmclass(GTK_WINDOW(about_dialog), "about_dialog", "Aube"); 33 33 gtk_window_set_title(GTK_WINDOW(about_dialog), "About AUBE"); … … 69 69 70 70 style = gtk_style_new(); 71 /* FIXME: use pango or remove entirely? 71 72 gdk_font_unref(style->font); 72 73 style->font = gdk_font_load("-Adobe-Helvetica-Medium-R-Normal--*-140-*-*-*-*-*-*"); 73 74 gtk_widget_push_style(style); 74 75 */ 75 76 label = gtk_label_new("This is AUBE Version " VERSION); 76 77 gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, TRUE, 0); … … 80 81 gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, TRUE, 0); 81 82 gtk_widget_show(label); 82 83 /* FIXME 83 84 gtk_widget_pop_style(); 84 85 */ 85 86 alignment = gtk_alignment_new(0.5, 0.5, 0.0, 0.0); 86 87 gtk_box_pack_start(GTK_BOX(vbox), alignment, FALSE, TRUE, 0); … … 102 103 103 104 } 104 if (!GTK_WIDGET_ VISIBLE(about_dialog)) {105 if (!GTK_WIDGET_MAPPED(about_dialog)) { 105 106 gtk_widget_show(about_dialog); 106 107 } else { aube/branches/aube-gtk2/src/aube.c
r372 r406 463 463 gtk_idle_add((GtkFunction) (aube_do_tick), aube_daddy); 464 464 gtk_widget_show(master); 465 466 465 nn = none_new(); 467 466 aube/branches/aube-gtk2/src/inputoption.c
r397 r406 10 10 extern bit16 zero_buffer[]; 11 11 12 guint inputoption_get_type(void); 13 static void inputoption_class_init(InputoptionClass * class);12 13 static void inputoption_class_init(InputoptionClass * klass); 14 14 static void inputoption_init(Inputoption * b); 15 15 GtkWidget *inputoption_new(); … … 19 19 void select_input_cb(GtkWidget * widget, gpointer data); 20 20 21 guint 22 inputoption_get_type( )23 { 24 static guintb_type = 0;21 GType 22 inputoption_get_type(void) 23 { 24 static GType b_type = 0; 25 25 26 26 if (!b_type) { 27 GtkTypeInfo b_info =27 static const GTypeInfo b_info = 28 28 { 29 "Inputoption", 30 sizeof(Inputoption), 31 sizeof(InputoptionClass), 32 (GtkClassInitFunc) inputoption_class_init, 33 (GtkObjectInitFunc) inputoption_init, 34 (GtkArgSetFunc) NULL, 35 (GtkArgGetFunc) NULL, 36 }; 37 38 b_type = gtk_type_unique(gtk_frame_get_type(), &b_info); 29 sizeof(InputoptionClass), 30 NULL, /* base_init */ 31 NULL, /* base_finalize */ 32 (GClassInitFunc) inputoption_class_init, 33 NULL, /* class_finalize */ 34 NULL, /* class_data */ 35 sizeof(Inputoption), 36 0, /* n_preallocs */ 37 (GInstanceInitFunc) inputoption_init, 38 }; 39 40 b_type = g_type_register_static(GTK_TYPE_FRAME, 41 "Inputoption", 42 &b_info, 0); 39 43 } 40 44 return b_type; 41 45 } 42 46 47 /* FIXME: need these? 43 48 enum { 44 49 LAST_SIGNAL … … 47 52 static guint inputoption_signals[LAST_SIGNAL+1] = 48 53 {0}; 49 54 */ 50 55 static void 51 inputoption_class_init(InputoptionClass * class) 52 { 56 inputoption_class_init(InputoptionClass * klass) 57 { 58 /* FIXME: need these? 59 53 60 GtkObjectClass *object_class; 54 61 55 object_class = (GtkObjectClass *) class;62 object_class = (GtkObjectClass *) klass; 56 63 57 64 gtk_object_class_add_signals(object_class, inputoption_signals, LAST_SIGNAL); 58 59 class->inputoption = NULL;65 */ 66 klass->inputoption = NULL; 60 67 } 61 68 aube/branches/aube-gtk2/src/inputoption.h
r372 r406 45 45 }; 46 46 47 guintinputoption_get_type(void);47 GType inputoption_get_type(void); 48 48 GtkWidget *inputoption_new(char *label_str, module * module, int input_i); 49 49 void reread_inputs_cb(GtkWidget * widget, gpointer data); aube/branches/aube-gtk2/src/levelmeter.c
r372 r406 22 22 */ 23 23 24 static void levelmeter_class_init(LevelMeterClass * class);24 static void levelmeter_class_init(LevelMeterClass * klass); 25 25 static void levelmeter_init(LevelMeter * levelmeter); 26 26 static void levelmeter_destroy(GtkObject * object); … … 40 40 static GtkStyle *levelmeter_style = NULL; 41 41 42 guint 43 levelmeter_get_type( )44 { 45 static guintlevelmeter_type = 0;42 GType 43 levelmeter_get_type(void) 44 { 45 static GType levelmeter_type = 0; 46 46 47 47 if (!levelmeter_type) { 48 GtkTypeInfo levelmeter_info =48 static const GTypeInfo levelmeter_info = 49 49 { 50 "LevelMeter", 50 sizeof(LevelMeterClass), 51 NULL, /* base_init */ 52 NULL, /* base_finalize */ 53 (GClassInitFunc) levelmeter_class_init, 54 NULL, /* class_finalize */ 55 NULL, /* class_data */ 51 56 sizeof(LevelMeter), 52 sizeof(LevelMeterClass), 53 (GtkClassInitFunc) levelmeter_class_init, 54 (GtkObjectInitFunc) levelmeter_init, 55 (GtkArgSetFunc) NULL, 56 (GtkArgGetFunc) NULL, 57 0, /* n_preallocs */ 58 (GInstanceInitFunc) levelmeter_init, 57 59 }; 58 60 59 levelmeter_type = gtk_type_unique(gtk_widget_get_type(), &levelmeter_info); 61 levelmeter_type = g_type_register_static(gtk_widget_get_type(), 62 "LevelMeter", 63 &levelmeter_info, 0); 60 64 } 61 65 return levelmeter_type; … … 63 67 64 68 static void 65 levelmeter_class_init(LevelMeterClass * class)69 levelmeter_class_init(LevelMeterClass * klass) 66 70 { 67 71 GtkObjectClass *object_class; 68 72 GtkWidgetClass *widget_class; 69 73 70 object_class = (GtkObjectClass *) class;71 widget_class = (GtkWidgetClass *) class;74 object_class = (GtkObjectClass *) klass; 75 widget_class = (GtkWidgetClass *) klass; 72 76 73 77 parent_class = gtk_type_class(gtk_widget_get_type()); aube/branches/aube-gtk2/src/levelmeter.h
r372 r406 30 30 31 31 GtkWidget *levelmeter_new(guint state); 32 guintlevelmeter_get_type(void);32 GType levelmeter_get_type(void); 33 33 guint levelmeter_get_level(LevelMeter * levelmeter); 34 34 void levelmeter_set_level(LevelMeter * levelmeter, guint level); aube/branches/aube-gtk2/src/master.c
r397 r406 108 108 109 109 110 guint master_get_type(void);111 110 static void master_class_init(MasterClass * class); 112 111 static void master_init(Master * b); … … 128 127 void save_workspace_cb(GtkWidget * widget, gpointer data); 129 128 130 guint 131 master_get_type( )132 { 133 static guintb_type = 0;129 GType 130 master_get_type(void) 131 { 132 static GType b_type = 0; 134 133 135 134 if (!b_type) { 136 GtkTypeInfo b_info =135 static const GTypeInfo b_info = 137 136 { 138 "Master", 137 sizeof(MasterClass), 138 NULL, /* base_init */ 139 NULL, /* base_finalise */ 140 (GClassInitFunc) master_class_init, 141 NULL, /* class_finalize */ 142 NULL, /* class_data */ 139 143 sizeof(Master), 140 sizeof(MasterClass), 141 (GtkClassInitFunc) master_class_init, 142 (GtkObjectInitFunc) master_init, 143 (GtkArgSetFunc) NULL, 144 (GtkArgGetFunc) NULL, 144 0, /* n_preallocs */ 145 (GInstanceInitFunc) master_init, 145 146 }; 146 147 147 b_type = gtk_type_unique(gtk_window_get_type(), &b_info); 148 b_type = g_type_register_static(GTK_TYPE_WINDOW, 149 "Master", 150 &b_info, 0); 148 151 } 149 152 return b_type; … … 156 159 157 160 /* static gint master_signals[LAST_SIGNAL] = { 0 }; */ 158 guint master_signals[LAST_SIGNAL +1] = {0};161 guint master_signals[LAST_SIGNAL] = {0}; 159 162 160 163 static void 161 master_class_init(MasterClass * class)164 master_class_init(MasterClass * klass) 162 165 { 163 166 GtkObjectClass *object_class; 164 167 165 object_class = (GtkObjectClass *) class;168 object_class = (GtkObjectClass *) klass; 166 169 167 170 master_signals[UNITS_CHANGED_SIGNAL] = 168 g tk_signal_new("modules_changed", GTK_RUN_FIRST, object_class->type,169 GTK_SIGNAL_OFFSET(MasterClass, master),170 gtk_signal_default_marshaller, GTK_TYPE_NONE, 0);171 172 gtk_object_class_add_signals(object_class, master_signals, LAST_SIGNAL);173 174 class->master = NULL;171 g_signal_new("modules_changed", 172 G_TYPE_FROM_CLASS(klass), 173 G_SIGNAL_RUN_FIRST, 174 G_STRUCT_OFFSET(MasterClass, master), 175 NULL, 176 NULL, 177 g_cclosure_marshal_VOID__VOID, GTK_TYPE_NONE, 0); 175 178 } 176 179 … … 235 238 GtkAccelGroup * accel_group; 236 239 237 GtkWidget * logo; 238 GdkPixmap * p, * m; 239 GdkImlibImage * im; 240 gint w, h; 240 GtkWidget * im; 241 241 242 242 243 GtkWidget * scrolled; … … 247 248 aube_daddy = master->data; 248 249 249 g tk_signal_connect (GTK_OBJECT (master), "destroy",250 G TK_SIGNAL_FUNC(quit_cb), master);250 g_signal_connect (G_OBJECT (master), "destroy", 251 G_CALLBACK (quit_cb), master); 251 252 252 253 gtk_window_set_title(GTK_WINDOW(master), "AUBE/Metadecks Live"); … … 307 308 menuitem = gtk_menu_item_new_with_label("About..."); 308 309 gtk_menu_append(GTK_MENU(menu), menuitem); 309 g tk_signal_connect(GTK_OBJECT(menuitem), "activate",310 G TK_SIGNAL_FUNC(about_dialog_create), NULL);310 g_signal_connect(G_OBJECT(menuitem), "activate", 311 G_CALLBACK(about_dialog_create), NULL); 311 312 gtk_widget_show(menuitem); 312 313 … … 391 392 gtk_widget_show(menubar); 392 393 393 im = gdk_imlib_load_image (g_strconcat (DATADIR, "/aube_mini.png", NULL)); 394 395 if (im != NULL) { 396 /* Suck the image's original width and height out of the Image structure */ 397 w=im->rgb_width;h=im->rgb_height; 394 im = gtk_image_new_from_file (g_strconcat (DATADIR, "/aube_mini.png", NULL)); 398 395 399 /* Render the original 24-bit Image data into a pixmap of size w * h */ 400 gdk_imlib_render(im,w,h); 401 /* Extract the Image and mask pixmaps from the Image */ 402 p=gdk_imlib_move_image(im); 403 /* The mask will be NULL if the image has no transparency */ 404 m=gdk_imlib_move_mask(im); 405 406 logo = gtk_pixmap_new (p, m); 407 408 gtk_box_pack_start(GTK_BOX(vbox2), logo, FALSE, TRUE, 0); 409 gtk_widget_show (logo); 410 } 396 gtk_box_pack_start(GTK_BOX(vbox2), im, FALSE, TRUE, 0); 397 gtk_widget_show (im); 398 411 399 412 400 /* … … 740 728 741 729 } 742 aube/branches/aube-gtk2/src/master.h
r372 r406 35 35 }; 36 36 37 guintmaster_get_type(void);37 GType master_get_type(void); 38 38 GtkWidget *master_new(void); 39 39 void master_ack_channels_modified(void); aube/branches/aube-gtk2/src/modulemenu.c
r397 r406 10 10 extern bit16 zero_buffer[]; 11 11 12 guint modulemenu_get_type(void);13 12 static void modulemenu_class_init(UnitmenuClass * class); 14 13 static void modulemenu_init(Unitmenu * b); … … 17 16 void reread_modules_cb(GtkWidget * widget, gpointer data); 18 17 19 guint 20 modulemenu_get_type( )18 GType 19 modulemenu_get_type(void) 21 20 { 22 static guintb_type = 0;21 static GType b_type = 0; 23 22 24 23 if (!b_type) { 25 GtkTypeInfo b_info =24 static const GTypeInfo b_info = 26 25 { 27 "Unitmenu", 26 sizeof(UnitmenuClass), 27 NULL, /* base_init */ 28 NULL, /* base_finalise */ 29 (GClassInitFunc) modulemenu_class_init, 30 NULL, /* class_finalize */ 31 NULL, /* class_data */ 28 32 sizeof(Unitmenu), 29 sizeof(UnitmenuClass), 30 (GtkClassInitFunc) modulemenu_class_init, 31 (GtkObjectInitFunc) modulemenu_init, 32 (GtkArgSetFunc) NULL, 33 (GtkArgGetFunc) NULL, 33 0, /* n_preallocs */ 34 (GInstanceInitFunc) modulemenu_init, 34 35 }; 35 36 36 b_type = gtk_type_unique(gtk_menu_get_type(), &b_info); 37 b_type = g_type_register_static(GTK_TYPE_MENU, 38 "Unitmenu", 39 &b_info, 0); 37 40 } 38 41 return b_type; 39 42 } 40 43 41 enum {42 LAST_SIGNAL43 };44 45 static guint modulemenu_signals[LAST_SIGNAL+1] =46 {0};47 48 44 static void 49 45 modulemenu_class_init(UnitmenuClass * class) 50 46 { 51 GtkObjectClass *object_class; 52 53 object_class = (GtkObjectClass *) class; 54 55 gtk_object_class_add_signals(object_class, modulemenu_signals, LAST_SIGNAL); 56 57 class->modulemenu = NULL; 47 /* chickens? */ 58 48 } 59 49 … … 89 79 menuitem = gtk_menu_item_new_with_label(buf); 90 80 gtk_menu_append(GTK_MENU(modulemenu), menuitem); 91 g tk_signal_connect(GTK_OBJECT(menuitem), "activate",92 G TK_SIGNAL_FUNC(UNITMENU(modulemenu)->select_action), &UNITMENU(modulemenu)->up[k]);81 g_signal_connect(G_OBJECT(menuitem), "activate", 82 G_CALLBACK(UNITMENU(modulemenu)->select_action), &UNITMENU(modulemenu)->up[k]); 93 83 gtk_widget_show(menuitem); 94 84 k++; aube/branches/aube-gtk2/src/modulemenu.h
r372 r406 41 41 }; 42 42 43 guintmodulemenu_get_type(void);43 GType modulemenu_get_type(void); 44 44 GtkWidget *modulemenu_new(module * this_module, int *include_criterion(), void *select_action()); 45 45 aube/branches/aube-gtk2/src/modules/atonal_if.c
r397 r406 17 17 extern char *note_names[97]; 18 18 19 guint atonal_if_get_type(void); 20 static void atonal_if_class_init (AtonalIFClass *class); 19 static void atonal_if_class_init (AtonalIFClass *klass); 21 20 static void atonal_if_init (AtonalIF *b); 22 21 GtkWidget* atonal_if_new (atonal *rsq); … … 40 39 void at_rshift_cb(GtkWidget *widget, gpointer data); 41 40 42 guint 43 atonal_if_get_type () 44 { 45 static guint b_type = 0; 46 47 if (!b_type) 41 GType 42 atonal_if_get_type(void) 43 { 44 static GType b_type = 0; 45 46 if (!b_type) { 47 static const GTypeInfo b_info = 48 48 { 49 GtkTypeInfo b_info = 50 { 51 "AtonalIF", 52 sizeof (AtonalIF), 53 sizeof (AtonalIFClass), 54 (GtkClassInitFunc) atonal_if_class_init, 55 (GtkObjectInitFunc) atonal_if_init, 56 (GtkArgSetFunc) NULL, 57 (GtkArgGetFunc) NULL, 58 }; 59 60 b_type = gtk_type_unique (gtk_window_get_type(), &b_info); 61 } 62 49 sizeof(AtonalIFClass), 50 NULL, /* base_init */ 51 NULL, /* base_finalise */ 52 (GClassInitFunc) atonal_if_class_init, 53 NULL, /* class_finalize */ 54 NULL, /* class_data */ 55 sizeof(AtonalIF), 56 0, /* n_preallocs */ 57 (GInstanceInitFunc) atonal_if_init, 58 }; 59 60 b_type = g_type_register_static(GTK_TYPE_WINDOW, 61 "AtonalIF", 62 &b_info, 0); 63 } 63 64 return b_type; 64 65 } 65 66 66 enum {67 LAST_SIGNAL68 };69 70 static guint atonal_if_signals[LAST_SIGNAL+1] = { 0 };71 72 67 static void 73 atonal_if_class_init (AtonalIFClass *class) 74 { 75 GtkObjectClass *object_class; 76 77 object_class = (GtkObjectClass*) class; 78 79 gtk_object_class_add_signals (object_class, atonal_if_signals, LAST_SIGNAL); 80 81 82 class->atonal_if = NULL; 68 atonal_if_class_init (AtonalIFClass *klass) 69 { 70 83 71 } 84 72 aube/branches/aube-gtk2/src/modules/atonal_if.h
r372 r406 40 40 }; 41 41 42 guintatonal_if_get_type (void);42 GType atonal_if_get_type (void); 43 43 GtkWidget* atonal_if_new (atonal *rsq); 44 44 void atonal_if_close_cb(GtkWidget *widget, gpointer data); aube/branches/aube-gtk2/src/modules/delay_if.c
r397 r406 16 16 extern GtkWidget *master_daddy; 17 17 18 guint delay_if_get_type(void); 19 static void delay_if_class_init(DelayIFClass * class); 18 static void delay_if_class_init(DelayIFClass * klass); 20 19 static void delay_if_init(DelayIF * b); 21 20 GtkWidget *delay_if_new(delay * dl); … … 26 25 void delay_if_change_replace_menu_cb(GtkWidget * widget, gpointer data); 27 26 28 guint 29 delay_if_get_type( )30 { 31 static guintb_type = 0;27 GType 28 delay_if_get_type(void) 29 { 30 static GType b_type = 0; 32 31 33 32 if (!b_type) { 34 GtkTypeInfo b_info =33 static const GTypeInfo b_info = 35 34 { 36 "DelayIF", 35 sizeof(DelayIFClass), 36 NULL, /* base_init */ 37 NULL, /* base_finalise */ 38 (GClassInitFunc) delay_if_class_init, 39 NULL, /* class_finalize */ 40 NULL, /* class_data */ 37 41 sizeof(DelayIF), 38 sizeof(DelayIFClass), 39 (GtkClassInitFunc) delay_if_class_init, 40 (GtkObjectInitFunc) delay_if_init, 41 (GtkArgSetFunc) NULL, 42 (GtkArgGetFunc) NULL, 42 0, /* n_preallocs */ 43 (GInstanceInitFunc)delay_if_init, 43 44 }; 44 45 45 b_type = gtk_type_unique(gtk_window_get_type(), &b_info); 46 b_type = g_type_register_static(GTK_TYPE_WINDOW, 47 "DelayIF", 48 &b_info, 0); 46 49 } 47 50 return b_type; 48 51 } 49 52 50 enum {51 LAST_SIGNAL52 };53 54 static guint delay_if_signals[LAST_SIGNAL+1] =55 {0};56 57 53 static void 58 delay_if_class_init(DelayIFClass * class) 59 { 60 GtkObjectClass *object_class; 61 62 object_class = (GtkObjectClass *) class; 63 64 gtk_object_class_add_signals(object_class, delay_if_signals, LAST_SIGNAL); 65 class->delay_if = NULL; 54 delay_if_class_init(DelayIFClass * klass) 55 { 56 66 57 } 67 58 aube/branches/aube-gtk2/src/modules/delay_if.h
r372 r406 32 32 }; 33 33 34 guintdelay_if_get_type(void);34 GType delay_if_get_type(void); 35 35 GtkWidget *delay_if_new(delay * dl); 36 36 void delay_if_close_cb(GtkWidget * widget, gpointer data); aube/branches/aube-gtk2/src/modules/drummachine_if.c
r397 r406 16 16 extern char *note_names[97]; 17 17 18 guint drummachine_if_get_type(void); 19 static void drummachine_if_class_init(DrumMachineIFClass * class); 18 static void drummachine_if_class_init(DrumMachineIFClass * klass); 20 19 static void drummachine_if_init(DrumMachineIF * b); 21 20 GtkWidget *drummachine_if_new(drummachine * rsq); … … 47 46 void dm_shift_track_right_cb (GtkWidget * widget, gpointer data); 48 47 49 guint 50 drummachine_if_get_type( )51 { 52 static guintb_type = 0;48 GType 49 drummachine_if_get_type(void) 50 { 51 static GType b_type = 0; 53 52 54 53 if (!b_type) { 55 GtkTypeInfo b_info =54 static const GTypeInfo b_info = 56 55 { 57 "DrumMachineIF", 56 sizeof(DrumMachineIFClass), 57 NULL, /* base_init */ 58 NULL, /* base_finalise */ 59 (GClassInitFunc) drummachine_if_class_init, 60 NULL, /* class_finalize */ 61 NULL, /* class_data */ 58 62 sizeof(DrumMachineIF), 59 sizeof(DrumMachineIFClass), 60 (GtkClassInitFunc) drummachine_if_class_init, 61 (GtkObjectInitFunc) drummachine_if_init, 62 (GtkArgSetFunc) NULL, 63 (GtkArgGetFunc) NULL, 63 0, /* n_preallocs */ 64 (GInstanceInitFunc) drummachine_if_init, 64 65 }; 65 66 66 b_type = gtk_type_unique(gtk_window_get_type(), &b_info); 67 b_type = g_type_register_static(GTK_TYPE_WINDOW, 68 "DrumMachineIF", 69 &b_info, 0); 67 70 } 68 71 return b_type; 69 72 } 70 73 71 enum {72 LAST_SIGNAL73 };74 75 static guint drummachine_if_signals[LAST_SIGNAL+1] =76 {0};77 78 74 static void 79 drummachine_if_class_init(DrumMachineIFClass * class) 80 { 81 GtkObjectClass *object_class; 82 83 object_class = (GtkObjectClass *) class; 84 85 gtk_object_class_add_signals(object_class, drummachine_if_signals, LAST_SIGNAL); 86 87 88 class->drummachine_if = NULL; 75 drummachine_if_class_init(DrumMachineIFClass * klass) 76 { 77 89 78 } 90 79 aube/branches/aube-gtk2/src/modules/drummachine_if.h
r372 r406 39 39 }; 40 40 41 guintdrummachine_if_get_type(void);41 GType drummachine_if_get_type(void); 42 42 GtkWidget *drummachine_if_new(drummachine * rsq); 43 43 void drummachine_if_close_cb(GtkWidget * widget, gpointer data); aube/branches/aube-gtk2/src/modules/filter_reslp_if.c
r397 r406 11 11 extern int tick; 12 12 13 guint filter_reslp_if_get_type(void); 14 static void filter_reslp_if_class_init(FilterResLP_IFClass * class); 13 static void filter_reslp_if_class_init(FilterResLP_IFClass * klass); 15 14 static void filter_reslp_if_init(FilterResLP_IF * b); 16 15 GtkWidget *filter_reslp_if_new(filter_reslp * fr); … … 23 22 gint filter_reslp_get_envelopes(gpointer data); 24 23 25 guint 26 filter_reslp_if_get_type( )27 { 28 static guintb_type = 0;24 GType 25 filter_reslp_if_get_type(void) 26 { 27 static GType b_type = 0; 29 28 30 29 if (!b_type) { 31 GtkTypeInfo b_info =30 static const GTypeInfo b_info = 32 31 { 33 "FilterResLP_IF", 32 sizeof(FilterResLP_IFClass), 33 NULL, /* base_init */ 34 NULL, /* base_finalise */ 35 (GClassInitFunc) filter_reslp_if_class_init, 36 NULL, /* class_finalize */ 37 NULL, /* class_data */ 34 38 sizeof(FilterResLP_IF), 35 sizeof(FilterResLP_IFClass), 36 (GtkClassInitFunc) filter_reslp_if_class_init, 37 (GtkObjectInitFunc) filter_reslp_if_init, 38 (GtkArgSetFunc) NULL, 39 (GtkArgGetFunc) NULL, 39 0, /* n_preallocs */ 40 (GInstanceInitFunc) filter_reslp_if_init, 40 41 }; 41 42 42 b_type = gtk_type_unique(gtk_window_get_type(), &b_info); 43 b_type = g_type_register_static(GTK_TYPE_WINDOW, 44 "FilterResLP_IF", 45 &b_info, 0); 43 46 } 44 47 return b_type; 45 48 } 46 49 47 enum {48 LAST_SIGNAL49 };50 51 static guint filter_reslp_if_signals[LAST_SIGNAL+1] =52 {0};53 54 50 static void 55 filter_reslp_if_class_init(FilterResLP_IFClass * class) 56 { 57 GtkObjectClass *object_class; 58 59 object_class = (GtkObjectClass *) class; 60 61 gtk_object_class_add_signals(object_class, filter_reslp_if_signals, LAST_SIGNAL); 62 63 64 class->filter_reslp_if = NULL; 51 filter_reslp_if_class_init(FilterResLP_IFClass * klass) 52 { 53 65 54 } 66 55 aube/branches/aube-gtk2/src/modules/filter_reslp_if.h
r372 r406 35 35 }; 36 36 37 guintfilter_reslp_if_get_type(void);37 GType filter_reslp_if_get_type(void); 38 38 GtkWidget *filter_reslp_if_new(filter_reslp * fr); 39 39 void filter_reslp_if_close_cb(GtkWidget * widget, gpointer data); aube/branches/aube-gtk2/src/modules/general_mixer_if.c
r397 r406 11 11 #include "outputlabel.h" 12 12 13 guint general_mixer_if_get_type(void); 14 static void general_mixer_if_class_init(GeneralMixerIFClass * class); 13 static void general_mixer_if_class_init(GeneralMixerIFClass * klass); 15 14 static void general_mixer_if_init(GeneralMixerIF * b); 16 15 GtkWidget *general_mixer_if_new(general_mixer * xf); … … 25 24 void general_mixer_if_mute_cb(GtkWidget * widget, gpointer data); 26 25 27 guint 28 general_mixer_if_get_type( )29 { 30 static guintb_type = 0;26 GType 27 general_mixer_if_get_type(void) 28 { 29 static GType b_type = 0; 31 30 32 31 if (!b_type) { 33 GtkTypeInfo b_info =32 static const GTypeInfo b_info = 34 33 { 35 "GeneralMixerIF", 34 sizeof(GeneralMixerIFClass), 35 NULL, /* base_init */ 36 NULL, /* base_finalise */ 37 (GClassInitFunc) general_mixer_if_class_init, 38 NULL, /* class_finalize */ 39 NULL, /* class_data */ 36 40 sizeof(GeneralMixerIF), 37 sizeof(GeneralMixerIFClass), 38 (GtkClassInitFunc) general_mixer_if_class_init, 39 (GtkObjectInitFunc) general_mixer_if_init, 40 (GtkArgSetFunc) NULL, 41 (GtkArgGetFunc) NULL, 41 0, /* n_preallocs */ 42 (GInstanceInitFunc) general_mixer_if_init, 42 43 }; 43 44 44 b_type = gtk_type_unique(gtk_window_get_type(), &b_info); 45 b_type = g_type_register_static(GTK_TYPE_WINDOW, 46 "GeneralMixerIF", 47 &b_info, 0); 45 48 } 46 49 return b_type; 47 50 } 48 51 49 enum {50 LAST_SIGNAL51 };52 53 static guint general_mixer_if_signals[LAST_SIGNAL+1] =54 {0};55 56 52 static void 57 general_mixer_if_class_init(GeneralMixerIFClass * class) 58 { 59 GtkObjectClass *object_class; 60 61 object_class = (GtkObjectClass *) class; 62 63 gtk_object_class_add_signals(object_class, general_mixer_if_signals, LAST_SIGNAL); 64 class->general_mixer_if = NULL; 53 general_mixer_if_class_init(GeneralMixerIFClass * klass) 54 { 55 65 56 } 66 57 aube/branches/aube-gtk2/src/modules/general_mixer_if.h
r372 r406 33 33 }; 34 34 35 guintgeneral_mixer_if_get_type(void);35 GType general_mixer_if_get_type(void); 36 36 GtkWidget *general_mixer_if_new(general_mixer * xf); 37 37 void general_mixer_if_close_cb(GtkWidget * widget, gpointer data); aube/branches/aube-gtk2/src/modules/klav.c
r397 r406 53 53 Klav Methods 54 54 */ 55 static void klav_class_init(KlavClass * class);55 static void klav_class_init(KlavClass * klass); 56 56 static void klav_init(Klav * klav); 57 57 … … 70 70 static gint klav_motion_notify(GtkWidget * widget, GdkEventMotion * event); 71 71
