Re: [gtk-list] Re: Announce : Gtk-- v0.11.2 released
- From: Daniel Burrows <Daniel_Burrows brown edu>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: Announce : Gtk-- v0.11.2 released
- Date: Tue, 23 Feb 1999 21:21:10 -0500
Umm, I meant to attach this program. Really...
--
All generalizations are dangerous.
// gbug.cc
#include <gnome--/dialog.h>
#include <gtk--/optionmenu.h>
#include <gtk--/label.h>
#include <gtk--/table.h>
#include <gtk--/entry.h>
#include <gtk--/text.h>
#include <gtk--/frame.h>
#include <gnome--/main.h>
// FIXME: the package names are hardcoded
// FIXME: add support for descriptions
char *PACKAGES[]={
"general",
"bugs.gnome.org",
"lists.gnome.org",
"www.gnome.org",
"audiofile",
"control-center",
"crescendo",
"desktop-docs",
"ee",
"esound",
"ezpaint",
"gdm",
"genius",
"gimp",
"glade--",
"glib",
"gnome-chess",
"gnome-db",
"gnome-dom",
"gnome-games",
"gnome-idl",
"gdm",
"genius",
"gimp",
"glade--",
"glib",
"gnome-chess",
"gnome-db",
"gnome-dom",
"gnome-games",
"gnome-idl",
"gnome-libs",
"gnome-media",
"gnome-objc",
"gnome-perl",
"gnome-pilot",
"gnome-pim",
"gnome-print",
"gnome-python",
"gnome-xml",
"gnumeric",
"go",
"goose",
"granite",
"gtcd",
"gtk+",
"gtk--addons",
"gtk-themes",
"gtkicq",
"gtop",
"guile-server",
"guppi2",
"gwp",
"gxsnmp",
"imlib",
"libgtop",
"libgtop-bindings",
"libgtop-docu",
"libidl",
"mc",
"nethack",
"orbit",
"panel",
"test",
"gnometris",
"gedit",
"xmhtml",
"glade",
"gnome-utils",
};
class gbug_dialog:public Gnome_Dialog
{
Gtk_Table table;
Gtk_Entry package;
Gtk_Label package_label;
Gtk_Entry version; // FIXME: automagically determine version??
Gtk_Label version_label;
Gtk_Entry subject;
Gtk_Label subject_label;
Gtk_Entry email;
Gtk_Label email_label;
Gtk_OptionMenu severity;
Gtk_Label severity_label;
Gtk_Frame body_frame;
Gtk_Text body;
public:
gbug_dialog::gbug_dialog();
~gbug_dialog()
{}
};
gbug_dialog::gbug_dialog():
Gnome_Dialog("Submit a Gnome bug report","Submit bug report","Cancel bug report"),
table(5,2),
package(),
package_label("Package:"),
version(),
version_label("Version:"),
email(),
email_label("Email:"),
severity(),
severity_label("Severity:"),
body_frame("Bug report"),
body()
{
set_default(0);
table.attach(package_label,0,1,0,1);
table.attach(package,1,2,0,1);
table.attach(version_label,0,1,1,2);
table.attach(version,2,1,1,2);
table.attach(email_label,0,1,2,3);
table.attach(email,1,2,2,3);
table.attach(severity_label,0,1,3,4);
table.attach(severity,0,1,3,4);
body_frame.add(body);
table.attach(body_frame,0,2,4,5);
vbox()->add(table);
}
int main(int argc,char *argv[])
{
Gnome_Main my_main("gbug","0.0.0",argc,argv);
gbug_dialog dlg;
dlg.show();
my_main.run();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]