Last active
August 29, 2015 14:15
-
-
Save lf94/8bdbbd40fdf14aeee274 to your computer and use it in GitHub Desktop.
XFCE panel plugin body
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void | |
constructor(XfcePanelPlugin *plugin) { | |
// Use any GTK_CONTAINER you wish, it will be packed into the XfcePanelPlugin (plugin) variable. | |
GtkWidget *scroll_win = gtk_scrolled_window_new(NULL, NULL); | |
/* Now program as if you were creating any old GTK application. */ | |
// Pack your container into the plugin's container. | |
gtk_container_add(GTK_CONTAINER(plugin), scroll_win); | |
// Run these commands so GTK shows your widgets. | |
gtk_widget_show_all(scroll_win); // change scroll_win to your container's name | |
xfce_panel_plugin_set_expand (XFCE_PANEL_PLUGIN(plugin), TRUE); // nothing to change here | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment