64 |
64 |
65 return widget; |
65 return widget; |
66 } |
66 } |
67 |
67 |
68 UIWIDGET ui_separator(UiObject *obj) { |
68 UIWIDGET ui_separator(UiObject *obj) { |
|
69 #if UI_GTK3 |
69 GtkWidget *widget = gtk_separator_new(GTK_ORIENTATION_HORIZONTAL); |
70 GtkWidget *widget = gtk_separator_new(GTK_ORIENTATION_HORIZONTAL); |
|
71 #else |
|
72 GtkWidget *widget = gtk_hseparator_new(); |
|
73 #endif |
70 UiContainer *ct = uic_get_current_container(obj); |
74 UiContainer *ct = uic_get_current_container(obj); |
71 ct->add(ct, widget, FALSE); |
75 ct->add(ct, widget, FALSE); |
72 |
76 |
73 return widget; |
77 return widget; |
74 } |
78 } |