summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
3ebc615)
The XFCE_HVBOX stuff is gone in the new version of the panel library
because its functionality has been superseded by GtkBox in gtk+-3.x.
First we drop the header include for libxfce4panel/xfce-hvbox.h that no
longer exists, and then we change xfce_hvbox_new() to gtk_box_new() and
xfce_hvbox_set_orientation() to gtk_orientable_set_orientation().
/* Set up the hvbox for the widget, which supports
both horizontal and vertical (hv) orientations. */
/* Set up the hvbox for the widget, which supports
both horizontal and vertical (hv) orientations. */
- hdaps->hvbox = xfce_hvbox_new(orientation, FALSE, 2);
+ hdaps->hvbox = gtk_box_new(orientation, 2);
gtk_widget_show(hdaps->hvbox);
gtk_container_add(GTK_CONTAINER(hdaps->eventbox), hdaps->hvbox);
gtk_widget_show(hdaps->hvbox);
gtk_container_add(GTK_CONTAINER(hdaps->eventbox), hdaps->hvbox);
HdapsPlugin *hdaps) {
/* Change the plugin's orientation. Basically magic to me. */
HdapsPlugin *hdaps) {
/* Change the plugin's orientation. Basically magic to me. */
- xfce_hvbox_set_orientation(XFCE_HVBOX(hdaps->hvbox), orientation);
+ gtk_orientable_set_orientation(GTK_ORIENTABLE(hdaps->hvbox), orientation);
#include <gtk/gtk.h>
#include <libxfce4panel/xfce-panel-plugin.h>
#include <gtk/gtk.h>
#include <libxfce4panel/xfce-panel-plugin.h>
-#include <libxfce4panel/xfce-hvbox.h>
#include <libxfce4util/libxfce4util.h>
G_BEGIN_DECLS
#include <libxfce4util/libxfce4util.h>
G_BEGIN_DECLS