Notices


Reply
Thread Tools
No!No!No!Yes!'s Avatar
Posts: 700 | Thanked: 846 times | Joined on Nov 2009
#181
Originally Posted by qwerty12 View Post
No!No!No!Yes!, if http://slexy.org/view/s2TuPIskK2 looks legit to you, can you include it in 0.18? It adds two buttons to the Advanced dialog re. the buffer: Export from Buffer to File and Import from File to Buffer. I got tired of importing/exporting via Leafpad.

Best regards,
Faheem

Gah, crap, I forgot to add "g_clear_error" statements
Originally Posted by No!No!No!Yes! View Post
OK ... I be waiting for new diff file
Never mind ... I managed to stick "g_clear_error" here:

Code:
static void importFileBufferBt_clicked_cb ( HildonButton * button, QueenBeecon *self )
{
	g_warning ("(%p) %s",self, G_STRFUNC);

	GtkWidget *file_chooser = hildon_file_chooser_dialog_new (NULL, GTK_FILE_CHOOSER_ACTION_OPEN);
	//gtk_window_set_title (GTK_WINDOW (file_chooser), "Choose file to import from");
	if (gtk_dialog_run (GTK_DIALOG (file_chooser)) == GTK_RESPONSE_OK)
	{
		GtkTextIter start, end;
		GError *error = NULL;
		gchar *filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (file_chooser));

		if (!filename)
		{
			gtk_widget_destroy (file_chooser);
			return;
		}

		gchar *contents = NULL;
		if (!g_file_get_contents (filename, &contents, NULL, &error))
		{
			hildon_banner_show_informationf (NULL, NULL, "Importing failed: %s", error->message);
			g_free (filename);
			g_clear_error (&error);
			gtk_widget_destroy (file_chooser);
			return;
		}

		gtk_text_buffer_get_bounds (self->priv->importExportBuffer, &start, &end);
		gtk_text_buffer_delete (self->priv->importExportBuffer, &start, &end);
		gtk_text_buffer_insert (self->priv->importExportBuffer, &start, contents, -1);

		g_free (filename);
		g_free (contents);
	}
	gtk_widget_destroy (file_chooser);
}

static void exportFileBufferBt_clicked_cb ( HildonButton * button, QueenBeecon *self )
{
	g_warning ("(%p) %s",self, G_STRFUNC);

	gchar *mydocsdir = g_strdup (g_getenv ("MYDOCSDIR"));
	if (!mydocsdir) mydocsdir = g_build_filename (g_get_home_dir (), "MyDocs", NULL);

	GtkWidget *file_chooser = hildon_file_chooser_dialog_new (NULL, GTK_FILE_CHOOSER_ACTION_SAVE);
	gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (file_chooser), mydocsdir);
	g_free (mydocsdir);

	if (gtk_dialog_run (GTK_DIALOG (file_chooser)) == GTK_RESPONSE_OK)
	{
		GtkTextIter start, end;
		GError *error = NULL;
		gchar *filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (file_chooser));

		if (!filename) {
			gtk_widget_destroy (file_chooser);
			return;
		}

		gtk_text_buffer_get_bounds (self->priv->importExportBuffer, &start, &end);

		gchar *contents = gtk_text_buffer_get_text (self->priv->importExportBuffer, &start, &end, FALSE);
		if (!contents) {
			hildon_banner_show_information (NULL, NULL, "Exporting failed");
			g_free (filename);
			gtk_widget_destroy (file_chooser);
			return;
		}

		if (!g_file_set_contents (filename, contents, -1, &error)) {
			hildon_banner_show_informationf (NULL, NULL, "Exporting failed: %s", error->message);
			g_clear_error (&error);
		}
		g_free (filename);
		g_free (contents);
	}
	gtk_widget_destroy (file_chooser);
}
Do you believe it's enough?
__________________
Have a look at Queen BeeCon Widget (WIKI) Customizable and flexible widget-based multi-instance monitoring, alerting and interactive tool for the N900
Please provide comments and feedback for having QBW supported and enhanced further - (DONATE) - v1.3.3devel / v1.3.3testing / v1.3.3extras
 
No!No!No!Yes!'s Avatar
Posts: 700 | Thanked: 846 times | Joined on Nov 2009
#182
And changed buttons layout & captions a little bit:

__________________
Have a look at Queen BeeCon Widget (WIKI) Customizable and flexible widget-based multi-instance monitoring, alerting and interactive tool for the N900
Please provide comments and feedback for having QBW supported and enhanced further - (DONATE) - v1.3.3devel / v1.3.3testing / v1.3.3extras
 

The Following User Says Thank You to No!No!No!Yes! For This Useful Post:
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#183
Originally Posted by No!No!No!Yes! View Post
Do you believe it's enough?
Yessir

(10-char limit...)
 
No!No!No!Yes!'s Avatar
Posts: 700 | Thanked: 846 times | Joined on Nov 2009
#184
Originally Posted by No!No!No!Yes! View Post
PR1.2 OTA upgrade still not available here (IT), could anybody who has already upgraded, report here for any issue with QBW with new rel? 10x

As soon as PR1.2 is available I'll perform the upgrade and release 0.1.8 in extras-devel.
Ciao.
Originally Posted by Sash View Post
Hi No!No!No!Yes!

I've just flashed to PR 1.2 and I had a few problems when I tried to re-install Queen BeeCon. The widgets were on my desktop but i couldn't see them, only when i click on the gear icon for configuration of the desktop would I see them, but I wouldn't be able to edit them.

I would also get messages saying Hildon-home is not responding.

I'm probably not explaining very well so I'll install it again and get some screenshots.
....

Originally Posted by No!No!No!Yes! View Post
Ok, release is 0.1.4, right?
If you wouldn't bother to give it a shot, I could send you a link to the 0.1.8 version .deb package.
Just to see if a version compiled with PR1.2 aware sdk suffers the same deseases!!!

How about that?
0.1.8-PR1.2compiled + "killall hildon-home" seem to have done the trick ... but I'm curious about why 0.1.4 was not working...

Definitely stay tuned till I upgrade my terminal...

And one other rhetorical question for promotion processes across devel-testing-extra ...

Should we wait >3 weeks to have a working PR1.2-proof QBW 0.2.0 in Extras!?!?!?!?!?


Definitely stay tuned...
__________________
Have a look at Queen BeeCon Widget (WIKI) Customizable and flexible widget-based multi-instance monitoring, alerting and interactive tool for the N900
Please provide comments and feedback for having QBW supported and enhanced further - (DONATE) - v1.3.3devel / v1.3.3testing / v1.3.3extras
 
No!No!No!Yes!'s Avatar
Posts: 700 | Thanked: 846 times | Joined on Nov 2009
#185
Originally Posted by qwerty12 View Post
I'd like to place in a request for replacing that font dialog with http://wiki.maemo.org/Hildon-Extras#HeFontDialog because I also like the Droid Fonts but I'm biased...
Uhm ... no easy way to preserve backward compatibility if I implement this feature with Hildon-Extras extensions.
Especially if exported instances, with extended-fonts functionalities, need to be read by older releases.

Same happens if I change Color (both foreground and background) dialog with extended and more cosmetic one.

Unless it is polite to ask users to check and change fonts/color after import.


BTW, is it possible that HeColorButton is a bit buggy with PR1.2 SDK?

In scratchbox, if I click on black button frame then color dialogs opens, if I click on orange rectangle nothing happens...

Ciao.

UPDATE:
Also if I compile this:
Code:
		GtkWidget *cmdFontBox = gtk_hbox_new (FALSE, 0);//AP1

		GtkWidget *cmdFontSz;
		if (!g_strcmp0(self->priv->cmdExtFont,"")) {
			GtkWidget *cmdFontFam = hildon_touch_selector_new_text ();//AP1
			for(i=0;p_fonts[i]!=NULL;i++) {//AP1
				int j;
				for (j=0;j<4;j++) {//AP1
					gchar fs[256];//AP1
					g_sprintf(fs, "%s %s",p_fonts[i], p_fonts_types[j]);//AP1
					hildon_touch_selector_append_text (HILDON_TOUCH_SELECTOR (cmdFontFam), fs);//AP1
				}//AP1
			}//AP1
			hildon_touch_selector_set_active (HILDON_TOUCH_SELECTOR (cmdFontFam), 0, self->priv->cmdFontName);//AP1

			GtkWidget * cmdFontSelector = hildon_picker_button_new (HILDON_SIZE_AUTO_WIDTH | HILDON_SIZE_THUMB_HEIGHT, HILDON_BUTTON_ARRANGEMENT_VERTICAL);//AP1
			hildon_button_set_title (HILDON_BUTTON (cmdFontSelector), "Font Face: ");//AP1
			hildon_button_set_alignment (HILDON_BUTTON (cmdFontSelector), 0, 0.5, 0, 0);//AP1
			hildon_picker_button_set_selector (HILDON_PICKER_BUTTON (cmdFontSelector), HILDON_TOUCH_SELECTOR (cmdFontFam));//AP1
			gtk_box_pack_start (GTK_BOX (cmdFontBox), cmdFontSelector, FALSE, FALSE, 0);//AP1

			cmdFontSz = gtk_hscale_new_with_range ((gdouble)8, (gdouble)72, (gdouble)1);//AP1
			gtk_range_set_value(GTK_RANGE(cmdFontSz), self->priv->cmdFontSize);//AP1
			gtk_box_pack_start (GTK_BOX (cmdFontBox), cmdFontSz, TRUE, TRUE, 0);//AP1
		}
		GtkWidget *cmdFontFam = he_font_button_new_with_font (self->priv->cmdExtFont);
		gtk_box_pack_start (GTK_BOX (cmdFontBox), cmdFontFam, TRUE, TRUE, 0);

		gtk_container_add (GTK_CONTAINER (content_area), cmdFontBox);//AP1
Everything goes fine ... if I move the he_font_button before the old font selectors and scales ... H-H dumps

Code:
		GtkWidget *cmdFontBox = gtk_hbox_new (FALSE, 0);//AP1

		GtkWidget *cmdFontSz;
		GtkWidget *cmdFontFam = he_font_button_new_with_font (self->priv->cmdExtFont);
		gtk_box_pack_start (GTK_BOX (cmdFontBox), cmdFontFam, TRUE, TRUE, 0);
		if (!g_strcmp0(self->priv->cmdExtFont,"")) {
			GtkWidget *cmdFontFam = hildon_touch_selector_new_text ();//AP1
			for(i=0;p_fonts[i]!=NULL;i++) {//AP1
				int j;
				for (j=0;j<4;j++) {//AP1
					gchar fs[256];//AP1
					g_sprintf(fs, "%s %s",p_fonts[i], p_fonts_types[j]);//AP1
					hildon_touch_selector_append_text (HILDON_TOUCH_SELECTOR (cmdFontFam), fs);//AP1
				}//AP1
			}//AP1
			hildon_touch_selector_set_active (HILDON_TOUCH_SELECTOR (cmdFontFam), 0, self->priv->cmdFontName);//AP1

			GtkWidget * cmdFontSelector = hildon_picker_button_new (HILDON_SIZE_AUTO_WIDTH | HILDON_SIZE_THUMB_HEIGHT, HILDON_BUTTON_ARRANGEMENT_VERTICAL);//AP1
			hildon_button_set_title (HILDON_BUTTON (cmdFontSelector), "Font Face: ");//AP1
			hildon_button_set_alignment (HILDON_BUTTON (cmdFontSelector), 0, 0.5, 0, 0);//AP1
			hildon_picker_button_set_selector (HILDON_PICKER_BUTTON (cmdFontSelector), HILDON_TOUCH_SELECTOR (cmdFontFam));//AP1
			gtk_box_pack_start (GTK_BOX (cmdFontBox), cmdFontSelector, FALSE, FALSE, 0);//AP1

			cmdFontSz = gtk_hscale_new_with_range ((gdouble)8, (gdouble)72, (gdouble)1);//AP1
			gtk_range_set_value(GTK_RANGE(cmdFontSz), self->priv->cmdFontSize);//AP1
			gtk_box_pack_start (GTK_BOX (cmdFontBox), cmdFontSz, TRUE, TRUE, 0);//AP1
		}

		gtk_container_add (GTK_CONTAINER (content_area), cmdFontBox);//AP1
__________________
Have a look at Queen BeeCon Widget (WIKI) Customizable and flexible widget-based multi-instance monitoring, alerting and interactive tool for the N900
Please provide comments and feedback for having QBW supported and enhanced further - (DONATE) - v1.3.3devel / v1.3.3testing / v1.3.3extras

Last edited by No!No!No!Yes!; 2010-05-26 at 14:11. Reason: Added info for dump
 

The Following User Says Thank You to No!No!No!Yes! For This Useful Post:
Posts: 296 | Thanked: 10 times | Joined on May 2010
#186
hi No!No!No!Yes! (what a name =p)

i saw you made some queen beecon widgets for overclocked device, i saw it in the overlock post, now its not there for some reason.

but still very curious as to how i can get some of those, is it like i can change different configs (profile, frequency etc) right at the desktop?

thanks for the good work btw
 

The Following User Says Thank You to das_schlumpfie For This Useful Post:
No!No!No!Yes!'s Avatar
Posts: 700 | Thanked: 846 times | Joined on Nov 2009
#187
Originally Posted by das_schlumpfie View Post
hi No!No!No!Yes! (what a name =p)

i saw you made some queen beecon widgets for overclocked device, i saw it in the overlock post, now its not there for some reason.

but still very curious as to how i can get some of those, is it like i can change different configs (profile, frequency etc) right at the desktop?

thanks for the good work btw
Ciao.
For overclocking See 1st and 3rd beecon here http://wiki.maemo.org/Queen_BeeCon_Widget#Beecons

Other examples are in the wiki
ciao.
__________________
Have a look at Queen BeeCon Widget (WIKI) Customizable and flexible widget-based multi-instance monitoring, alerting and interactive tool for the N900
Please provide comments and feedback for having QBW supported and enhanced further - (DONATE) - v1.3.3devel / v1.3.3testing / v1.3.3extras
 
Posts: 296 | Thanked: 10 times | Joined on May 2010
#188
cheers mate
 
Posts: 296 | Thanked: 10 times | Joined on May 2010
#189
hi again, so you knows he has those '1 Ghz' and 'Ideal' widgets?

do those actually alter the kernel settings?

thanks
 
No!No!No!Yes!'s Avatar
Posts: 700 | Thanked: 846 times | Joined on Nov 2009
#190
Originally Posted by das_schlumpfie View Post
hi again, so you knows he has those '1 Ghz' and 'Ideal' widgets?

do those actually alter the kernel settings?

thanks
Ciao,
actually I'm not much into this overclocking wisdom I suggest you just drop Jakiman a message and he can point you towards the latest working QBWs he developed (also PR1.2-aware). In fact I heard there were some issues with rootsh/sudo lately which prevented commands to work properly.

Ciao.
__________________
Have a look at Queen BeeCon Widget (WIKI) Customizable and flexible widget-based multi-instance monitoring, alerting and interactive tool for the N900
Please provide comments and feedback for having QBW supported and enhanced further - (DONATE) - v1.3.3devel / v1.3.3testing / v1.3.3extras
 
Reply


 
Forum Jump


All times are GMT. The time now is 14:21.