1
1

1999-03-16 Federico Mena Quintero <federico@nuclecu.unam.mx>

* gdesktop.c (icon_event): I'm an idiot.  Someone teach me boolean
	logic again.  Fixed edit-on-release for icons.
Этот коммит содержится в:
Miguel de Icaza 1999-03-16 20:08:35 +00:00
родитель eb864a4949
Коммит 7a96008267
3 изменённых файлов: 54 добавлений и 1 удалений

Просмотреть файл

@ -1,3 +1,8 @@
1999-03-16 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c (icon_event): I'm an idiot. Someone teach me boolean
logic again. Fixed edit-on-release for icons.
1999-03-15 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdialogs.c (real_input_dialog_help): Now we use a

Просмотреть файл

@ -1531,7 +1531,7 @@ icon_event (GnomeCanvasItem *item, GdkEvent *event, gpointer data)
break;
case GDK_BUTTON_RELEASE:
if (event->button.button != 1 || event->button.button != 2)
if (!(event->button.button == 1 || event->button.button != 2))
break;
if (on_text && icon_select_on_text) {

Просмотреть файл

@ -968,3 +968,51 @@ real_input_dialog_help (char *header, char *text, char *help, char *def_text)
gtk_main ();
return string;
}
/* Our implementation of the symlink-to dialog */
void
symlink_dialog (char *existing, char *new, char **ret_existing, char **ret_new)
{
GtkWidget *dialog;
GtkWidget *vbox;
GtkWidget *entry1, *entry2;
int ret;
dialog = gnome_dialog_new (_("Symbolic Link"),
GNOME_STOCK_BUTTON_OK,
GNOME_STOCK_BUTTON_CANCEL);
gnome_dialog_close_hides (GNOME_DIALOG (dialog), TRUE);
/* File symlink will point to */
vbox = gtk_vbox_new (FALSE, GNOME_PAD_SMALL);
gtk_box_pack_start (GTK_BOX (GNOME_DIALOG (dialog)->vbox), vbox, FALSE, FALSE, 0);
gtk_box_pack_start (GTK_BOX (vbox),
gtk_label_new (_("File symlink will point to:")),
FALSE, FALSE, 0);
entry1 = gtk_entry_new ();
gtk_entry_set_text (GTK_ENTRY (entry1), existing);
gtk_box_pack_start (GTK_BOX (vbox), entry1, FALSE, FALSE, 0);
/* Name of symlink */
vbox = gtk_vbox_new (FALSE, GNOME_PAD_SMALL);
gtk_box_pack_start (GTK_BOX (GNOME_DIALOG (dialog)->vbox), vbox, FALSE, FALSE, 0);
gtk_box_pack_start (GTK_BOX (vbox),
gtk_label_new (_("Symlink name:")),
FALSE, FALSE, 0);
entry2 = gtk_entry_new ();
gtk_entry_set_text (GTK_ENTRY (entry2), new);
gtk_box_pack_start (GTK_BOX (vbox), entry2, FALSE, FALSE, 0);
/* Run */
ret = gnome_dialog_run (GNOME_DIALOG (dialog));
}